![]() |
CXTPControlPopupColor: How ? |
Post Reply
|
| Author | |
cpehonk
Groupie
Joined: 27 April 2008 Location: Germany Status: Offline Points: 22 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPControlPopupColor: How ?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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |