It could be useful to get an unique ID for that tab that persist on close/reload of NT8 or workspace how to do that
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Get AddOn Tab Index
Collapse
X
-
Get AddOn Tab Index
How to get the index of each tab in an add-on inside the tab class, for example know if that exact tab is the first / second / third.
It could be useful to get an unique ID for that tab that persist on close/reload of NT8 or workspace how to do thatLast edited by Pole123; 11-02-2023, 06:12 AM.Tags: None
-
Hello Pole123,
Can you provide more specific details on what you are trying to accomplish by accessing an index from the tab control?
If you are trying to persist something you don't need to know the tabs position, Addons have the IWorkspacePersistance interface which is used for saving and loading. That would also be used for anything custom that needs to be persisted. No ID is needed for that because each tab has its own persistence.
https://ninjatrader.com/support/help..._interface.htm
You can find a sample of saving and loading values here:
https://forum.ninjatrader.com/forum/...830#post759830
There is additionally a sample that has the Save/Restore overrides for the tabpage here: https://ninjatrader.com/support/help...t_overview.htmLast edited by NinjaTrader_Jesse; 11-02-2023, 07:54 AM.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
85 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
143 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
83 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
256 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
334 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment