JakeLV426
09-03-2010, 05:44 PM
Hi, i'm trying to build some UI's to exercise my formLayout knowledge, but i'm running into some
problems. It seems that no matter what commands I use to place some textFieldGrp entries into
my window, they stubbornly refuse to register themselves to the left side of my layout, although
they are attached to it. Is this a textFieldGrp specific thing? I have no problem getting buttons where
I want them.
I realize this probably stinks of noob coder, so thanks for your patience!
//------------------------------------------------------------------------------
global proc arcWelder()
{
if (`window -exists awUI`)
deleteUI awUI;
window
-title "Jake's ArcWelder"
-wh 125 175
-mxb off
-mnb off
-resizeToFitChildren 1
-sizeable 1
awUI;
columnLayout -adj 1 mainCol;
formLayout arcWeldForm;
//START formLayout Content
button -l "Mirror and Weld" -c arcWeldX mirrorWeldButton;
button -l "Mirror Only" -c arcMirrorX mirrorOnlyButton;
textFieldGrp -l "Search:" searchTextField;
textFieldGrp -l "Replace:" replaceTextField;
formLayout -e
-af mirrorWeldButton top 5
-af mirrorWeldButton left 0
-af mirrorWeldButton right 0
-ac mirrorOnlyButton top 5 mirrorWeldButton
-af mirrorOnlyButton left 0
-af mirrorOnlyButton right 0
-ac searchTextField top 5 mirrorOnlyButton
-af searchTextField left 0
-af searchTextField right 0
-ac replaceTextField top 5 searchTextField
-af replaceTextField left 0
-af replaceTextField right 0
arcWeldForm;
windowPref -remove awUI;
showWindow awUI;
window -e -w 125 -h 200 awUI;
}
problems. It seems that no matter what commands I use to place some textFieldGrp entries into
my window, they stubbornly refuse to register themselves to the left side of my layout, although
they are attached to it. Is this a textFieldGrp specific thing? I have no problem getting buttons where
I want them.
I realize this probably stinks of noob coder, so thanks for your patience!
//------------------------------------------------------------------------------
global proc arcWelder()
{
if (`window -exists awUI`)
deleteUI awUI;
window
-title "Jake's ArcWelder"
-wh 125 175
-mxb off
-mnb off
-resizeToFitChildren 1
-sizeable 1
awUI;
columnLayout -adj 1 mainCol;
formLayout arcWeldForm;
//START formLayout Content
button -l "Mirror and Weld" -c arcWeldX mirrorWeldButton;
button -l "Mirror Only" -c arcMirrorX mirrorOnlyButton;
textFieldGrp -l "Search:" searchTextField;
textFieldGrp -l "Replace:" replaceTextField;
formLayout -e
-af mirrorWeldButton top 5
-af mirrorWeldButton left 0
-af mirrorWeldButton right 0
-ac mirrorOnlyButton top 5 mirrorWeldButton
-af mirrorOnlyButton left 0
-af mirrorOnlyButton right 0
-ac searchTextField top 5 mirrorOnlyButton
-af searchTextField left 0
-af searchTextField right 0
-ac replaceTextField top 5 searchTextField
-af replaceTextField left 0
-af replaceTextField right 0
arcWeldForm;
windowPref -remove awUI;
showWindow awUI;
window -e -w 125 -h 200 awUI;
}
