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

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 The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Started by Aviram Y, Today, 05:29 AM
    0 responses
    5 views
    0 likes
    Last Post Aviram Y  
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    36 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X