Creating and Changing Forms (XForms (Forms Library) - Version 1.2 (Rev. 4) A Graphical User Interface Toolkit for X)

Next: Adding Objects, Up: Part II Creating Forms [Contents][Index]

### 10.1 Creating and Changing Forms

To create a new form use the "New Form" entry in the "Form" menu at the top. When asked for the new form’s name enter a (unique) name that is a valid C identifier. The form is shown in the main window and objects can be added to it.

There are two ways to change the size of a form. The easiest way is to simply change the size of the main window displaying the form and the form will resize itself to fit the new size. Otherwise you can use the "Resize Form" entry in the "Form" menu, in which case you can enter the width and height of the form manually.

To change the name of the current visible form use the "Rename Form" entry in the "Form" menu. You will be prompted for the new form name.

To delete a form use the "Delete Form" entry in the "Form" menu . The current form will be removed after a box asking you if you’re sure had been shown.