Font.Escapement (for rotating controls)

Description

The angle of rotation from the baseline of the text.

In the painter

Escapement on the Font page in the Properties view.

Value

An integer in tenths of degrees. For example, 450 means 45 degrees. 0 is horizontal.

Example

To enter rotation for a control, select the control in the Design view and click the button next to the Escapement property in the Properties view. In the dialog box that displays, enter the number of tenths of degrees.

The following picture shows the Design view with a number of text controls. Each text control shows the Font.Escapement value entered and the number of degrees of rotation. In the Design view, you do not see rotation; it looks as if the controls are all mixed up. One control seems to overlay another.

Figure 23-11: Design view with rotated text controls

The sample shows the Design view with a number of text controls. Each text control shows the Font.Escapement value entered and the number of degrees of rotation. For example, one is 180 degrees ( enter 1800 ). Rotation is not shown, so the controls are mixed up and two controls seem to overlie each other.

The next picture shows the same controls in the Preview view after it has been closed and reopened. Each control is rotated appropriately.

Figure 23-12: Preview view with rotated text controls

This sample shows text controls in the Preview view. Each control is rotated appropriately. For example, the control 180 degrees ( enter 1800 ) is upside down. This is how the control will display at runtime.

NoteViewing rotated controls in the Preview view If the Preview view is open in the DataWindow painter when you set the Font.Escapement property, you must close and reopen it in order to see the rotated text.