Mien you add controls to an additional page click Separate Read Layout if you want the Read page iayout to differ from the Compose page layout

Figure 5.18 - For the Message form, the Separate Read Layout option is selected for the custom page.

If the Separate Read Layout option is not selected for a page, you cannot switch between the Compose and Read pages when the individual page is active.

To specify the Separate Read Layout option for a page

1. Click the page for which you want to specify the Separate Read Layout option.

2. On the Form menu, click Separate Read Layout.

3. Repeat for each individual page of the form.

Hide or Show a Page

Outlook uses parentheses to designate the pages that are hidden at run time. For example, in the preceding Figure 5-18, notice that the tab label text for pages 3 through 6 is in parentheses to indicate that these pages will be hidden at run time.

The ability to hide and show pages gives you great flexibility in designing forms. For example, quite often there isn't enough room on the Messagepage for all the controls you need to add. In this case, you can add controls to a custom form page. When you add controls to a page, the parentheses are removed from the text on the page's tab, indicating that the page will be visible at run time.

For some forms, you may want to hide the Message page. This can be especially useful for preaddressing forms. For example, you can specify an address in the To field of a form at design time and then hide the page. This prevents the user from changing the address and also lets users submit items without ever seeing the destination address on the form. In addition, you may also want to hide a second page of the form. Keep in mind, however, that at least one page must be visible on the form.

To hide or show a page at run time

1. In Design mode, click the desired page.

2. On the Form menu, click Display This Page.

If you drag a field or a control to a hidden page, Display This Pagewill turn on automatically. To hide the page, deselect Display This Page on the Form menu.

For More Information About See

Preaddressing forms "To Field' in Chapter 6

Hiding and showing pages "Hiding and Showing a Form Page" in Chapter 11

Rename a Page

When you make a page visible, you should rename it to convey the purpose of the page. To rename a page

1. In Design mode, click the page.

2. On the Form menu, click Rename Page.

3. Type the new name for the page.

Add Controls

Controls are the means through which users enter and view information on the form. When creating forms with Outlook, you usually add controls to the Compose page of the form first. Then, if you want the information in the controls to be saved to the item, you create a field for the control and bind the field to the control.

To add controls to the form, you use the Control Toolbox.

To showthe Control Toolbox

• In Design mode, on the Form Design toolbar, click the Control Toolbox icon.

With Outlook, you can add third-party .ocx controls and Microsoft ActiveX controls to the toolbox to provide added flexibility on your forms. Figure 5-19 illustrates the addition of several Microsoft ActiveX controls to the Outlook Control Toolbox.

Be aware that almost all of the events for third-party ActiveX controls do not fire within the Outlook forms container. However, the properties and methods of those controls are accessible using Outlook VBScript. See Chapter 6.

If you add ActiveX controls to your custom form, you must ensure that those controls are correctly installed and registered on your user's system. If the controls are not registered properly, an error message will appear when the user opens the form containing the embedded custom control.


0 0

Post a comment