Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Tooltips in Ribbon Control sub-menus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Tooltips in Ribbon Control sub-menus

 Post Reply Post Reply
Author
Message Reverse Sort Order
Danlar View Drop Down
Groupie
Groupie
Avatar

Joined: 27 February 2008
Location: United States
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Danlar Quote  Post ReplyReply Direct Link To This Post Topic: Tooltips in Ribbon Control sub-menus
    Posted: 28 February 2008 at 10:22am
That fixed it perfectly.

Thanks!

-Dan
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2008 at 3:20am
Hi,
 
Call pCommandBars->GetCommandBarsOptions()->bShowPopupBarToolTips = TRUE;
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Danlar View Drop Down
Groupie
Groupie
Avatar

Joined: 27 February 2008
Location: United States
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote Danlar Quote  Post ReplyReply Direct Link To This Post 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
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.188 seconds.