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
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The TopIndent property gets and sets the space at the top of the text (top margin) in a control.
This property is available on:
  • Edit controls.
  • Static Text controls.
Note This property is equivalent to the definition of high margin:
  • For the Static Text control: the top margin is defined in the "Style" tab of the field description window ("Outer frame" item, "Margins" button, "Top margin" option).
  • For an Edit control, the top margin is defined in the "Style" tab of the control description window ("Input area", "Margins", "Top margin").
Example
// Réserver 4 pixels de marge en haut et en bas du champ Libellé
LIB_Date.RetraitBas = 4
LIB_Date.RetraitHaut = 4
// Réserver 5 pixels de marge en haut et en bas de la zone de saisie
SAI_NomVoiture.RetraitBas = 5
SAI_NomVoiture.RetraitHaut = 5
Syntax

Getting the value of the top margin in a control Hide the details

<Result> = <Control used>.TopIndent
<Result>: Integer
Number of pixels used for the margin at the top of the text. The indent is set to 0 pixels by default (no indent).
<Control used>: Control name
Name of field manipulated:
  • Static control,
  • Edit control.

Changing the value of the top margin in a control Hide the details

<Control used>.TopIndent = <New value>
<Control used>: Control name
Name of field manipulated:
  • Static control,
  • Edit control.
<New value>: Integer
New value for the margin at the top of the text (ien pixels). This value must be positive.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help