Wait_For_Mouse_Button

Wait_For_Mouse_Button(Which_Button)

 

Wait_For_Mouse_Button is a call that delays the program until the specified mouse button has been clicked in the RaptorGraph window.  Wait_For_Mouse_Button does not provide the location of the click.  To wait for a mouse button and know where it was clicked, use Get_Mouse_Button.  Note that if the program is waiting for a left click and the right mouse is clicked, the right click will be lost.

 

Which_Button must be either Left_Button or Right_Button.

 

A click consists of both pressing and releasing the mouse.

 

Notes:  A graphics window must be open when Wait_For_Mouse_Button is called or a run-time error will occur.  If the RaptorGraph window is not on top, the user may have to click on it once before it will respond to user mouse clicks.

 

Example:

 

Wait_For_Mouse_Button(Left_Button)