Make a graphic object movable
Make a container or drawing object movable so that the user can drag the object at runtime.
Tip: You can create movable dialog boxes and other floating interface elements.
- In Project view, select an object.
-
In Properties, set Move target:
- None. Object does not move as you drag the object at runtime.
- Self. Object moves as you drag the object at runtime.
- <AncestorObject>. Ancestor and descendant objects move as you drag the movable object at runtime.
Example
Consider this scenario:
- The blue rectangle object is a child of the orange rectangle object.
- The Move target of the blue rectangle is set to the orange rectangle.
- At runtime, if you drag the blue rectangle, both blue and orange rectangles move.
