|
|
|
|
|
- Horizontal alignment
- Limitations
VerticalAlignment (Property) In french: CadrageVertical
The vertical alignment of a control consists in defining the text position in the control in relation to the control borders. This allows you to center the content of an edit control in relation to the borders of input area. Three types of alignment are available: - Alignment to top
- Alignment in the middle
- Alignment at bottom
..VerticalAlignment is used to find out and modify the vertical alignment of a control. The initial alignement of the control is defined when describing the control.
// If the control is aligned to top, align it at bottom IF STC_Static..VerticalAlignment = vaTop THEN STC_Static..VerticalAlignment = vaBottom END
Syntax
Finding out the vertical alignment of a control Hide the details
<Current alignment> = <Control used>..VerticalAlignment
<Current alignment>: Integer constant Current vertical alignment of control. The possible values are as follows:
| | vaBottom | the text is located at the bottom of control | vaMiddle | the text is located in the middle of control | vaTop | the text is located at the top of control |
<Control used>: Control name Name of control to use.
Modifying the vertical alignment of control Hide the details
<Control used>..VerticalAlignment = <New alignment>
<Control used>: Control name Name of control to use. <New alignment>: Integer constant New alignment of the control. The possible values are:
| | vaBottom | the text is located at the bottom of control | vaMiddle | the text is located in the middle of control | vaTop | the text is located at the top of control |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|