ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The TopIndent property is used to get and change the space at the top of the text (top margin) in a control.
This property is available for:
  • Edit controls.
  • Static controls.
Remark: This property is equivalent to setting the top margin:
  • For Static controls: the top margin is defined in the "Style" tab of the control description window ("Outside borders", "Margins", "Top margin").
  • For an Edit control, the top margin is defined in the "Style" tab of the control description window ("Input area", "Margins", "Top margin").
Example
// Define a margin equal to 4 pixels at the top and bottom of Static control
STC_Date.BottomIndent = 4
STC_Date.TopIndent = 4
// Keep a 5-pixel margin at the top and bottom of the input area
EDT_CarName.BottomIndent = 5
EDT_CarName.TopIndent = 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 the control used:
  • 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 the control used:
  • 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/26/2022

Send a report | Local help