Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 » Some suggestions Collapse All
Subject Author Date
Pavel Pavlov Aug 9, 2005 - 6:52 PM

1) You have some color constants in CExtPaintManager. If I make own control with color scheme according to theme I wish to see these colors. Can you add in ThemeColorizer sample a dialogbar with color palette with these colors?


2) Full help for CExtPaintManager class.

Technical Support Aug 10, 2005 - 12:56 PM

If you add a dialog bar (the CExtPanelControlBar class with the single CExtResizableDialog child window) to the ThemeColorizer sample application, then both the panel bar and its child dialog will be colorized. You don’t have to think about any color indices managed by the paint manager internally. So, we need to discuss in details how you wish to colorize the dialog bar. To make this test, you can simply port some bars from the FixedSizePanels sample to the ThemeColorizer sample.

Pavel Pavlov Aug 10, 2005 - 8:05 PM

You don’t understand me. I want in ThemeColorizer sample a dialog with a list which contains names of color constants from CExtPaintManager and corresponding colors.

Technical Support Aug 11, 2005 - 11:19 AM

The 2000/XP paint managers are based on the color indices defined in the CExtPaintManager::e_translated_colors_t enumeration. The 2003/2005 paint managers are based both on the same color indices but their specific indices are defined in the CExtPaintManagerOffice2003::e_2003_colors_t enumeration. The most of 2003/2005 color values are computed depending on two color values called an accent color and a background color in the Windows XP user interface theme API and the ThemeColorizer sample application just substitutes these two root color values. We think there is no reason to modify all the color values separately. But this is possible. The solution is based on overriding the CExtPaintManager::SyncSysColors() and CExtPaintManager::InitTranslatedColors() virtual methods and initializing the m_mapColorTranslate map with custom color values. But we think it is not very important because editing a large number of color values makes the color schema customization inconvenient.