Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Tab width in add
Collapse
X
-
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!
Tags: None
-
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
-
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.
Comment
-
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
-
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 Mirasol, Today, 11:32 AM
|
2 responses
17 views
0 likes
|
Last Post
by Mirasol
Today, 01:54 PM
|
||
Started by Scalper1969, 10-09-2024, 10:37 AM
|
13 responses
42 views
0 likes
|
Last Post
by Scalper1969
Today, 01:53 PM
|
||
Started by MikM45, 10-12-2024, 01:12 PM
|
1 response
16 views
0 likes
|
Last Post Today, 01:47 PM | ||
Started by CDXTrader, Today, 01:46 PM
|
0 responses
6 views
0 likes
|
Last Post
by CDXTrader
Today, 01:46 PM
|
||
Started by Joseph Davidow, 10-04-2024, 08:48 AM
|
19 responses
86 views
0 likes
|
Last Post Today, 01:45 PM |
Comment