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

Setting the MenuItem Style of a Menu

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

    #16
    Hello ChelseaB,

    Let me know when you get the AutomationID for the subMenuItem let me know. I've looked for 4 hours trying to set the hover/highlight value. It's only possible for those to be set via Style.

    This is probably not possible due to how NT's main menu is setup and style related, do you know how to keep header always visible? When adding too many main menu elements to NT's window, it throws the additional elements into the drop down thing. Instead of displaying the Icon AND the header, it removes the header only leaving the icon. This would not matter if the room for the icon can be change... cause I can set the icon to text as well.

    Thanks
    Unsuitable
    NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

    Comment


      #17
      Amendment to post #16:

      Scratch what I said about the menu header being always visible. I went ahead and made a proper icon instead with no header. Still need the style for the subMenuItems though, if anybody know what it is. :P

      Click image for larger version

Name:	7xHKfsi.png
Views:	210
Size:	2.7 KB
ID:	1125444
      Unsuitable
      NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

      Comment


        #18
        Hello Unsuitable,

        This is Jim responding on behalf of Chelsea who is out of the office at this time.

        Chelsea may be the best person to help you move forward, but if I gather correctly, you are trying to accomplish what I have in my attached screenshot for your sub menu items?

        This is done with the "InstrumentMenuItem" style. Chelsea uses it in his ChartTraderCustomMenu example found in the first post of his WPF Modifications thread.

        Let us know if that helps.
        Attached Files
        JimNinjaTrader Customer Service

        Comment


          #19
          Hello Jim,

          The hover does indeed work, but I do not think that's the same exact style. The font size appears smaller, they are not. Counted the pixels. It's the color of the text that's off and makes my menu look smaller. The menuItems on the right look brighter and give the illusion they are bigger. I could be going crazy.

          Click image for larger version

Name:	rTZeu1l.png
Views:	203
Size:	11.9 KB
ID:	1125564Click image for larger version

Name:	F7SnoMQ.png
Views:	218
Size:	3.8 KB
ID:	1125563

          Thanks
          Unsuitable
          NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

          Comment


            #20
            Hello Unsuitable,

            The menu added to the title bar, ntBartopMenuItem, of SampleWPFModifications uses the MainMenuItem as a Style.

            From your screenshot, the unhighlighted text appears to be the same.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #21
              Hello ChelseaB,

              Took a look at the individual pixels and yes the intensity is the same. Going crazy I guess :P
              Unsuitable
              NinjaTrader Ecosystem Vendor - Ocean Trading Indicators

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by RookieTrader, Today, 09:37 AM
              3 responses
              15 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by kulwinder73, Today, 10:31 AM
              0 responses
              7 views
              0 likes
              Last Post kulwinder73  
              Started by terofs, Yesterday, 04:18 PM
              1 response
              24 views
              0 likes
              Last Post terofs
              by terofs
               
              Started by CommonWhale, Today, 09:55 AM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by Gerik, Today, 09:40 AM
              2 responses
              7 views
              0 likes
              Last Post Gerik
              by Gerik
               
              Working...
              X