PDA

View Full Version : window layout question


RavenEye
06-25-2007, 10:28 PM
I'm having issues with doing frameLayout. Below is the code that creates the window. When excuted each new frameLayout is all in one another. How can I get the frameLayout to be seperate enities. Instead of a small fish being eatin by a bigger fish, bigger fish being eatin by a larger fish, larger fish being eatin by an extra large fish, and so on.

global proc aasBG()
{
window -title "aasBG" -w 250 -h 500;
frameLayout -label "Paul Revere" -borderStyle "etchedIn" -font "tinyBoldLabelFont" -cll 1 ;
columnLayout -columnAttach "both" 12 -rowSpacing 5 -columnWidth 100;
button -c prevereBG -label "All";
button -c prevereHeadBG -label "Head";
button -c prevereHandBG -label "Hands";
button -c prevereCoatBG -label "Coat";
button -c preverePantsBG -label "Pants";

frameLayout -label "Sutherland" -borderStyle "etchedIn" -font "tinyBoldLabelFont" -cll 1;
columnLayout -columnAttach "both" 12 -rowSpacing 5 -columnWidth 100;
button -c sutherlandBG -label "All";
button -c sutherlandHeadBG -label "Head";
button -c sutherlandHandsBG -label "Hands";
button -c sutherlandShirtBG -label "Shirt";
button -c sutherlandPantsBG -label "Pants";

frameLayout -label "Mitchell" -borderStyle "etchedIn" -font "tinyBoldLabelFont" -cll 1;
columnLayout -columnAttach "both" 12 -rowSpacing 5 -columnWidth 100;
button -c mitchellBG -label "All";
button -c mitchellHeadBG -label "Head";
button -c mitchellHandBG -label "Hands";
button -c mitchellCoatBG -label "Shirt";
button -c mitchellPantsBG -label "Pants";

frameLayout -label "Horse" -borderStyle "etchedIn" -font "tinyBoldLabelFont" -cll 1;
columnLayout -columnAttach "both" 12 -rowSpacing 5 -columnWidth 100;
button -c horseBG -label "All";
button -c horseBodyBG -label "Body";
button -c horseSaddleBG -label "Saddle";
showWindow;
}

Robert Bateman
06-26-2007, 01:10 AM
global proc aasBG()
{
window -title "aasBG" -w 250 -h 500;
columnLayout;
frameLayout -label "Paul Revere" -borderStyle "etchedIn" -font "tinyBoldLabelFont" -cll 1 ;
columnLayout -columnAttach "both" 12 -rowSpacing 5 -columnWidth 100;
button -c prevereBG -label "All";
button -c prevereHeadBG -label "Head";
button -c prevereHandBG -label "Hands";
button -c prevereCoatBG -label "Coat";
button -c preverePantsBG -label "Pants";
setParent ..;
setParent ..;

frameLayout -label "Sutherland" -borderStyle "etchedIn" -font "tinyBoldLabelFont" -cll 1;
columnLayout -columnAttach "both" 12 -rowSpacing 5 -columnWidth 100;
button -c sutherlandBG -label "All";
button -c sutherlandHeadBG -label "Head";
button -c sutherlandHandsBG -label "Hands";
button -c sutherlandShirtBG -label "Shirt";
button -c sutherlandPantsBG -label "Pants";
setParent ..;
setParent ..;

frameLayout -label "Mitchell" -borderStyle "etchedIn" -font "tinyBoldLabelFont" -cll 1;
columnLayout -columnAttach "both" 12 -rowSpacing 5 -columnWidth 100;
button -c mitchellBG -label "All";
button -c mitchellHeadBG -label "Head";
button -c mitchellHandBG -label "Hands";
button -c mitchellCoatBG -label "Shirt";
button -c mitchellPantsBG -label "Pants";
setParent ..;
setParent ..;

frameLayout -label "Horse" -borderStyle "etchedIn" -font "tinyBoldLabelFont" -cll 1;
columnLayout -columnAttach "both" 12 -rowSpacing 5 -columnWidth 100;
button -c horseBG -label "All";
button -c horseBodyBG -label "Body";
button -c horseSaddleBG -label "Saddle";
setParent ..;
setParent ..;
showWindow;
}

CGTalk Moderation
06-26-2007, 01:10 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.