BUG: CXTPPropertySheet tab tooltip not showing |
Post Reply |
Author | |
scottp
Groupie Joined: 16 October 2006 Status: Offline Points: 59 |
Post Options
Thanks(0)
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |