This commit is contained in:
2025-10-24 11:42:36 +08:00
parent 513e92c60c
commit 3907fdf5b1
7 changed files with 38 additions and 0 deletions

11
kongjian3.m Normal file
View 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");