User`s guide
Compose and Code GUIs with Interactive Tools
setprop(object_handle,'pos')
ans =
set(object_handle,'Position',[20 20 60 20])
If you omit the property name, the function displays a GUI listing all the
properties of the object.
setprop(object_handle)
When you select a property name from the list and click OK, setprop returns
a set string for that property and its current value:
ans =
set(btn1,'FontName','MS Sans Se rif')
The setprop function places its return value on the system clipboard. You can
paste the result directly into your GUI code file. If you copy something else
before pasting, copy the value printed for
ans (or the variable you assigned
values to) from the Command Window and paste it into your code.
11-67