|
|
|
|
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
|
Feb 26, 2008 - 7:42 AM
|
Hi,
I have a cell which I set to display its text in red when selected:
TextColorSet(__ECS_SELECTED, RGB(255,0,0)); I then Set the focus to the cell using FocusSet , but the cell does not display the text in red. The cell type is CExtGridCellString .
What am I doing wrong?
Thanks, Ron.
|
|
Technical Support
|
Feb 28, 2008 - 7:59 AM
|
v.2. 83 is planned to be released in the middle of March.
|
|
Offer Har
|
Feb 27, 2008 - 6:42 AM
|
Thanks.
Any news on when 2.83 will be out?
|
|
Technical Support
|
Feb 27, 2008 - 6:38 AM
|
In v.2.83 (which is now beta) the CExtGridCell::e_cell_state_t enumeration includes some additional color types: enum e_cell_state_t
{
__ECS_ALL = 0, // color in any state
__ECS_NORMAL = 1, // normal, not hovered, not selected, not highlighted
__ECS_SELECTED = 2, // selected
__ECS_HOVERED = 3, // hovered
// next added in 2.83
__ECS_HIGHLIGHT_PRESSING = 4, // pressed
__ECS_HIGHLIGHT_BY_FOCUS = 5, // in the same row or column with focused
__ECS_HIGHLIGHT_BY_SELECTION = 6, // in the same row or column with selected
__ECS_HIGHLIGHT_BY_HOVER = 7, // in the same row or column with hovered
}; You can use all these constants when using CExtGridCell::TextColorGet() , CExtGridCell::TextColorSet() , CExtGridCell::BackColorGet() and CExtGridCell::BackColorSet() . So just play with these new constants and choose the one that is right to you.
|
|