Skip to main content
Version: v19

On Mouse Move

CodeCan be called byDefinition
374D Write Pro area - Button - Button Grid - Check Box - Combo Box - Dropdown list - Form - Hierarchical List - Input - List Box - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Ruler - Spinner - Splitter - Stepper - Tab controlThe mouse cursor moves at least one pixel OR a modifier key (Shift, Alt/Option, Shift Lock) was pressed

Description

This event is generated:

  • when the mouse cursor moves at least one pixel
  • OR when a modifier key (Shift, Alt/Option, Shift Lock) was pressed. This makes it possible to manage copy- or move-type drag-and-drop operations.

If the event is checked for an object only, it is generated only when the cursor is within the graphic area of the object.

The On Mouse Move event updates the MouseX and MouseY system variables.

Objects that are made invisible using the OBJECT SET VISIBLE command or the Visibility property do not generate this event.

Calling stack

If the On Mouse Move event has been checked for the form, it is generated for each form object. If it is checked for an object, it is generated only for that object. When there are superimposed objects, the event is generated by the first object capable of managing it that is found going in order from top level to bottom.

See also