Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

added menus to the chart window menu

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

    added menus to the chart window menu

    Hello, i am adding several System.Windows.Control.Menu() to the chart window menu.

    I have 3 to 4 of these.

    When i set each up initialising the Style and vertical alignment all works great including switching tabs where they may not be accessible if the indicator is not loaded on that tab.

    However when i scrunch the chart to say a 1/4 of standard size - notably ninja creates a drop down in order to access the menu items - even all the standard ninja ones if is made very small.

    The problem is one my own custom top level menus is not showing in the drop down list. so if i have 1 2 3 4 .... menu 1 does not appear in the drop down.

    There is no difference between this and the others - except it is the first in the list along the top - currently i do not have a separator - do i need to create one prior to adding my menu items? Also this is the only one that does not have an icon defined. it only has a Heading set.

    any ideas?

    thanks

    #2
    Hello soulfx,

    Our colleague Chelsea has a sample script that demonstrates an ideal way to add menus to the top toolbar. I modified the example to add additional menus and I am not hitting issues when the window size shrinks. This modification is attached.

    You will need to use an icon to have the menu items form correctly when the the chart is shrunk to the point where the menu items will no longer list on the tool bar.

    Chelsea's examples can be found here: https://ninjatrader.com/support/foru...327#post499327

    Please let us know if you have any questions on the implementation.
    Attached Files

    Comment


      #3
      Hello, thanks for reply - yes i am familiar with chelsea's example -
      In general what i have works very well. You confirmed what i suspected in that an icon will be needed to be added to this menu to facilitate when the chart and menu space has shrunk - all the others have icons. will try this and get back

      thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      637 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      571 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X