Rotating controls in a DataWindow object
222 DataWindow .NET
Rotating controls in a DataWindow object
Controls that display text such as text controls, columns, and computed fields
can be rotated from the original baseline of the text. The Escapement option on
the Font property page for the control lets you specify the amount of rotation,
also known as escapement.
Several other properties of a rotated control affect its final placement when the
DataWindow object runs. The location of the control in Design view, the
amount of rotation specified for it, and the location of the text within the
control (for example, centered text as opposed to left-aligned text) all
contribute to what you see in the DataWindow object Preview view.
The following procedure includes design practices that help ensure that you get
the final results you want. As you become more experienced, you can drop or
alter some of the steps. The procedure recommends setting a visible border on
the control so that you can see where the control is located in the Preview view
and making the control movable in the Preview view, which is often helpful.
❖ To rotate a control in a DataWindow object:
1 Select the control in the Design view.
2 Change its border to Box (General property page>Border>Box) and make
it movable (Position property page>Moveable check box).
3 In Design view, enlarge the area in which the control is placed.
For example, in a grid DataWindow object, make the band deeper and
move the control down into the center of the band.
4 Display the Modify expression dialog box for the Escapement property.
(Click the button next to the Escapement property on the Font property
page.)
5 Specify the amount of rotation you want as an integer in tenths of a degree.
(For example, 450 means 45 degrees of rotation; 0 means horizontal or no
rotation.)