|
发表于 2004-4-3 11:07:50
|
显示全部楼层
请求各位帮助很急!!!
一个解决方法如下:
function uidemo1(action);
%
% bbi 1999
global h_axes;
if nargin<1;
action='initialized';
end;
if strcmp(action,'initialized');
figure('name','Simulation Of Aerial',...
'num','off',...
'units','normal',...
'pos',[.2 .2 .6 .6],...
'color',[.8 .8 .8]);
h_axes= axes('units','normal',...
'pos',[.08 .1 .7 .84],...
'vis','on');
hl=uimenu(gcf,'label','vis','callback',['global h_axes;','set(h_axes,''vis'',''off'')']);
uicontrol(...
'style','frame',...
'units','normal',...
'pos',[.77 0 .2 .9],...
'back',[0.5 0.5 0.5]);
uicontrol(...
'style','popup',...
'units','normal',...
'vis','on',...
'pos',[.79 .7 .15 .05],...
'back',[.8 .8 .8],...
'string','0.25|0.5|0.625|0.65',...
'callback','uidemo1(''popup'');');
elseif strcmp(action,'popup');
end;
|
|