Group boxes are used to create sections in a custom form. Related information can be visually differentiated and complex forms seem Simpler when fields are placed in logical group boxes. As an example, see the Define Import/Export map dialog box. Importing is such a complex process that there are four tabs of data and within each tab there are one or more group boxes to clarify the data that needs to be entered. .
1. In the Custom Form Editor, select Item >- Group Box. A group box appears on the Travel Information form. Double-click on the group box, and the Item Information dialog box for group boxes is displayed. This is the same as the Item Information dialog box for text .
2. In the Item Information dialog box, enter the following information:
Text Type in the name of your group box.
X and Y Select the horizontal and vertical offsets from the upper-left
corner of the new form. You can simply move the group box, rather than entering values for X and Y.
Width and Height Specify the width and height (in pixels) of the group box you are adding to the form. This can also be adjusted by sizing the field after it has been created.
Adding Buttons to a Custom Form
You can add only two buttons to a custom form: OK and Cancel. (This is because custom forms are built on a dialog box “chassis.”) To add a button in the Custom Form Editor, select item > Button. Select the OK or Cancel button to place it on your custom form
Change the Position of a Custom Form
You can set the size of your custom form when it opens, as well as its location in the current window. For example, if you will always be opening your custom form from the Gantt Chart view and don’t want to cover up the Task Names, you would move your dialog box toward the right side of the window. To change the position or size of your custom form when it opens, do the following:
1. From the Customize Forms dialog box (Tools >- Customize >- Forms), select your form and click Edit. The Custom Form Editor is displayed.
2. Select Edit >- Select Dialog to select the whole form, or click on the background of the custom form.
3. Select Edit >- Information or double-click on the for~ to display the Form Information dialog box.
4. Type in the X and Y coordinates for your form (1,1 is the upper-left of your screen) and increase the value in either field to move the dialog box to the right (for X) or down (for Y) one pixel. Clicking Auto for X and Ywill center your dialog box on the user’s screen. The X and Y coordinates will be automatically updated when you move your form around within the Custom Form Editor screen.
5. Type in the Width and Height of your custom form. Changes to the size of the form using the raouse automatically update these fields .
6. Choose File >- Save to save your form.
7. Choose File >- Exit to close the editor and return to Project 2000
Using the Organizer to Manage Custom Forms
So, now you’ ‘e made this wonderful Travel Information form and you want to use it in other projects. How do you make the custom form available outside your project? By using the Organizer to move the custom form definition to Global. Select Tools >- Organizer to display the Organizer dialog box. Select the Forms tab, shown in Figure 23.13. The left pane shows forms in the global template. The right pane ShOW5 forms in the current project. (See Chapter 21, “Customizing Project 2000,” for information on using the Organizer.)
To copy a form to the global template, follow these steps:
1. Select the form in the current project.
2. Click the Copy button to copy the form to the global template.
3. Click OK to close the Organizer .
You also might need to delete a custom form in order to replace it with a-newer form. Use the Organizer to perform this task also.
To delete a form, follow these steps:
1. Choose Tools> Organizer to display the Organizer.
2. Clid< the Forms tab.
3. Select the form you want to delete.,
4. Click the Delete button. You’ll be prompted to confirm the deletion.
5. Click OK to close the Organizer
Macros, discussed in and custom fields and forms, discussed in this provide a lot of tools for customizing Project to suit your needs. If you need to go even further, Visual Basic gives you the maximum flexibility for making Project do exactly what you want it to do. In the next two chapters, you’ll learn how to customize Project 2000 extensively with Visual Basic