Button
You can use the Button function to determine whether the user pressed the
mouse button.
FUNCTION Button: Boolean;
DESCRIPTION
The Button function looks in the Operating System event queue for a mouse-down event. If it finds one, the Button function returns TRUE; otherwise, it returns FALSE. To determine whether the mouse button is still down after a mouse-down event, use the StillDown function.
SEE ALSO
See "The Event Queue" on page 2-83 for information about the Operating System
event queue.