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.
Subject |
Author |
Date |
|
Art Wilkes
|
Jun 17, 2010 - 1:06 PM
|
1. After a theme is picked in the Theme sample program how are the colors harvested for a target program? 2. How do you set the inactive color in a grid window? I’m using the grid window as a test display and the text is faint. Thanks Art Wilkes
|
|
Technical Support
|
Jun 19, 2010 - 11:44 AM
|
The CExtPaintManager::GetColor() virtual method is similar to the GetSysColor() Win32 API. You can use the CExtPaintManager::GetColor() method (the COLORREF clr = g_PaintManager->GetColor( . . . ) code) to query themed colors. The grid controls use the CExtScrollItemWnd::OnSiwGetSysColor() virtual method to query colors. This virtual method is also similar to the GetSysColor() Win32 API. It’s defined for customizing particular grid controls in Prof-UIS based applications. The read-only text / background colors for grid elements are provided by the CExtScrollItemWnd::OnSiwGetReadOnlyTextColor() / CExtScrollItemWnd::OnSiwGetReadOnlyBackgroundColor() virtual methods. Please note, the CExtGridCell::BackColorSet() and CExtGridCell::TextColorSet() methods allow to specify different background / text colors independently for all the grid cells in any cell state.
|
|