Was this helpful?
MouseUp Event
The MouseUp event triggers whenever OpenROAD receives a WM_LBUTTONUP, WM_MBUTTONUP, or WM_RBUTTONUP message. The event is not queued but generates and fires immediately. Information about the state of the mouse is stored in a MouseData object delivered to the 4GL program in the MessageObject of the FrameExec, which it inherits from the GhostExec class.
This event has the following syntax:
on MouseUp [FieldObject]
The following attributes of the FrameExec or GhostExec class are available in the MouseUp event block:
MessageObject
Specifies a MouseData object that contains information about the state of the mouse at the time of the MouseUp event
OriginatorField
Specifies the field specified in the on MouseUp statement
TriggerField
Specifies the FieldObject field that the mouse button was released on
ReasonCode
Specifies a reason code:
RC_MOUSELEFT – The user released the left mouse button.
RC_MOUSEMIDDLE – The user released the middle mouse button.
RC_MOUSERIGHT – The user released the right mouse button.
For numeric equivalents of these system constants, see For the ChildMouseDown, MouseDown, ChildMouseUp, and MouseUp Events.
More information:
MessageObject Attribute (GhostExec class)
OriginatorField Attribute (FrameExec class)
TriggerField Attribute (FrameExec class)
Last modified date: 06/25/2024