5. Events : MouseEnter Event
 
Share this page                  
MouseEnter Event
The MouseEnter event occurs when the mouse cursor enters an ActiveField. A corresponding MouseExit event occurs when the mouse cursor leaves the field.
MouseEnter events do not occur when the mouse is captured (that is, during a drag-and-drop operation). If a MouseEnter event occurs and the corresponding MouseExit event has not occurred when the mouse is captured, a MouseExit event will be generated when the mouse becomes captured. Thus, every MouseEnter event is followed by a matching MouseExit event. When a MouseExit event is generated because the mouse becomes captured, the associated ReasonCode is RC_MOUSECAPTURED.
This event has the following syntax:
on MouseEnter [activefieldname]
The following attributes of the FrameExec class can be used in the MouseEnter event block:
TriggerField
Specifies the field that the mouse cursor entered
OriginatorField
Specifies the field specified in the on MouseEnter statement
More information:
ChildMouseEnter Event (see page ChildMouseEnter Event)
MouseExit Event (see page MouseExit Event)
OriginatorField Attribute (see page OriginatorField Attribute)
TriggerField Attribute (see page TriggerField Attribute)