Print Page | Close Window

Gallery Control backgroud problem

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=8994
Printed Date: 01 March 2025 at 3:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Gallery Control backgroud problem
Posted By: pavold
Subject: Gallery Control backgroud problem
Date 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



Replies:
Posted By: pavold
Date Posted: 03 December 2007 at 11:12am
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 - uploads/20071203_110943_gallery_backgro.zip


Regards,
Pavol



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