Vcl.StdCtrls.TOwnerDrawState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TOwnerDrawState = Winapi.Windows.TOwnerDrawState;

Properties

Type Visibility Source Unit Parent
set public Vcl.StdCtrls.pas Vcl.StdCtrls Vcl.StdCtrls

Description

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

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.