You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: Causes an <object> to follow the movements of the mouse.
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
grab graphic 1
Example:
grab the mouseControl
Example:
grab me
Parameters:
object: Any control on the current card.
Description:
Use the <grab> <command> within a <mouseDown> <handler> to drag an <object> around the <stack window> without <select|selecting> it.
You can only grab a control when the mouse pointer is within the control's rectangle at the time the mouse is clicked. If the <mouse pointer> is outside the <control> when the <grab> <command> is <execute|executed>, nothing happens.
Although the <grab> <command> returns to the calling handler immediately, the target control will remain grabbed until the user releases the mouse button, at which point the control will receive a mouseUp message.
If a subsequent script action deletes the control, or if the control becoms invisible, the grab will be automatically cancelled and in this case no message will be sent to the control.