Main Content

move

Move or resize control in parent window

Description

V = move(c) returns a four-element vector indicating the current position of the control.

V = move(c,position) moves the control to the position specified by position.

Input Arguments

collapse all

COM object, specified as a function handle.

New position in x,y pixel coordinates, specified as integers.

Example: [0 0 200 200]

Output Arguments

collapse all

Position vector, specified as four-element integer vector containing the position and size of the control in the parent figure window. The elements of the vector are [x, y, width, height]. The values x and y are offsets in pixels from the bottom left corner of the figure window to the same corner of the control. The values width and height are the size of the control itself.

Version History

Introduced before R2006a

See Also

|