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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
591 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
553 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment