Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NTWindow: is right part of caption accessible?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NTWindow: is right part of caption accessible?

    Hello.

    Please, look in screen-shot attached.
    Caption property set text on red background of NTWindow header.
    Is there a way to add text on right part NTWindow header?

    Thank You.
    Attached Files
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    The right side of an NT window would contain its Menu to place buttons or other toolbar type items. You could likely place text inside of the menu as well. Are you creating your own NTWindow or are you asking about the output window specifically?

    I look forward to being of further assistance.

    Comment


      #3
      I am creating my own NTWindow, of course.
      Thank You for Your answer.
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment


        #4
        Hello fx.practic,

        In that case it should be very simple, you just need to append your item into the MainMenu:

        Code:
        MainMenu.Add(new System.Windows.Controls.Label(){Content = "TEST", Foreground = Brushes.White});
        The Menu takes most standard WPF controls, you may need to experiment to find what you like as the NT8 styles take over the default WPF styles.

        I look forward to being of further assistance.

        Comment


          #5
          Wow, it's so simple!
          I tried - It worked ))
          And no need to add MainMenu!

          Jim, is there any way to paint labels and other controls according to current skin (font, background, borders, etc.) ?

          Thank You!

          fx.practic
          NinjaTrader Ecosystem Vendor - fx.practic

          Comment


            #6
            Hello fx.practic,

            The controls you use should mostly all already inherit the NT skins but it may depend on what you are trying to do. The Label example in the Menu would be an odd use case so that likely would need to be custom styled. If you instead use the standard items for the menu such as buttons, those would look like the existing buttons in the menu with the same styles. You noted that you wanted text which a Label would generally be used for but a button could also do that and just not do anything when clicked.

            I would suggest instead looking at the following example of creating a toolbar button to inherit styles: https://ninjatrader.com/support/foru...bs?postcount=2



            I look forward to being of further assistance.

            Comment


              #7
              Thank You once more.
              fx.practic
              NinjaTrader Ecosystem Vendor - fx.practic

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              597 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              343 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              556 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              555 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X