DM_SETCURSORPOS

Far Manager

DM_SETCURSORPOS

The DM_SETCURSORPOS message is sent to dialog manager to position the cursor in dialog edit lines and DI_USERCONTROL items.

Param1

The ID of the dialog item

Param2

Pointer to a COORD structure containing information about cursor position (COORD.Y is ignored for line editor).

Return

FALSE - the item is not a line editor or DI_USERCONTROL item.

Controls

ControlDescription
DI_COMBOBOX combined list
DI_EDIT edit line
DI_FIXEDIT fixed-size input field
DI_PSWEDIT password input field
DI_USERCONTROL custom (defined by programmer) control

Remarks

To switch off the cursor in DI_USERCONTROL item set fields of COORD structure to -1.

Example

See also: