ObjectDCL Banner

OnMouseMove Event

Description

Indicates the mouse is moving over this control.

Parameters

nFlags
Integer identifying the state of the mouse buttons.
nX
Integer identifying the X-axis coordinate of the cursor.
nY
Integer identifying the Y-axis coordinate of the cursor.

AutoLISP Syntax

Each control that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnMouseMove 
                 (nFlags [as Integer] nX [as Integer] nY [as Integer] /)
     
)

Applies For

AngleSlider, BlockList, BlockView, CheckBox, ComboBox, DwgList, DwgPreview, GraphicButton, Grid (Hatch), EditableGrid, HtmlControl, ImageCombo, Label, ListBox, ListView, Option, OptionList, PictureBox, SliderBar, SlideView, SpinButton, TextBox, TextButton, TreeControl.

Example

CopyCode imageCopy Code
; React to the mouse cursor moving over the control
(princ c:MyForm_MyControl_OnMouseMove
                 (nFlags nX nY /)
     (princ "OnMouseMove(")
     (princ nFlags)
     (princ ", ")
     (princ nX)
     (princ ", ")
     (princ nY)
     (princ ")\n")
)