RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StdCtrls.TOwnerDrawState Type

Indicates state information that can influence how an item is drawn.

Pascal
TOwnerDrawState = Windows.TOwnerDrawState;
C++
Windows.TOwnerDrawState TOwnerDrawState;

TOwnerDrawState is used by event handlers in owner-draw controls to indicate the state of an item about to be drawn. It is a set that includes zero or more of the following:

Value 
Meaning 
odSelected  
The item is selected.  
odGrayed  
The item should appear grayed.  
odDisabled  
The item is disabled.  
odChecked  
The item should appear checked. (This does not apply to all objects)  
odFocused  
Keyboard input is directed to the item.  
odDefault  
The item is the default item (This does not apply to all objects)  
odHotLight  
The item is hot-lighted because under the mouse (only if the operating system supports hot-lighting)  
odInactive  
The item and its associated menu are inactive  
odNoAccel  
Any underline of an accelerator character should be skipped when drawing the control  
odNoFocusRect  
Do not display visual cues that indicate focus  
odReserved1  
Not currently used.  
odReserved2  
Not currently used.  
odComboBoxEdit  
The drawing takes place in the edit box of a combo box control.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!