Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Menu Bar Drop Down Events

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

    Menu Bar Drop Down Events

    Hello,

    Looking to improve my Template Switcher indicator. The indicator adds 2 buttons to the top menu bar that cycles through the available templates for a given object. I would like to add an option to change the template based on a drop down list.

    There are 2 ways I'm thinking of programming this.

    (1) Every time a new object is drawn, that updates the template switcher drop-down list to reflect the available templates for said object. If an object is selected then update the list to that object's templates.
    (2) As soon as the drop-down button is selected, the indicator switches the list to the last drawn object or selected object.

    The second option seems to be the better option as it's not constantly updating the list, but perhaps that will take too much time to process and the user will see the swapping of buttons.

    To save on resources, the indicator would retrieve available templates for objects first and store them for future use.

    My question, is option 1 or 2 possible?
    Unsuitable
    NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

    #2
    Hi Unsuitable, thanks for posting. I'm sure this is possible to do, but I'm not aware of any existing examples doing it. You would need to explore the WPF/C# code that would make this possible to do based on what your addon is currently doing. Sorry, I could not help further but I've never seen an example of this in the past.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X