The Capture function allows to capture the mouse events until the button is released.
This function can be called only when the left or right mouse button is down.
Syntax
Integer Mouse.Capture()
Parameters
The Capture function has no parameters.
Return value
The Capture function returns true.
If an error occurs, the Capture function returns false.
Example
// [Dialog.OnButton] event
if pBtn==BTN_LDOWN
myMouse.Capture()
end
if pBtn==BTN_LDOWN
myMouse.Capture()
end