• 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 rblunsom, Today, 10:38 PM
      0 responses
      2 views
      0 likes
      Last Post rblunsom  
      Started by Austiner87, Today, 08:08 PM
      0 responses
      1 view
      0 likes
      Last Post Austiner87  
      Started by habibalex, Today, 07:11 PM
      0 responses
      2 views
      0 likes
      Last Post habibalex  
      Started by GMiller64, Today, 05:56 PM
      1 response
      3 views
      0 likes
      Last Post GMiller64  
      Started by rickyblah12, Today, 05:01 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Working...
      X