Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

When Moving AddOns under folders, duplicate names are created in 'New' Menu

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

    When Moving AddOns under folders, duplicate names are created in 'New' Menu

    8.0.0.9 (Standard) - BETA
    1) Duplicate an AddOn by using 'Save As'
    2) Move both AddOns (the new one and the old one) to separate folders
    3) Fix all compilation errors and compile
    4) Open the 'New' Menu.

    Expected
    1) The 'New' Menu should contain AddOns named with the class name of the AddOn: e.g.: NinjaTrader.NinjaScript.AddOns.ZScoreWriter

    Actual
    1) It retains the old previously named class name.

    See attached screenshot.
    Attached Files

    #2
    Hello mmeninger,

    Thank you for writing in.

    Have you modified the menu item header of your duplicated AddOns?

    As it looks like you are using the Sample Add On provided on our forum, you will need to open the SampleAddon duplicated file and change the header.

    I have created a duplicate of SampleAddon called SampleAddon2 in my example.

    Example
    Code:
    protected override void OnWindowCreated(Window window)
    {
         .....
         newMenuItem = new NTMenuItem {Header = "Sample Add On Two", Style = Application.Current.TryFindResource("MainMenuItem") as Style};
         .....
    }
    Once you have compiled, you will see the new name.
    Attached Files
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by zstheorist, Today, 07:52 PM
    0 responses
    3 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Working...
    X