A Layout container is created using:
Layout layout1 = new Layout(Adjustment hadjustment, Adjustment vadjustment );As you can see, you can optionally specify the Adjustment objects that the Layout widget will use for its scrolling.
You can add and move widgets in the Layout container using the following two functions:
layout1.Put( Widget widget, int x, int y ); layout1.Move( Widget widget, int x, int y );The size of the Layout container can be set using the next function:
Layout.Size = new Size(int width, int height );The final four functions for use with Layout widgets are for manipulating the horizontal and vertical adjustment widgets:
Adjustment layout1.Hadjustment(); Adjustment layout1.Vadjustment(); layout1.Hadjustment(Adjustment adjustment ); layout1.Vadjustment(Adjustment adjustment);