User`s guide
Set Tab Order in a Programmatic GUI
'String',{'peaks','membrane','sinc'},. ..
'Position',[290 200 130 20]);
sth = uicontrol(fh,'Style','tex t','String','Select Data',...
'Position',[290 230 60 20]);
ph = uipanel('Parent',fh,'Units ','pixels',...
'Position',[290 30 130 150]);
ah = axes('Parent',fh,'Units',' pixels',...
'Position',[40 30 220 220]);
bh1 = uicontrol(ph,'Style','pus hbutton',...
'String','Contour','Position',[20 20 80 30]);
bh2 = uicontrol(ph,'Style','pus hbutton',...
'String','Mesh','Position',[20 60 80 30]);
bh3 = uicontrol(ph,'Style','pus hbutton',...
'String','Surf','Position',[20 100 80 30]);
You can obtain the default tab order for a f igure, panel, or button group by
retrieving its
Children property. For the example, the statement is
ch = get(ph,'Children')
11-71