Print Page | Close Window

BUG: CXTPPropertySheet tab tooltip not showing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=14557
Printed Date: 15 November 2024 at 7:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: CXTPPropertySheet tab tooltip not showing
Posted By: scottp
Subject: BUG: CXTPPropertySheet tab tooltip not showing
Date 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.





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net