251024
This commit is contained in:
11
kongjian3.m
Normal file
11
kongjian3.m
Normal file
@@ -0,0 +1,11 @@
|
||||
htxt=uicontrol(gcf,"Style","text","Position",[200,125,150,25],"String","Set Window Properties");
|
||||
hp=uicontrol(gcf,"Style","checkbox","Position",[200,100,150,25],"String","My Position",...
|
||||
"Callback",["set(gcf,""Position"",[10,10,300,250];",...
|
||||
"if get(hp,""Value"")==1,",...
|
||||
"set(gcf,""Position"",[10,10,600,500]),",'end']);
|
||||
hc=uicontrol(gcf,"Style","checkbox","Position",[200,75,150,25],"String","My Color",...
|
||||
"Callback",["set(gcf,""color"",""w"");","if get(hc,""Value"")==1,","set(gcf,""color"",g]","end"]);
|
||||
hn=uicontrol(gcf,"Style","checkbox","Position",[200,50,150,25],"String","My Name",...
|
||||
"Callback",["set(gcf,""Name"",""未选择"";",...
|
||||
"if get(hn,""Value"")==1,",...
|
||||
"set(gcf,""Name"",""未选择"")","end");
|
||||
Reference in New Issue
Block a user