![]() |
Multiple checked items in ribbon gallery? |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() Posted: 11 October 2008 at 5:52pm |
Seems impossible in XTP 12.0.2. From sample:
void CMainFrame::OnUpdateGalleryShapes(CCmdUI* pCmdUI)
{ CXTPControlGallery* pGallery = DYNAMIC_DOWNCAST(CXTPControlGallery, CXTPControl::FromUI(pCmdUI)); if (pGallery) { // Only one item is checked!
pGallery->SetCheckedItem(m_nShape); } pCmdUI->Enable(TRUE); } Often, I want to check multiple items, just like in a popup-menu! Could you please add that for 12.1.0?
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Ok, I admit you can do this by overriding CXTPControlGalleryItem::Draw(), but I do think the standard control should support this already :P
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Thanks, added virtual method:
BOOL CXTPControlGallery::IsItemChecked(CXTPControlGalleryItem* pItem)
{ return m_nChecked == pItem->GetID(); } you will be able override it and return FALSE/TRUE.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |