
|
<<
Index
>>
|
FutureBasic 5
|
mouse(_down)
|
|
function
|
|
Syntax:
buttonStatus = mouse(_down)
Description:
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, mouse(_down)
returns _zTrue
is the button is down, or _false
otherwise.
The 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.
Note:
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.
See Also:
mouse <position>; mouse <event>; on mouse