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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
54 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
25 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
17 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
24 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment