![]() |
Gallery Control backgroud problem |
Post Reply ![]() |
Author | |
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() Posted: 03 December 2007 at 10:12am |
Hi,
There is a problem with gallery control background in the latest revision of toolkit pro. When a gallery control is inserted into a CXTPopupToolbar instead of CXTPPopupBar, its background it blue not white as it should be. I have added one line to RibbonSampe (MainFrm.cpp) to demonstrate the problem: pControlPopup = (CXTPControlPopup*)pGroupPageSetup->Add(xtpControlPopup, ID_PAGE_COLUMNS); // Add this line to create popuptoolbar instead of popupbar pControlPopup->SetCommandBar(CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars())); pControlGallery = (CXTPControlGallery*)pControlPopup->GetCommandBar()->GetControls()->Add(new CXTPControlGallery(), ID_GALLERY_COLUMNS); pControlGallery->SetControlSize(CSize(140, 44 * 5)); pControlGallery->ShowScrollBar(FALSE); pControlGallery->SetItems(m_pItemsColumns); pControlGallery->SetStyle(xtpButtonIconAndCaption); Is it possible to change this behaviour? Thanks, Pavol |
|
![]() |
|
pavold ![]() Newbie ![]() Joined: 14 May 2007 Status: Offline Points: 23 |
![]() ![]() ![]() ![]() ![]() |
Replaying to myself again, I was able to trace down the problem.
I have attached the diff, which solves the problem. Gallery background is now correctly displayed inside the popped-up toolbar as well as in the docked and floating one. uploads/20071203_110943_gallery_backgro.zip Regards, Pavol |
|
![]() |
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 |