DRAG keyword
Activate dragging of object within the screen limits (by default) or within a rectangular boundary. The object can be moved using the mouse or touch screen. To disable dragging, call STOP DRAG.
Syntax
DRAG object, (x1, y1)-(x2, y2)
Parameters
- object: object (required)
- x1: integer of horizontal position 1
- y1: integer of vertical position 1
- x2: integer of horizontal position 2
- y2: integer of vertical position 2
Example
DRAG myImage 'Image can be moved anywhere around the screen
DRAG myImage, (0, 0)-(640, 320) 'Image can only be moved within the top half of screen
Go back to list of Keywords.