Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tab width in add

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

    Tab width in add

    Hi. I am developing an add on window based on the framework. Unlike the standard example below the window will be more narrow than wide. I just need a way to control the tab width. As shown below when the tab name is very short the tab will not compress beyond a certain width. How can I override this default setting to directly control the tab width. Also, need this as c# as opposed to xaml.

    Thanks!

    Click image for larger version

Name:	Tab.png
Views:	191
Size:	8.8 KB
ID:	1127189

    #2
    Hello Bidder,

    Thank you for the post.

    I took a look at the addon sample that we provide however the only way that I can see to effectively modify the tab width is to modify the skin and the margins being used in the platform.

    Is your tool intended to have multiple tabs or were you just trying to make that smaller to hide it? If you are trying to make a tool without tabs I could make a suggestion on how to do that.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Sorry for the delay. Below is the actual size of the screen. This looks a lot like the built in time and sales but it's not - its an addon window based on the addon framework example.

      Anyway. I want to add more tabs and have them visible but each tab is the width of the available space.

      Click image for larger version

Name:	a3.png
Views:	173
Size:	8.4 KB
ID:	1132526

      Comment


        #4
        Hello Bidder,

        Thank you for the details.

        Will you need an unlimited number of tabs including the cycling buttons like shown or just a few tabs? If a few tabs then using buttons in a grid would be a better option here and then creating tab changing logic in the button events. You could still use the tabs but the tab control headers could be hidden. If you needed cycling like this and the small size of the window you would very likely need to change the skin to have less margin.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          By the phrase "change the skin to have less margin" are you indicating that the size of the tabs is controlled by the skin? If so, I would be interested in a more detailed understanding of how to perform this operation . Thx

          Comment


            #6
            Hello Bidder,

            The various display aspects in the platform are controlled by the skins. The tabs would consist of multiple sizing requirements like margin padding and the textbox sizing styles as well. I am not aware of a specific key in the skin that would control the sizing of just the tabs width however the general sizing could be controlled with a combination of skin margin settings for the overall platform. That would everything else in the platform so that is not really an advisable approach to try and control the width of your addon tabs. It would likely be more suggestible to increase the window size to allow the standard themes to work or create a custom set of buttons for the purpose of navigating the addon.

            You can read more about skins in the following link: https://ninjatrader.com/support/help...hlightsub=skin

            I look forward to being of further assistance.

            JesseNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by adeelshahzad, Today, 03:54 AM
            5 responses
            32 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by stafe, 04-15-2024, 08:34 PM
            7 responses
            32 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by merzo, 06-25-2023, 02:19 AM
            10 responses
            823 views
            1 like
            Last Post NinjaTrader_ChristopherJ  
            Started by frankthearm, Today, 09:08 AM
            5 responses
            21 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            43 views
            0 likes
            Last Post jeronymite  
            Working...
            X