Framelayout In Formlayout

Hi

i'm trying to create a framelayout inside a fromlayout. inside the framelayout there should be multiple iconTextButtons.

for the formlayout i declared the variables. (and also placed them, but i won't post this here now)


string $UI_formLayout = formLayout;

string $UI_frameLayout = frameLayout -cll 1;

string $UI_rowColumnLayout = rowColumnLayout -nc 3;

string $UI_button_001 = iconTextButton -flag -flag -flag;
string $UI_button_002 = iconTextButton -flag -flag -flag;
string $UI_button_003 = iconTextButton -flag -flag -flag;

setParent..;
setParent..;


maya always "object is no a child", and gives a transform path to the iconTextButtons.

i couldn't find a command like "radioCollection" for radioButtons, maybe there is one, or something else.

thanks for help

QUOTE(malacay @ 02/22/06, 12:33 PM) [snapback]228975[/snapback]
i couldn't find a command like "radioCollection" for radioButtons, maybe there is one, or something else.

huh? you mean you wnat radio iconTextButtons? like the ones on top of your channelbox? Well ill let youy in on seecret theres no radfibutton automation FOR ANYTHING ELSE except radiobuttons, the buttons on tofp for example call a function that uncheks all but the currently selected!

however you will wantto use iconTexChekboxes instead!

CODE
global proc jooIcoTextCBSample(int $no, string $parent){
$children=layout -q -ca $parent;
for ($each in $children)
   iconTextCheckBox -e -v 0 ($parent+"|"+$each);
iconTextCheckBox -e -v 1 ($parent+"|"+$children[$no-1]);
}

{
    string $window = window;
    string $form = formLayout -numberOfDivisions 100;
    string $b1 = frameLayout -label "buttons" -labelAlign "center"
                    -borderStyle "out" -cll yes
;
                string $parent=rowColumnLayout -numberOfColumns 3;
                    iconTextCheckBox     
                    -image1 "sphere.xpm" -iol "1"
                    -cc ("jooIcoTextCBSample(1,\""+$parent+"\");");
                    iconTextCheckBox     
                    -image1 "sphere.xpm" -iol "2"
                    -cc ("jooIcoTextCBSample(2,\""+$parent+"\");");
                    iconTextCheckBox     
                    -image1 "sphere.xpm" -iol "3"
                    -cc ("jooIcoTextCBSample(3,\""+$parent+"\");");
                    iconTextCheckBox     
                    -image1 "sphere.xpm" -iol "4"
                    -cc ("jooIcoTextCBSample(4,\""+$parent+"\");");
                    iconTextCheckBox     
                    -image1 "sphere.xpm" -iol "5"
                    -cc ("jooIcoTextCBSample(5,\""+$parent+"\");");
                    iconTextCheckBox     
                    -image1 "sphere.xpm" -iol "6"
                    -cc ("jooIcoTextCBSample(6,\""+$parent+"\");");
                setParent ..;
            setParent ..;
    string $b2 = button;
    string $column = columnLayout -adjustableColumn true;
    button; button; button;

    formLayout -edit
        -attachForm     $b1     "top"    5
        -attachForm     $b1     "left"   5
        -attachControl  $b1     "bottom" 5 $b2
        -attachPosition $b1     "right"  5 75

        -attachNone     $b2     "top"
        -attachForm     $b2     "left"   5
        -attachForm     $b2     "bottom" 5
        -attachForm     $b2     "right"  5

        -attachForm     $column "top"    5
        -attachPosition $column "left"   0 75
        -attachControl  $column "bottom" 5 $b2
        -attachForm     $column "right"  5
    $form;

    showWindow $window;
};

did i understand you correctly!

Hi Joojaa

thanks for ur post ... it wasn't exactly what i meant, but u anyway helped me with your post!!!
i found my mistake.

thanks!!!