info("mousedown")
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

- info("modifiers") -- returns the status of the modifier keys.
- info("mouse") -- returns the current location of the mouse in screen relative coordinates.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0.