• 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 refine, Today, 05:02 PM
      0 responses
      1 view
      0 likes
      Last Post refine
      by refine
       
      Started by White Fork, Today, 01:57 PM
      2 responses
      6 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by martyn73, Today, 02:45 PM
      2 responses
      8 views
      0 likes
      Last Post martyn73  
      Started by ct, Today, 12:48 PM
      4 responses
      22 views
      0 likes
      Last Post eDanny
      by eDanny
       
      Started by BrandonT1292, 07-30-2018, 07:32 PM
      11 responses
      400 views
      0 likes
      Last Post EllisEdi  
      Working...
      X