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

Window close button

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

    Window close button

    Hi there,

    Additional windows opened in Add-Ons (for example for property settings) display their window close button in a different style and with a different icon (see attached screenshot).
    How can I use NT's style and icon in my Add-On?

    Thanks in advance!
    Attached Files

    #2
    Hello,

    Thank you for the post.

    I wanted to check, what kind of window is being used, is this an NTWindow?

    You can duplicate the window syntax from our addon sample to generate a new empty window, is this what you have done or had you used a standard WPF Window?



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hello Jesse,

      Thanks for your quick reply.

      Since I don't need workspace persistance or tab pages for this new properties window I have choosen a standard WPF window.
      Is this the reason for the wrong-styled system buttons?

      Comment


        #4
        Hello ruppschtaler,

        Thank you for the reply.

        Yes, You would need to create the correct type of window for it to be styled. In this situation, you would need to utilize the same syntax shown in the addon sample.

        All of the interfaces you see in the addon are optional, but you would need to use NTWindow specifically for styling to occur. Most other standard controls are styled aside from Window.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DayTradingDEMON, Today, 09:28 AM
        2 responses
        15 views
        0 likes
        Last Post DayTradingDEMON  
        Started by Stanfillirenfro, Today, 07:23 AM
        6 responses
        23 views
        0 likes
        Last Post Stanfillirenfro  
        Started by navyguy06, Today, 09:28 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by cmtjoancolmenero, Yesterday, 03:58 PM
        8 responses
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by helpwanted, Today, 03:06 AM
        2 responses
        22 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X