DIF_SETCOLOR

Far Manager

DIF_SETCOLOR

The DIF_SETCOLOR flag allows to set the initial color of an item, placing the necessary color into the low-order byte of the FarDialogItem.Flags variable.

The DIF_COLORMASK value is a mask used by the Dialog Manager to select the color component passed in.

Controls

The DIF_SETCOLOR flag is applicable to the following dialog item:

ControlDescription
DI_BUTTON Push button.
DI_CHECKBOX Check box.
DI_RADIOBUTTON Radio button.
DI_TEXT Text string.
DI_VTEXT Vertical text string.
DI_DOUBLEBOX Single frame.
DI_SINGLEBOX Double frame.

Remarks

Color value can be changed upon receiving the DN_CTLCOLORDLGITEM event in the dialog handler.

See also: