Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPControlPopupColor: How ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlPopupColor: How ?

 Post Reply Post Reply
Author
Message
cpehonk View Drop Down
Groupie
Groupie


Joined: 27 April 2008
Location: Germany
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpehonk Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.027 seconds.