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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by xsgex, Yesterday, 09:46 PM
    0 responses
    3 views
    0 likes
    Last Post xsgex
    by xsgex
     
    Started by Steve L, Yesterday, 09:36 PM
    0 responses
    4 views
    0 likes
    Last Post Steve L
    by Steve L
     
    Started by krugman25, Yesterday, 09:34 PM
    0 responses
    4 views
    0 likes
    Last Post krugman25  
    Started by indy73, Yesterday, 04:42 PM
    0 responses
    15 views
    0 likes
    Last Post indy73
    by indy73
     
    Started by Italianforex, Yesterday, 06:20 AM
    2 responses
    13 views
    0 likes
    Last Post gplatis
    by gplatis
     
    Working...
    X