info("mousedown")

The info(“mousedown”) function returns true or false depending on whether the mouse is currently down.


Description

This function returns true or false depending on whether the mouse is currently down.

For example, suppose you are using a slider button, and you have the Update Value While Dragging option checked so that the user will immediately see the value update as they drag. But what if you want to link the slider to a relatively slow procedure? When the Update Value While Dragging option is checked the attached code will run over and over again while dragging, and that might be too slow. You can use the info("mousedown") function to fix this, like this:

if info("mousedown") rtn endif
call doSomethingSlow

With this code, the slow operation will only happen when the user releases the mouse, at the end of the drag.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.