Print Page | Close Window

Tooltips in Ribbon Control sub-menus

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=9727
Printed Date: 30 April 2024 at 9:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tooltips in Ribbon Control sub-menus
Posted By: Danlar
Subject: Tooltips in Ribbon Control sub-menus
Date Posted: 27 February 2008 at 5:28pm
Is it possible to enable Tooltips on the sub menu of a control on the Ribbon?

I tried to find a sample, but couldn't. In the CommandBar RibbonMDISample project, the Save button has a tooltip and has a sub-menu, but the child controls (Save and SaveAs) do not have tooltips.

CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)GetCommandBars()->Add(_T("The Ribbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));

CXTPRibbonTab* pTabHome = pRibbonBar->AddTab(ID_TAB_HOME);
CXTPRibbonGroup* pGroupFile = pTabHome->AddGroup(ID_GROUP_FILE);

CXTPControlPopup* pControlSave = (CXTPControlPopup*)pGroupFile->Add(xtpControlSplitButtonPopup, ID_FILE_SAVE);
pControlSave->SetDescription(_T("A tooltip is created with this text in it"));

CXTPControlButton* pControlSaveBtn= (CXTPControlButton*)pControlSave->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_FILE_SAVE);
pControlSaveBtn->SetDescription(_T("No tooltip is made for this text"));


With the above code, the pControlSave control would have a tooltip, but not the pControlSaveBtn one.

-Dan



Replies:
Posted By: Oleg
Date Posted: 28 February 2008 at 3:20am
Hi,
 
Call pCommandBars->GetCommandBarsOptions()->bShowPopupBarToolTips = TRUE;


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


Posted By: Danlar
Date Posted: 28 February 2008 at 10:22am
That fixed it perfectly.

Thanks!

-Dan



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