Print Page | Close Window

CXTPControlPopupColor: How ?

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=12481
Printed Date: 28 February 2025 at 7:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlPopupColor: How ?
Posted By: cpehonk
Subject: CXTPControlPopupColor: How ?
Date Posted: 18 October 2008 at 11:29am
Hi guys,
 
I'm a little bit confused about the bitmap for a popup color item. I see the Bitmap, i can choose a color ... all fine so far. But I don't see the selected color in the icon as in the ribbon-bar sample.
 
What do I have to do with the bitmap to get the color shown ?
 
I use a 32-bit PNG file with alpha but no success.
 
Any help appreciated !
 
Thanks in advance,
Chris



Replies:
Posted By: Oleg
Date Posted: 20 October 2008 at 7:03am
Hi,
 
You need add update handler for this id:
 
void CRibbonSampleView::OnUpdateText(CCmdUI* pCmd)
{
 CXTPControlPopupColor* pPopup = DYNAMIC_DOWNCAST(CXTPControlPopupColor, CXTPControl::FromUI(pCmd));
 if (pPopup)
 {
  pPopup->SetColor(m_clr);
 }
 pCmd->Enable(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