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

how to determine active NTTabPage?

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

    how to determine active NTTabPage?

    Have developed AddOn based on the Framework example with multiple tabbed pages.

    I would like to know which page the user (me) is currently viewing and both not render other pages and also change some other output which is subordinate to this AddOn.

    When I try various MSDN handlers for Tab Selection events it uses wants System.Windows.Forms which conflicts with System.Windows.Controls.

    I have found that the TabControl property SelectedIndex is available but that is not helpful within the tab themselves.

    Is there a Property in the NTTabPage that will tell me if it is current selected tab? Or how do I otherwise determine this?

    Thx.

    -Jim

    #2
    Hello JimB17,

    Thanks for writing in.

    Our colleague Chelsea has been working on an Add-On that can demonstrate this. The Add-On can provide you with what you need to identify when a tab changes. Please load the Add-On and open the NinjaScript Output window to observe the Prints where a tab changes.

    This Add-On is simply an example of how this can be done, but as this is undocumented, we do not offer this solution as the end-all correct solution that will work for everyone. I suggest to do your own debugging to verify your logic works under all cases.

    If you have any further questions, please don't hesitate to ask.
    Attached Files
    Last edited by NinjaTrader_Jim; 04-04-2017, 03:59 PM.
    JimNinjaTrader Customer Service

    Comment


      #3
      Thank you for both the quick reply and the working code! Dropped right in and I am a happy camper.

      Now have dropped my painting overhead to just one tab not four, and can do other logic as well.

      Wish all software was this easy!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Christopher_R, Today, 12:29 AM
      0 responses
      9 views
      0 likes
      Last Post Christopher_R  
      Started by sidlercom80, 10-28-2023, 08:49 AM
      166 responses
      2,235 views
      0 likes
      Last Post sidlercom80  
      Started by thread, Yesterday, 11:58 PM
      0 responses
      3 views
      0 likes
      Last Post thread
      by thread
       
      Started by jclose, Yesterday, 09:37 PM
      0 responses
      8 views
      0 likes
      Last Post jclose
      by jclose
       
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      10 responses
      1,415 views
      0 likes
      Last Post Traderontheroad  
      Working...
      X