PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
..InitialHeight is used to:
  • Find out the creation height of a control or window.
    The creation height corresponds to the height defined in the window editor during the description of the object. This height can evolve and it can be modified. It is returned by ..Height.
  • Modify the base height used to anchor the controls "in height".
    When a control is anchored, the base height used to calculate how the control is resized according to the window is the height of the control defined during its creation (returned by ..InitialHeight).
    To modify the height of a control anchored in height, its initial height must also be modified.
  • Find out the creation height of a control or block in a report.
    The creation height corresponds to the height defined in the report editor during the description of the object. This height can evolve and it can be modified. This new height is returned by ..Height.
Example
// Increases the height of "STC_Title" by 30 millimeters
STC_Title..Height = STC_Title..InitialHeight + 30
// Restores the initial height of the control
EDT_Edit1..Height = EDT_Edit1..InitialHeight
// Enlarges TABLE_Table1 that is anchored in height by 30 pixels
TABLE_Table1..Height += 30
TABLE_Table1..InitialHeight += 30
Syntax

Finding out the creation height Hide the details

<Creation height> = <Object name>..InitialHeight
<Creation height>: Integer
Initial height of the specified object (including the border). This height is expressed in pixels in a window and/or in a page, and in millimeters in a report.
<Object name>: Character string (with or without quotes)
Name of the object (control, window or report block) whose initial height must be calculated.
Remarks
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment