?? exm4.m
字號:
figure
hmO=uimenu('label','Option','Position',4);
hmOsub1=uimenu(hmO,'label','grid on','callback','grid on');
hmOsub2=uimenu(hmO,'label','grid off','callback','grid off');
hmOsub3=uimenu(hmO,'label','box on','callback','box on',...
'separator','on'); %<6>
hmOsub4=uimenu(hmO,'label','box off','callback','box off');
hmOsub5=uimenu(hmO,'label','Figure Color','Separator','on'); %<8>
hmOsub51=uimenu(hmOsub5,'label','Red','ForeGroundColor','r',... %<9>
'callback','set(gcf,''Color'',''r'')');
hmOsub52=uimenu(hmOsub5,'label','white',...
'callback','set(gcf,''Color'',''w'')');
%%%%%%%%%%
Pos_O=get(hmO,'position'), %查詢Option菜單位置值
Pos_BoxOn=get(hmOsub3,'position') %查詢box ob子菜單位置值
Pos_Red=get(hmOsub51,'position') %查詢red子菜單的位置值
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -