Next: Simple Attachment -form1.c Up: Combining Widgets Previous: The RowColumn Widget


Forms are the other major geometry manager widgets. They allow more complex handling of positioning of child widgets and can handle widgets of different sizes.

There is more than one way to arrange widgets within a form. We will look at three programs form1.c, form2.c and form3.c that achieve similar results and illustrate different approaches to attaching widgets to forms.

All three programs produce output like this:

Figfig:form form1.c output
Tue May 24 16:52:56 BST 1994