Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

disable closing button on chart tabs

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

    disable closing button on chart tabs

    Hi,

    is there a way to disable the close button (the cross mark) on chart tabs in NT8 ?

    While selecting the tab, way too often I inadvertently click on the close button.

    I would like to enable that button very rarely .. actually never since I don't need to delete my chart selection
    Alternatively to close the chart somewhere else but not in the expected area for selecting the tab .
    Thank you

    #2
    Hello db.mobile,

    Thanks for your post and welcome to the forums!

    Please note that we have a specific forum for NinjaTrader8 beta questions and would ask that any future questions be posted there.

    To answer your question, go to Tools>Options>General and at the top of "Preferences" Check "Confirm on window or Tab close". This will pop-up a message confirming that you want to close the tab or window when you click on the close of a window or tab.

    Comment


      #3
      thank you for the quick response.
      That is great .. adding a confirmation window answers to half of the question.
      Is there any way to actually disable the close button on tab selection window ?
      I will post the future questions in the beta forum.
      I appreciate your time

      Comment


        #4
        Hello db.mobile,

        Thanks for your reply.

        No there isn't. Without the close button, the only way to close a tab would be to close the window which could put you in the situation of closing multiple tabs without a choice.

        Comment


          #5
          I have the same problem and would prefer not to have the confirm pop up window. Since you can right click on a tab and close tab, there is no need for an "x" to close the tab. People probably don't need to be able to close the tab with 1 click. However, an accidental close can be a problem during trading.

          the best solution would be to allow people to disable. Or just remove and use the right click option which is extremely common everywhere else

          Comment


            #6

            Find Blueprint.xaml for your selected skin (.\NinjaTrader 8\templates\Skins\Slate Gray) and change the first 3 lines as marked below

            Code:
                <!-- Tab Control -->
                <system:Double    x:Key="TabControlCloseButtonContentSize">0</system:Double> <!-- <Modified> Remove close x.  Original value = 8  -->
                <system:Double    x:Key="TabControlCloseButtonSize">0</system:Double>        <!-- <Modified> Remove close x.  Original value = 12 -->
                <system:Double    x:Key="TabControlCloseButtonPadding">0</system:Double>     <!-- <Modified> Remove close x.  Original value = 2  -->
                <system:Double    x:Key="TabControlItemFontSizeSelected">14</system:Double>
                <system:Double    x:Key="TabControlItemFontSizeUnselected">13</system:Double>
                <system:Double    x:Key="TabControlItemMarginBase">6</system:Double>
                <system:Double    x:Key="TabControlItemMinWidth">30</system:Double>          <!-- <Modified> Min tab size.  Original value = 60 -->
                <system:Double    x:Key="TabControlSelectedItemHeightIncrease">3</system:Double>
                <system:Double    x:Key="TabControlConnectionStatusSize">20</system:Double>
                <system:Double    x:Key="TabControlConnectionStatusMargin">10</system:Double>​










            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            55 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            37 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            17 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            19 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            49 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X