SUNCHIRP
10-12-2010, 03:14 PM
Hi, I can't seem to get this to behave properly, the window always seems to be a random size, not the width height I have set ?
if(`window -ex $vcsWindow`) deleteUI $vcsWindow ;
string $vcsWindow = `window -s 0 -title "Blah Blah" -widthHeight 200 440` ;
string $vcsForm = `formLayout -numberOfDivisions 100` ;
string $vcsFButton01 = `button -h 22 -w 200 -label "Blah Blah" -command ""`;
string $vcsFButton02 = `button -h 22 -w 200 -label "Blah Blah" -command ""`;
string $vcsFButton03 = `button -h 22 -w 200 -label "Blah Blah" -command ""`;
string $vcsFButton04 = `button -h 22 -w 200 -label "Blah Blah" -command ""`;
string $vcsFButton05 = `button -h 22 -w 200 -bgc 0.953 0.565 0.482 -label "Blah Blah" -command ""`;
formLayout -edit
-attachForm $vcsFButton01 "top" 0
-attachForm $vcsFButton01 "left" 0
-attachForm $vcsFButton02 "top" 22
-attachForm $vcsFButton02 "left" 0
-attachForm $vcsFButton03 "top" 44
-attachForm $vcsFButton03 "left" 0
-attachForm $vcsFButton04 "top" 66
-attachForm $vcsFButton04 "left" 0
-attachForm $vcsFButton05 "top" 88
-attachForm $vcsFButton05 "left" 0
$vcsForm;
showWindow $vcsWindow;
if(`window -ex $vcsWindow`) deleteUI $vcsWindow ;
string $vcsWindow = `window -s 0 -title "Blah Blah" -widthHeight 200 440` ;
string $vcsForm = `formLayout -numberOfDivisions 100` ;
string $vcsFButton01 = `button -h 22 -w 200 -label "Blah Blah" -command ""`;
string $vcsFButton02 = `button -h 22 -w 200 -label "Blah Blah" -command ""`;
string $vcsFButton03 = `button -h 22 -w 200 -label "Blah Blah" -command ""`;
string $vcsFButton04 = `button -h 22 -w 200 -label "Blah Blah" -command ""`;
string $vcsFButton05 = `button -h 22 -w 200 -bgc 0.953 0.565 0.482 -label "Blah Blah" -command ""`;
formLayout -edit
-attachForm $vcsFButton01 "top" 0
-attachForm $vcsFButton01 "left" 0
-attachForm $vcsFButton02 "top" 22
-attachForm $vcsFButton02 "left" 0
-attachForm $vcsFButton03 "top" 44
-attachForm $vcsFButton03 "left" 0
-attachForm $vcsFButton04 "top" 66
-attachForm $vcsFButton04 "left" 0
-attachForm $vcsFButton05 "top" 88
-attachForm $vcsFButton05 "left" 0
$vcsForm;
showWindow $vcsWindow;
