Example 2: rotating controls

The following DataWindow object shows the column headers for Health Insurance, Life Insurance, and Day Care rotated 45 degrees.

Figure 23-7: DataWindow with rotated text highlighting

The sample displays seven rows of data in an employee report. The data includes three columns of check boxes with the column headers Health I n s ., Life I n s ., and Day Care. The three titles are each rotated 45 degrees to the left.

To rotate each of these three text controls:

  1. Select one of the controls, then use Ctrl + click to select the other two controls.

    The Properties view changes to show the properties that are common to all selected controls.

  2. On the Font page in the Properties view, click the button next to the Escapement property.

  3. Enter the number 450 in the Modify Expression dialog box and click OK.

    The value entered for font escapement is in tenths of degrees, so the number 450 means 45 degrees. Specifying a condition is optional. Typically, you do not specify a condition for control rotation.

    The rotation of the controls does not change in the Design view.

  4. To see the change, close and reopen the Preview view.