Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add menu items to Chart window

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

    Add menu items to Chart window

    Hi,

    I need help adding submenu items to the chartcontrol window like the one shown below.
    I am able to get the window and add buttons, but I so not know how to add these buttons as a child menu items.

    Do you have a sample code to refer to please?


    chartWindow = Window.GetWindow(this.ChartControl.Parent) as Chart;

    .
    .
    // Add the Button to the Chart's Toolbar
    chartWindow.MainMenu.Add(myButton);​
    ..
    ..



    Click image for larger version

Name:	image.png
Views:	324
Size:	29.5 KB
ID:	1218093

    #2
    Hello pvincent,

    Thanks for your post.

    Please see Use Case # 4 in the SampleWPFModifications reference sample on the NinjaTrader 8 help guide page linked below. This demonstrates adding a custom menu to the chart toolbar with sub-menu items added to the custom menu

    SampleWPFModifications: https://ninjatrader.com/support/help...ui)-modifi.htm

    Let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Thank you very much.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X