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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
94 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
140 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
125 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
74 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment