Dialog item flags

Far Manager

Dialog item flags

It is possible to control DialogAPI behavior and appearance using flags. To know which flags affect a specific control, read in the control item's description.
FlagDescription
DIF_3STATE A DI_CHECKBOX control will have 3 states.
DIF_BOXCOLOR Control text will have frame color.
DIF_BTNNOCLOSE For button -- do not close dialog.
DIF_CENTERGROUP Centering a group of controls.
DIF_CENTERTEXT Text centering in static controls.
DIF_COLORMASK Mask for color attributes selection.
DIF_DISABLE Disabling a control.
DIF_DROPDOWNLIST Defines read-only list style.
DIF_EDITEXPAND Environment variables "expansion" in edit boxes.
DIF_EDITOR Sequentially defined edit boxes.
DIF_GROUP Grouping of radio buttons.
DIF_HISTORY Allows to keep history for edit boxes.
DIF_HIDDEN Hides a control.
DIF_LEFTTEXT Left-align title of a frame.
DIF_LISTAUTOHIGHLIGHT Automatic assignment of list hotkeys.
DIF_LISTNOAMPERSAND Allows showing ampersands in the listbox.
DIF_LISTNOBOX Display listbox without a frame.
DIF_LISTNOCLOSE Do not close the dialog upon list item selection.
DIF_LISTWRAPMODE "Wraps" list upon navigation.
DIF_MANUALADDHISTORY The dialog handler itself will be adding lines to the history.
DIF_MASKEDIT Defines mask in edit boxes.
DIF_MOVESELECT Change selection in radio buttons group upon input focus change.
DIF_NOAUTOCOMPLETE Disable autocompletion for input lines.
DIF_NOBRACKETS Displays button caption without brackets.
DIF_NOFOCUS Control item can't receive input focus.
DIF_NOTCVTUSERCONTROL do not convert characters (CHAR_INFO::Char) while writing the virtual buffer to the screen.
DIF_READONLY Makes edit boxes "read-only".
DIF_SELECTONENTRY Edit box contents will be selected upon receiving input focus.
DIF_SEPARATOR Text string is displayed as a separator (single horizontal line).
DIF_SEPARATOR2 Text string is displayed as a separator (double horizontal line).
DIF_SETCOLOR Element color definition.
DIF_SHOWAMPERSAND Show ampersand character not using it for the hot key definition.
DIF_USELASTHISTORY Initial value is taken from the history list.
DIF_VAREDIT Edit box without size limit.
See also: