Print Page | Close Window

Gallery styles group in RibbonBar

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=6755
Printed Date: 03 March 2025 at 4:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Gallery styles group in RibbonBar
Posted By: sand1212
Subject: Gallery styles group in RibbonBar
Date Posted: 29 March 2007 at 6:04am
Hi,
 
In sample, if  click popup bar, i can use extended bar. but i can't use my project.
 
this is my project.
 
 
this is sample project.
i registerd OnClientControl, OnGalleryStyles and  OnUpdateGalleryStyles.
 
I can't find the drawing method.
Here is source code.
 
-------------------------------------------------
CXTPRibbonGroup* pGroupStyles = pTabHome->AddGroup(ID_GROUP_STYLES);
 
 pControlGallery = (CXTPControlGallery*)pGroupStyles->Add(new CXTPControlGallery(), ID_GALLERY_STYLES); 
 pControlGallery->SetControlSize(CSize(235, 60));
 pControlGallery->SetItemsMargin(0, 1, 0, 1);
 pControlGallery->ShowLabels(FALSE);
 pControlGallery->ShowBorders(TRUE);
 pControlGallery->SetItems(m_pItemsStyles);
 
 CMenu menuQuickStyles;
 menuQuickStyles.LoadMenu(ID_STYLES_QUICKSTYLES);
 
 CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars());
 pPopupBar->LoadMenu(menuQuickStyles.GetSubMenu(0));
 
 pControlGallery->SetCommandBar(pPopupBar);
 pPopupBar->EnableAnimation();
 pPopupBar->InternalRelease();
 
-------------------------------------------------
 
 



Replies:
Posted By: Oleg
Date Posted: 29 March 2007 at 6:19am
Hi,
 
See CMainFrame::OnCreateControl method sources in sample.


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


Posted By: sand1212
Date Posted: 29 March 2007 at 8:22pm

It works well.

I really appricieat you, oleg.



Posted By: BastianPL
Date Posted: 15 April 2007 at 12:01pm
Why my gallery does not "drop down" like in ribbon sample ???
I have done everything like in example but it doesnt work ;(


-------------
Bastian


Posted By: Oleg
Date Posted: 16 April 2007 at 3:11am

Hello,

check OnCreateControl method - you need "subclass" item in menu to gallery control.


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


Posted By: BastianPL
Date Posted: 25 April 2007 at 9:41pm
and how to attach for example dialog to drop down gallery ???


-------------
Bastian



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