Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tooltip for Custom Button in Window Title

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

    Tooltip for Custom Button in Window Title

    I've noticed that when I create a custom button in the
    window title area of the chart (with the other standard
    chart window buttons) my tooltip is controlled by the
    same display policy as the standard toolbar buttons.

    That is, this setting,

    CC > Tools > Options > General > Show tool tips

    affects my custom button tooltip as well.

    I suppose that is some nice synchronization, but I
    prefer how NT7 ignored tooltips on custom buttons.

    I'd like my custom button tooltip to always stay enabled,
    regardless of Ninja's 'Show tool tips' setting.

    I'd like my custom button to show some important status,
    and it seems a bit arrogant of NT8 to disable every tooltip
    message feature for every custom toolbar button when
    'Show tool tips' is disabled.

    How can I keep my tooltip enabled, regardless of the
    'Show tool tips' setting?

    #2
    Actually, bltdavid, it's even worse than that. That particular option enables/disables ALL ToolTips in the application. My AddOn software has its own completely separate windows and UI elements (including Buttons, Labels, TextBlocks, etc) and all are subject to this option's effect! I agree with you that the option should only disable built-in ToolTips, not user-added ones.

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    Comment


      #3
      Since there is no straight-forward WPF property to disable all tooltips in an app, they might be doing something like this https://stackoverflow.com/questions/...ols-in-wpf-app which means you may be able to similarly iterate your own controls and uncollapse them after instantiation.
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment


        #4
        A little further investigation shows that to toggle ToolTips between showing and hiding, the option causes the boolean HasStyleInvalidated property of object types to toggle between TRUE (show) and FALSE (hide). Individual object instance properties are not changed.

        For example, a Label with a ToolTip showing will have the Label type with HasStyleInvalidated ​TRUE, and when the option is set to hide ToolTips, the HasStyleInvalidated ​property of the object type changes to FALSE, but properties of the DependencyObject itself (the actual Label instance) are not changed.

        This makes separation of the action between built-in objects and user-created objects more problematic, since the change is at the object type level, not the object instance level.

        Just further food for thought on possible ways one might address the matter.

        Thanks.
        Multi-Dimensional Managed Trading
        jeronymite
        NinjaTrader Ecosystem Vendor - Mizpah Software

        Comment


          #5
          Thanks. Here's more food for thought.

          Tooltips are the simpleton brothers to the more complicated Popup class.

          Might be able to avoid this tooltip disabling issue by using a Popup class
          element to display it.

          Just thinking out load ... no one at NT seems to want to respond.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          630 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          364 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          566 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X