• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to add a new menus/controls to a custom NTWindow's title bar?

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

    How to add a new menus/controls to a custom NTWindow's title bar?

    I've created a new AddOn window based on the AddonShell_NT8.zip example and it's working perfectly. My current challenge is figuring out how to add menus/controls to my window's title bar like all the other NT windows have. I don't see a how-to 's in the documentation. Could someone provide some sample code or point me in the right direction? Ideally it would be great to have the AddonShell example updated to demonstrate how to add items to the NTWindow.

    Thanks in advance!

    #2
    Hello Stoner,

    Thanks for your post.

    I do not have a more indepth example at this time, but I have attached a simple demonstration for adding an InstrumentSelector to the top toolbar through NTWindow.MainMenu. You can add your own WPF elements, and I have also linked to a colleague's thread which provides further examples for WPF modifications. These modifications are made on a chart, but you can find that the WPF elements can be implemented in an AddOn much the same.

    WPF Modifications - https://ninjatrader.com/support/foru...considerations

    Please let me know if I can be of further assistance.
    Attached Files
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Induna, Today, 08:44 AM
    0 responses
    2 views
    0 likes
    Last Post Induna
    by Induna
     
    Started by TangoTX, Today, 08:36 AM
    1 response
    1 view
    0 likes
    Last Post NinjaTrader_Tyler  
    Started by abdullah, 11-15-2017, 08:44 PM
    11 responses
    822 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by brunoviveiros, Today, 04:31 AM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by foxy_rav, Today, 06:31 AM
    2 responses
    5 views
    0 likes
    Last Post foxy_rav  
    Working...
    X