• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I hide the Tab in a Add On Window?

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

    How can I hide the Tab in a Add On Window?

    Hi,

    I would like to implement in my AddOn the same option we have in the charts menu: "Show Tabs" in which we can hide the tabs. Is that possible on a AddOn?

    Thank you!
    jmneto

    #2
    Hello jmneto,

    Thanks for your post.

    Looking into NTWindow and NTWindow.MainTabControl for hints, you should be able to set the NTWindow.AreTabsVisible bool to accomplish this.

    NTWindow w = Window.GetWindow(this) as NTWindow;
    w.AreTabsVisible = !w.AreTabsVisible;

    Please let us know if we can be of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thx, from public AddOnFrameworkWindow() I just did this.AreTabsVisible = false and it works. Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by pecunianonolet, 11-28-2016, 03:34 AM
      3 responses
      3,134 views
      0 likes
      Last Post DaveS
      by DaveS
       
      Started by contrax, Today, 08:20 AM
      2 responses
      10 views
      0 likes
      Last Post contrax
      by contrax
       
      Started by brownsfan019, Today, 07:54 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by Amitabha, Today, 04:50 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Marco  
      Started by JulieG, Today, 12:40 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Working...
      X