MATLAB Creating Graphical User Interfaces

(Barry) #1
Adjust Programmatic UI Layouts Interactively

The following Inspector image illustrates using the Inspector to change the Max property
of a slider uicontrol from its default value (1.0) to 10.0.


Edit with the Property Editor


The Property Editor has a more graphical interface than the Property Inspector. The
interface is convenient for setting properties that affect the appearance of components.
To open it for a component, in the Command Window type:


propedit(object_handle)
Alternatively, omit the argument and type:


plotedit on
The figure enters plot edit mode. Select the object you want to edit and change
any property that the Property Editor displays. The following figure shows the
BackgroundColor and String properties of a list box altered using the Property Editor.

Free download pdf