Print Page | Close Window

Multiple checked items in ribbon gallery?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12411
Printed Date: 24 June 2025 at 12:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiple checked items in ribbon gallery?
Posted By: znakeeye
Subject: Multiple checked items in ribbon gallery?
Date 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?



Replies:
Posted By: znakeeye
Date Posted: 11 October 2008 at 9:34pm
Ok, I admit you can do this by overriding CXTPControlGalleryItem::Draw(), but I do think the standard control should support this already :P


Posted By: Oleg
Date Posted: 13 October 2008 at 5:50am
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



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