MEL写界面

if(`window -ex TestWindows2`)

deleteUI TestWindows2;

window -widthHeight 300 200 TestWindows2;

string $form = `formLayout -numberOfDivisions 100`;

string $b1 = `button -l "A"`;

string $b2 = `button -l "B"`;

string $b3 = `button -l "C"`;

string $b4 = `button -l "D"`;

string $b5 = `button -l "E"`;

string $b6 = `button -l "E"`;

formLayout -edit

-af $b1 "top" 5

-af $b1 "left" 5

-an $b1 "bottom"

-ap $b1 "right" 0 33

-aoc $b2 "top" 0 $b1

-ac $b2 "left" 0 $b1

-an $b2 "bottom"

-ap $b2 "right" 0 66

-aoc $b3 "top" 0 $b1

-ap $b3 "left" 0 66

-an $b3 "bottom"

-ap $b3 "right" 0 99

-ac $b4 "top" 0 $b1

-aoc $b4 "left" 0 $b1

-an $b4 "bottom"

-aoc $b4 "right" 0 $b1

-ac $b5 "top" 0 $b2

-aoc $b5 "left" 0 $b2

-an $b5 "bottom"

-aoc $b5 "right" 0 $b2

-ac $b6 "top" 0 $b3

-aoc $b6 "left" 0 $b3

-an $b6 "bottom"

-aoc $b6 "right" 0 $b3

$form;

showWindow TestWindows2;

 

测试-ap -ac -aoc 的不同

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值