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:	364
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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      30 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      16 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X