User`s guide
Add Components to a Programmatic GUI
Asyntaxforpanelsis
ph = uipanel(fh,'PropertyName',Pro pertyValue,...)
where ph is the handle of the resulting panel. The first argument, fh,specifies
the handle of the parent figure. You can also specify the parent as a panel or
button group. See the
uipanel reference page for other valid syntaxes.
A syntax for button groups is
bgh = uibuttongroup('PropertyName' ,PropertyValue,...)
where bgh is the handle of the resulting button group. For button groups,
you must use the
Parent property to specify the component parent. See the
uibuttongroup reference page for other v alid syntaxes.
Forbothpanelsandbuttongroups,ifyoudonotspecifyaparent,the
component parent is the current figure as specified by the root
CurrentFigure
property.
Subsequent topics describe commonly used properties of panels and button
groups and offer a simple e xample for each component.
• “Commonly U sed Properties” on page 11-33
• “Panel” on page 11-35
• “Button Group” on page 11-36
Commonly Used Properties
The most commonly used properties needed to describe a panel or button
group are shown in the following table:
11-33