FORUMS: list search recent posts

Re: Melscript: formLayouts in tabLayouts with frameLayouts?

COW Forums : Autodesk Maya

VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Jacqueline Johnsen
Re: Melscript: formLayouts in tabLayouts with frameLayouts?
on Mar 2, 2013 at 10:45:35 am

Yeah it places the buttons next to eachother but it also breaks my tabLayout.
Here's the script with working tabLayouts:
(2 tabs with each 2 buttons)$win = `window -t "tab layout"`;

tabLayout;

columnLayout tab1;
button -label "button1" -width 70 -command "button1command" myBtn1;
button -label "button2" -width 70 -command "button2command" myBtn2;
setParent..;

columnLayout tab2;
button -label "button3" -width 70 -command "button3command" myBtn3;
button -label "button4" -width 70 -command "button4command" myBtn4;

showWindow $win;


Here's the script with the buttons placed next to eachother which breaks the tabLayout:$win = `window -t "tab layout"`;

tabLayout;

columnLayout tab1;
gridLayout -nrc 2 2 -cw 70 myForm;
button -label "button1" -width 70 -command "button1command" myBtn1;
button -label "button2" -width 70 -command "button2command" myBtn2;
setParent..;

columnLayout tab2;
button -label "button3" -width 70 -command "button3command" myBtn3;
button -label "button4" -width 70 -command "button4command" myBtn4;

showWindow $win;


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]