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
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by fx.practic, 10-15-2013, 12:53 AM
|
4 responses
5,403 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
94 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
6 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
158 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
8 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment