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 wjadevries, Today, 03:35 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Mykro, Today, 03:59 PM
    0 responses
    4 views
    0 likes
    Last Post Mykro
    by Mykro
     
    Started by venkateshdvk, Today, 01:34 PM
    1 response
    21 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by westofpluto, Today, 01:54 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by zacharydw00, Today, 02:11 PM
    4 responses
    15 views
    0 likes
    Last Post zacharydw00  
    Working...
    X