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!
See more
See less

Partner 728x90

Collapse

Detect new tab created / destroyed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Detect new tab created / destroyed

    An AddOn gets notified when windows are created/destroyed, and the tab selection change can be hooked with MainTabControl.SelectionChanged.

    However, I am looking for a way to be notified when a new tab has been added (i.e. a new chartTab was added to an existing window) or removed from a window. In this case, a selection change will come thru, but I really need an indication of add/remove. I can manage on the side, but would prefer a clean way of doing this.

    Any way to do this?

    #2
    Hello aslane,

    Thanks for opening the thread.

    There are not any TabAdded or TabRemoved handlers that I am aware of, but some functionality could be recreated by monitoring MainTabControl.Items.Count when subscribed to the event handler MainTabControl.SelectionChanged.

    However, this approach will not account for tabs being removed when the tab selection does not change. I will submit a feature request for this behavior on your behalf.

    The ticket ID for the feature request is SFT-3104. When it is implemented, you can reference this ticket number in the Release Notes of the version of NinjaTrader 8 that includes this feature. We can't offer an ETA or a promise of fulfillment since feature requests are implemented based on the development team's priorities and pending tasks.

    Release Notes can be found here: https://ninjatrader.com/support/help...ease_notes.htm

    If there is anything else we can do to assist, please let me know.
    Last edited by NinjaTrader_Jim; 03-16-2018, 06:54 AM.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by frankthearm, Today, 09:08 AM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    43 views
    0 likes
    Last Post jeronymite  
    Started by yertle, Today, 08:38 AM
    5 responses
    15 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by adeelshahzad, Today, 03:54 AM
    3 responses
    19 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by bill2023, Yesterday, 08:51 AM
    6 responses
    27 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X