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


Solution
Lee Marsland
Re: Melscript: formLayouts in tabLayouts with frameLayouts?
on Mar 3, 2013 at 5:24:59 pm

I just checked it out real quick, simple fix.
As you added another Layout, it has been buried another layer, so you need to add another setParent..;
it would read

$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..;setParent..;

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

showWindow $win;


This keeps both your tabs as well as places the buttons side by side, if you wanted you can still add a gridLayout to your second tab.

Hope this helps,

Lee


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]