DN_BTNCLICK

Far Manager

DN_BTNCLICK

The DN_BTNCLICK event is received by the following items DI_BUTTON, DI_CHECKBOX, DI_RADIOBUTTON after the user pressed Enter or Space (for buttons), '+', '-' or '*'.

Param1

Dialog item ID.

Param2

State of the item after the keystroke:
DI_BUTTON = 0
DI_CHECKBOX =0 (unchecked), 1 (checked) and 2 (undefined, if the DIF_3STATE flag is set)
DI_RADIOBUTTON = 0 - for the previous element in the group, 1 - for the active element in the group.

Return

For DI_BUTTON: TRUE - if the message has been handled and it should not be processed by the kernel.
FALSE - continue processing the message by the kernel.

For other elements: TRUE - to apply the changes and redraw the control.
FALSE - to discard changes.

Controls

ControlDescription
DI_BUTTON Push Button.
DI_CHECKBOX Check Box.
DI_RADIOBUTTON Radio Button.

Remarks

Example

See also: