DIF_3STATE

Far Manager

DIF_3STATE

The DIF_3STATE flag indicates that a DI_CHECKBOX element will have three states:

[ ] - off           (FarDialogItem.Selected = 0)
[x] - on            (FarDialogItem.Selected = 1)
[?] - undefined     (FarDialogItem.Selected = 2)

Controls

The DIF_3STATE flag is applicable to the following dialog items:

ControlDescription
DI_CHECKBOX Check box.

Remarks

When using the DIF_3STATE flag it is necessary to remember what the user expects while working with such checkbox. That is, if the user have selected the undefined checkbox state, then the option being controlled by this checkbox must be completely ignored during further processing. File attributes dialog is the striking example:

[ ] - clear attribute
[+] - set attribute
[?] - don't do anything with this attribute

See also: