• 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

Missing event in NTTabPage

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

    Missing event in NTTabPage

    Hi there,
    My add-on uses an AddOnFrameworkWindow with TabControl and multiple NTTabPages.
    I'm missing an event in NTTabPage when MainTabControl's selection has been changed to update global objects like an InstrumentSelector in MainMenu of AddOnFrameworkWindow.

    Unfortunately MainTabControl's event OnItemsChanged() is protected and not accessible.
    Any ideas?

    Many thanks for your help!

    #2
    Hello ruppschtaler, and thank you for your question. According to the publicly available MSDN documentation,

    Originally posted by https://msdn.microsoft.com/en-us/library/system.windows.controls.listview.onitemschanged.as px
    This method is called when there is a change in the items collection of a ListView control.

    While this suggestion is untested, it may be the case that creating your own child class of ListView and adding an instance to replace the main one, and then adding the MainTabControl's children as children of this listview (after saving references to each of the MainTabControl's children and then removing them so that they only ever have one parent), will give you a ListView you can control, with an OnItemsChanged method you can write yourself. You may need to dispatch the reparenting calls to the MainTabControl object.


    Doing the above is an exercise to you, and is outside the scope of the support we typically provide. However we are happy to answer any questions as they come up.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RedDuke, Today, 06:14 PM
    0 responses
    0 views
    0 likes
    Last Post RedDuke
    by RedDuke
     
    Started by DariusDeck, Today, 04:22 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by pstrusi, Today, 05:05 PM
    1 response
    2 views
    0 likes
    Last Post pstrusi
    by pstrusi
     
    Started by saeed, Today, 10:20 AM
    4 responses
    17 views
    0 likes
    Last Post saeed
    by saeed
     
    Started by priceisking, Yesterday, 07:44 PM
    1 response
    27 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X