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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    51 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    31 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    165 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    100 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    160 views
    2 likes
    Last Post CaptainJack  
    Working...
    X