ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Your version: 01F250083H (WINDEV 25)

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Horizontal alignment
  • Limitations
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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
    image of top-aligned text
  • Alignment in the middle
    image of text aligned in the middle
  • Alignment at bottom
    image of bottom-aligned text
..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.
Example
// 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:
vaBottomthe text is located at the bottom of control
vaMiddlethe text is located in the middle of control
vaTopthe 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:
vaBottomthe text is located at the bottom of control
vaMiddlethe text is located in the middle of control
vaTopthe text is located at the top of control

Remarks

Horizontal alignment

To define the horizontal alignment of the control, use ..HorizontalAlignment.

Limitations

WINDEV In a window, ..VerticalAlignment is used to find out and modify the vertical alignment for the following types of controls:
  • Static control
  • Check box or radio button
  • Image
  • Column in a table or in a treeview table
  • List Box
  • Combo Box
  • Bar Code
  • Chart
  • Rating control
  • Organization Chart
WINDEVUniversal Windows 10 App In a report, ..VerticalAlignment is used to find out and modify the vertical alignment for the following types of controls:
  • Static control.
  • Calculated control.
  • Preset control.
  • Chart control.
  • Group of controls: This property will only be applied to the controls that support the vertical alignment.
Java ..VerticalAlignment only applies to the following controls:
  • Static control.
  • Image.
  • Check Box.
  • Radio Button.
  • Combo Box.

Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/28/2020

Send a report | Local help