简单窗口

if (`window -ex ExampleWindow7`)

deleteUI ExampleWindow7;

window -widthHeight 260 200 -t "Test Window" ExampleWindow7;

columnLayout ColumnLayout;

frameLayout -labelVisible false -marginWidth 5 -marginHeight 5;

columnLayout;

text -label "Overall Intensity";

rowLayout -numberOfColumns 3;

string $radioButton1,$radioButton2,$radioButton3;

radioCollection;

$radioButton1 = `radioButton -l "row"`;

$radioButton2 = `radioButton -l "Medium"`;

$radioButton3 = `radioButton -l "High"`;

setParent ..;

text -l "Light Switches";

rowColumnLayout -numberOfColumns 2 -columnWidth 1 130 -columnWidth 2 130;

string $checkBox1,$checkBox2,$checkBox3,$checkBox4;

$checkBox1 = `checkBox -l "Front Spot"`;

$checkBox2 = `checkBox -l "Center Spot"`;

$checkBox3 = `checkBox -l "Near Flood"`;

$checkBox4 = `checkBox -l "Sunlight"`;

setParent ExampleWindow7|ColumnLayout;

textField -text "Ready" -editable false -width 278 StatusLine;

radioButton -edit -select $radioButton1;

checkBox -edit -value on $checkBox1;

checkBox -edit -value off $checkBox2;

checkBox -edit -value off $checkBox3;

checkBox -edit -value on $checkBox4;

radioButton -edit -onCommand "showStatus/"Low Intensity/"" $radioButton1;

radioButton -edit -onCommand "showStatus/"Medium Intensity/"" $radioButton2;

radioButton -edit -onCommand "showStatus/"High Intensity/"" $radioButton3;

checkBox -edit -changeCommand "showStatus/"Front Spot: #1/"" $checkBox1;

checkBox -edit -changeCommand "showStatus/"Center Spot: #1/"" $checkBox2;

checkBox -edit -onCommand "showStatus/"Near Flood On/""

-offCommand "showStatus/"Near Flood Off/"" $checkBox3;

checkBox -edit -onCommand "showStatus/"Sunlight On/""

-offCommand "showStatus/"Sunlight Off/"" $checkBox4;

showWindow ExampleWindow7;

proc showStatus(string $newStatus)

{

textField -edit -text $newStatus ExampleWindow7|ColumnLayout|StatusLine;

}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值