CODE
window -widthHeight 350 150;
rowColumnLayout -numberOfColumns 3;
                int $index;
                for ($index = 0; $index < 10; $index++) {
                    text; intField; intSlider;
                };
        string $scrollLayout = `scrollLayout
            -horizontalScrollBarThickness 16
            -verticalScrollBarThickness   16 -h 800 -w 300`;
            rowColumnLayout -numberOfColumns 3;
                int $index;
                for ($index = 0; $index < 10; $index++) {
                    text; intField; intSlider;
                };
for ($index = 0; $index < 10; $index++) {
                    text; intField; intSlider;
                };
            rowColumnLayout -numberOfColumns 3;
                int $index;
                for ($index = 0; $index < 10; $index++) {
                    text; intField; intSlider;
                };
    showWindow;

the above is a sample code using Scrole Layout
in this code i can't set the Width and height of that scroll layout
can any one point me to set it with some samples.

  • created

    Jul '07
  • last reply

    Jul '07
  • 1

    reply

  • 1.2k

    views

  • 1

    user

because the scroll layout is a child of the rowColumnLayout it will always be restricted to the size of the rowColumnLayout.

you need to do this:

rowColumnLayout -numberOfColumns 3 -cw 1 200 -h 50;