MATLAB Functions | Help Desk |
selectmoveresize
Selecting, moving, resizing, or copying graphics objectsobject_creation_fcn('ButtonDownFcn','selectmoveresize') set(h,'ButtonDownFcn','selectmoveresize') A = selectmoveresize;
selectmoveresize
is a function that you can use as the callback routine for any graphics object's button down function. When executed, it selects graphics objects and allows you to move, resize, and copy them.
A = selectmoveresize
returns a structure array containing:
A.Type:
a sting containing the action type, which can be Select
, Move
, Resize
, or Copy
A.Handle
s: a list of the selected handles or for a Copy
an Mx2 matrix containing the original handles in the first column and the new handles in the second column.
ButtonDownFcn
of all graphics objects.