ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Initial height (control and window)
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The MinHeight property gets and sets the minimum height of a control or window.
The minimum height of the controls and windows is 0 by default. However, some controls cannot be resized below the size of their border.
Reminder: The minimum height of a field or window is used for the following operations:
  • Window resized by the user.
  • Management of anchors.
  • Window resized through programming (with the Height property or the WinSize function).
Example
// Modification de la hauteur minimale d'un champ
SAI_Saisie1.HauteurMin = 200
SAI_Saisie1.Hauteur = 150
// En réalité, la hauteur du champ sera égale à 200
Syntax

Finding out the minimum height of an element Hide the details

<Current minimum height> = <Element used>.MinHeight
<Current minimum height>: Integer
Minimum height of specified element (including the border) expressed in pixels.
<Element used>: Control name or window name
Name of element (window or control) whose minimum height will be calculated.

Modifying the minimum height of an element Hide the details

<Element used>.MinHeight = <New minimum height>
<Element used>: Control name or window name
Name of element (window or control) whose minimum height will be modified
<New minimum height>: Integer
New minimum height of element (including the border) expressed in pixels.
Remarks

Initial height (control and window)

The initial height (described in the editor) is returned by the InitialHeight property.
In most cases, the height of an element depends on the MaxHeight and MinHeight properties. However, this constraint no longer applies when the height is changed programmatically (with the Height property or the WinSize function).
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help