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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    70 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X