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 |
|
Offer Har
|
Mar 1, 2007 - 12:13 PM
|
Dear Support,
I have a property grid in an CExtPaintManagerOffice2007_R3_Obsidian based application. The problem is that the grid remains black on white. I would like it to conform with the paint manager. What is the easiest way to do this?
Thanks, Ron.
|
|
Technical Support
|
Mar 2, 2007 - 12:23 PM
|
We are not completely sure what you mean but it seems you are talking about an inverted color scheme.
Some controls like a check box always inherits its styles from the parent window. That is why an inverted color schema is used for combo boxes when the Black theme is applied.
A list, a tree and a grid are considered as a kind of stand-alone controls and the user usually expects to see black text over a white background when using such a control. That is why the tree views inside the property grid do not inherit the inverted color scheme.
|
|
Offer Har
|
Mar 2, 2007 - 12:31 PM
|
You hit exactly the point.
I would have the grid white on gray as the rest of the application. For normal grid I did it manually very easily, I used TextColorSet for changing the cells color of my derived cell classes, and used OnSiwPaintBackground to change the grid’s background color or my derived grid.
I would to know how to do the same for a Property Grid.
Thanks, Ron.
|
|
Technical Support
|
Mar 3, 2007 - 4:41 AM
|
As you know CExtPropertyGridCtrl is a container for one or more tree grid windows. The latter are created in the CExtPropertyGridCtrl::OnPgcCreateGrids() virtual method. By default, two tree grids are created: CExtPropertyGridWndCategorized and CExtPropertyGridWndSorted . So you can override CExtPropertyGridCtrl::OnPgcCreateGrids() and instantiate any custom tree grids instead of the default ones.
|
|