• 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

AddOn with Tabs - how to disable showing tabs?

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

    AddOn with Tabs - how to disable showing tabs?

    Would like to toggle off the chart equivalent of "Show Tabs" in my AddOn. Started with multiple tabs now just one want to reclaim screen real estate.

    How does one do this - must be one line of code but haven't found in documentation.

    Thanks!

    #2
    Hello JimB17,

    Thanks for your question.

    You can create an AddOn window without tabs. To do this, you will want to avoid inheriting the INTTabFactory and NTTabPage classes as well as using any TabControl code when you create an AddOn window.

    I have uploaded a sample AddOn in which I have commented out the necessary code and moved the LoadXaml() code which creates the Content for my window from the NTTabPage class to the NTWindow class.

    If you have any additional questions, please don't hesitate to ask.
    Attached Files
    JimNinjaTrader Customer Service

    Comment


      #3
      thanks for the quick response. however i have four different AddOns with thousands of lines all based on the NTTabPage interface.... did not want to change the entire class structure simply want to not show the tab control!

      guess i will live with what have until/unless you add a bool method to the tab manager somewhere...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by maxgn, Today, 03:34 PM
      0 responses
      4 views
      0 likes
      Last Post maxgn
      by maxgn
       
      Started by Boonfly8, Today, 02:47 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by marioresa, Today, 02:20 PM
      1 response
      2 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by Parmenides48, Today, 01:26 PM
      1 response
      20 views
      0 likes
      Last Post NinjaTrader_JoshG  
      Started by pjsmith, Today, 12:39 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_PatrickH  
      Working...
      X