Print Page | Close Window

Tooltips in Ribbon

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=15952
Printed Date: 04 December 2024 at 2:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltips in Ribbon
Posted By: ione
Subject: Tooltips in Ribbon
Date Posted: 05 January 2010 at 6:50am
Hi, I have Ribbon menus and tooltips are being shown ok. My problem is that there is no tooltip displayed in some cases:
 
1. Controls that are contained by another (i.e. xtpControlPopup, xtpControlButtonPopup, xtpControlSplitButtonPopup).
2. Items from the menu of the main button.
 
Is there any way to solve this?
 
Thank you!
 
 



Replies:
Posted By: Oleg
Date Posted: 05 January 2010 at 8:17am
Hi,
 
Check that you have Id for them and there are tooltip string for this Id in your string table.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ione
Date Posted: 05 January 2010 at 8:31am
Of course, they have ID and also string in resources.
Ribbon Sample neither seems to display tooltips for this controls.
Version: Xtreme ToolkitPro v11.1.3
 


Posted By: ione
Date Posted: 05 January 2010 at 12:15pm
Well, I see that all controls in Ribbon are contained by the main CommandBar (CXTPRibbonBar) which in turn is contained by the main CXTPCommandBars* object. This object is associated with the CXTPToolTipContext that manages tooltips.
 
On the contrary, those controls that don't display tooltip are not contained by any CommandBar. This seems to be the problem.

CXTPControlPopup* pControl = (CXTPControlPopup*) pGroup->Add(xtpControlPopup, ID_008) ;                        ---> pControl owned by the CommandBar

 
CXTPControl* pSubControl = pControl->GetCommandBar ()->GetControls ()->Add (xtpControlButton, ID_155) ;   ---> pSubControl NOT owned by the CommandBar!
 
 
Am I correct? Does it have a solution?
 
 


Posted By: Oleg
Date Posted: 06 January 2010 at 7:42am

Hi,

what control in Ribbonsample shows problem ? I will give code to show tooltip for this control.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ione
Date Posted: 07 January 2010 at 2:49am
Hi Oleq, in this case, pControl displays tooltip (image1) and pSubControl wouldn't display tooltip (image2).
I've edited previous post.
Thank you!


Posted By: Oleg
Date Posted: 07 January 2010 at 6:37am
Hi,
 
ohh. you want tooltip for Popup Menus also -
 
switch option - pCommandBars->GetCommandBarsOptions()->bShowPopupBarToolTips =TRUE;


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ione
Date Posted: 07 January 2010 at 7:05am

That's it! Thank you!!




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