• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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, 05:54 AM.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by shodson, 02-11-2020, 07:26 PM
    3 responses
    19 views
    0 likes
    Last Post shodson
    by shodson
     
    Started by ksarin, Today, 04:31 PM
    0 responses
    4 views
    0 likes
    Last Post ksarin
    by ksarin
     
    Started by ralett, Today, 03:39 PM
    0 responses
    8 views
    0 likes
    Last Post ralett
    by ralett
     
    Started by koganam, Today, 03:17 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by DTSSTS, Today, 02:46 PM
    4 responses
    15 views
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Working...
    X