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:	334
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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      72 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      39 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X