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.
- InProject view, select an object.
- InProperties, setMove target:
- None. Object does not move as you drag the object at runtime.
- Self. Object moves as you drag the object at runtime.
- . Ancestor and descendant objects move as you drag the movable object at runtime.<AncestorObject>
Example
Consider this scenario:
- The blue rectangle object is a child of the orange rectangle object.
- TheMove targetof the blue rectangle is set to the orange rectangle.
- At runtime, if you drag the blue rectangle, both blue and orange rectangles move.
Provide Feedback