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
  • Limits
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The InitialWidth property is used to:
  • Find out the initial width of a control or window.
    The initial width corresponds to the width defined in the window editor during the element description. This width can evolve and it can be modified. It is returned by the Width property.
  • Modify the base width used to anchor the controls "in width".
    When a control is anchored, the base width used to resize the control according to the window is the width defined when the control was created (returned by the InitialWidth property).
    To modify the width of a control anchored in width, you must also modify its initial width.
  • Find out the initial width of a report control.
    The initial width corresponds to the width defined in the report editor during the element description. This width can evolve and it can be modified. This new width is returned by the Width property.
Example
// Augmente la largeur du libellé "LIB_Titre" de 30 millimètres
LIB_Titre.Largeur = LIB_Titre.LargeurInitiale + 30
// Remet le champ à sa largeur d'origine
SAI_Saisie1.Largeur = SAI_Saisie1.LargeurInitiale
// Élargit de 30 pixels le champ TABLE_Table1 qui est ancré en largeur
TABLE_Table1.Largeur += 30
TABLE_Table1.LargeurInitiale += 30
Syntax

Finding out the initial width Hide the details

<Initial width> = <Element used>.InitialWidth
<Initial width>: Integer
Width of the element defined in the window editor during its creation. This width is expressed in pixels.
<Element used>: Control name or window name
Name of the element (control or window) whose initial width must be calculated.
WINDEVAndroidiPhone/iPadIOS WidgetJavaUser code (UMC)

Modifying the initial width of a control anchored in width Hide the details

<Control used>.InitialWidth = <New width>
<Control used>: Control name
Name of the anchored control whose the initial width must be modified.
<New width>: Integer
New initial width of the anchored control (including the border) expressed in pixels.
Remarks

Limits

iPhone/iPadIOS Widget The InitialWidth property is not available on Table controls. However, it is available for table columns.
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