buttonStatus = mouse(_down)
If your program does not do any kind of event-trapping using the
HandleEvents statement, then you can use the
mouse(_down) function to determine whether the mouse button is currently down. In these circumstances,
_zTrue is the button is down, or
mouse(_down) function will not work if your program traps events using
HandleEvents. Since most well-designed programs trap events this way, the
mouse(_down) function is probably of limited usefulness. See the mouse <event>functions to learn how to respond to mouse clicks using event trapping.
You can also use the Toolbox function
fn button to determine whether the mouse is currently down.
fn button works regardless of whether your program uses event trapping.
mouse <position>; mouse <event>; on mouse