![]() |
Gallery styles group in RibbonBar |
Post Reply ![]() |
Author | |
sand1212 ![]() Newbie ![]() ![]() Joined: 29 March 2007 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() 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(); -------------------------------------------------
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
See CMainFrame::OnCreateControl method sources in sample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
sand1212 ![]() Newbie ![]() ![]() Joined: 29 March 2007 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
It works well. I really appricieat you, oleg. |
|
![]() |
|
BastianPL ![]() Groupie ![]() ![]() Joined: 15 April 2006 Status: Offline Points: 69 |
![]() ![]() ![]() ![]() ![]() |
Why my gallery does not "drop down" like in ribbon sample ???
I have done everything like in example but it doesnt work ;(
|
|
Bastian
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, check OnCreateControl method - you need "subclass" item in menu to gallery control.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
BastianPL ![]() Groupie ![]() ![]() Joined: 15 April 2006 Status: Offline Points: 69 |
![]() ![]() ![]() ![]() ![]() |
and how to attach for example dialog to drop down gallery ???
|
|
Bastian
|
|
![]() |
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 |