Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Gallery Control backgroud problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Gallery Control backgroud problem

 Post Reply Post Reply
Author
Message Reverse Sort Order
pavold View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavold Quote  Post ReplyReply Direct Link To This Post Topic: Gallery Control backgroud problem
    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


Regards,
Pavol
Back to Top
pavold View Drop Down
Newbie
Newbie


Joined: 14 May 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote pavold Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.061 seconds.