DM_LISTSETMOUSEREACTION

Far Manager

DM_LISTSETMOUSEREACTION

The DM_LISTSETMOUSEREACTION message is sent to the dialog manager to set the behavior for handling mouse movement in a DI_LISTBOX list.

Param1

The ID of the dialog item for which the behaviour is set.

Param2

Can have one of the following values (listing of FARLISTMOUSEREACTIONTYPE):
ValueDescription
LMRT_ONLYFOCUS The list will react on mouse movement (change cursor position in the list) only when the item is in focus
LMRT_ALWAYS The list will always react on mouse movement (change cursor position in the list). The example of such behavior is a list of found files in search results (Alt-F7)
LMRT_NEVER The list will not react on mouse movement

Return

Previous value.

Controls

ControlDescription
DI_LISTBOX list

Remarks

  1. By default, a nonfocused DI_LISTBOX item reacts to mouse movement.
  2. Far Manager 1.70 beta 5 and earlier: Param2 different of LMRT_ONLYFOCUS or LMRT_ALWAYS is similar to LMRT_ALWAYS value.

Example

See also: