Show/Hide RibbonGroup |
Post Reply |
Author | |
weding
Newbie Joined: 17 November 2008 Location: Sweden Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 21 January 2009 at 2:32am |
How can i manage to show and hide CXTPRibbonGroup like a do with the tabs
I want to show the group when the MDI is active...
Tabs code:
ON_UPDATE_COMMAND_UI(XTP_ID_RIBBONCONTROLTAB, OnUpdateRibbonTab) void CMainFrame::OnUpdateRibbonTab(CCmdUI* pCmdUI){ CXTPRibbonControlTab* pControl = DYNAMIC_DOWNCAST(CXTPRibbonControlTab, CXTPControl::FromUI(pCmdUI)); if (!pControl) return;CXTPRibbonTab* pTab = pControl->FindTab(ID_TAB_EDIT); if (!pTab) return;pTab->SetVisible(MDIGetActive() != NULL); } |
|
//Richard
-------------------------- Product: Xtreme ToolkitPro version 12.1.0 Platform: Windows Vista(32bit) - SP 1 Language: C++ |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
CXTPRibbonGroup also has Visible property...
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |