Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    JimNinjaTrader Customer Service

    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 GLFX005, Today, 03:23 AM
      0 responses
      1 view
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      11 views
      0 likes
      Last Post XXtrader  
      Started by Waxavi, Today, 02:10 AM
      0 responses
      6 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Started by TradeForge, Today, 02:09 AM
      0 responses
      14 views
      0 likes
      Last Post TradeForge  
      Started by Waxavi, Today, 02:00 AM
      0 responses
      3 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Working...
      X