Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

toolbar removal

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

    toolbar removal

    I created a toolbar and it works great but if i remove the indicator it will not disappear. how do you remove toolbar objects in State == State.Terminated

    #2
    Hello ballboy11,

    Thanks for your post.

    You will have to keep track of all the UI modifications you make so you can reverse them when the script is removed.

    Please see my colleague Chelsea's examples that demonstrate everything that is necessary when performing UI modifications. You will see that Chelsea keeps track of the UI modifications made, and then in the script's State.Terminated state, he checks if ChartControl is not null and then calls his DisposeWPFControls() method. We can also see that these examples will not have issue adding/removing.

    Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've


    We look forward to assisting.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    46 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    67 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    35 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    59 views
    0 likes
    Last Post PaulMohn  
    Working...
    X