Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - BUG: CXTPPropertySheet tab tooltip not showing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: CXTPPropertySheet tab tooltip not showing

 Post Reply Post Reply
Author
Message
scottp View Drop Down
Groupie
Groupie


Joined: 16 October 2006
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote scottp Quote  Post ReplyReply Direct Link To This Post Topic: BUG: CXTPPropertySheet tab tooltip not showing
    Posted: 18 June 2009 at 12:21am
In XTP 13.0.0 I am using the CXTPPropertySheet and I have set the Layout to be xtpTabLayoutSizeToFit. I  also EnableToolTips with the xtpTabToolTipShrinkedOnly style. I would expect that when the size to fit ends up sizing a tab smaller than the caption that a tooltip will be shown displaying the full caption. But this does not happen.

It appears that CXTPTabManager::PerformToolHitTest will only provide a tooltip if a tab tooltip has been set. I think it is reasonable to expect  that when the style xtpTabToolTipShrinkedOnly is set that the tooltip should fallback to the caption if no real tooltip is found.


The fix I am currently using in CXTPTabManager::PerformToolHitTest is:

        if (strTip.IsEmpty())
      {
      if ( GetPaintManager()->m_toolBehaviour == xtpTabToolTipShrinkedOnly )
        {
            strTip = pItem->GetCaption();
        }
      else return -1;
      }

Hopefully this can be added to the next release.


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.