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 ETFVoyageur, 04-30-2024, 02:04 PM
    13 responses
    109 views
    0 likes
    Last Post ETFVoyageur  
    Started by Skifree, Today, 11:21 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Vulgoth_t_Destroyer, 05-09-2022, 04:45 PM
    52 responses
    5,265 views
    0 likes
    Last Post olivierh  
    Started by ssijbabu, 10-07-2012, 07:10 AM
    6 responses
    4,430 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by iceman2018, Today, 10:39 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X