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