DM_SETMAXTEXTLENGTH

Far Manager

DM_SETMAXTEXTLENGTH

The DM_SETMAXTEXTLENGTH message is sent to the dialog manager to set the maximum length of an edit string.

Param1

The ID of a dialog item.

Param2

New maximum length of the string.

Return

The previous value of the length of the string or 0 in case of error.

Controls

ControlDescription
DI_COMBOBOX combined list
DI_EDIT edit line
DI_PSWEDIT password input field

Remarks

  1. For DI_COMBOBOX items affects only the edit line (has no effect for items with the DIF_DROPDOWNLIST flag set)
  2. In FAR versions before 1.70 beta 4, this message was called DM_SETTEXTLENGTH.

Example

See also: