Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Color selection button in a Ribbon bar. Collapse All
Subject Author Date
Alexander Pavluk May 3, 2007 - 7:14 AM

I create a color selection button like RibbonBar sample does. Using OnColorItemChanged method I can get the color that user has been selected. But the color of the color selection button doesn’t change after color change dialog closed. How can I change the color of this button?

Alexander Pavluk May 4, 2007 - 4:08 AM

Thanks for reply. All works fine.

Technical Support May 3, 2007 - 12:26 PM

The CExtRibbonBar class is derived from CExtCustomizeSite and based on ribbon command tree nodes. To handle the color button events, you should use a CExtRibbonBar-derived class which implements several CExtCustomizeSite::OnColorItem***() virtual methods like demonstrated in the CMainFrame class in the StyleEditor sample.