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 的不同