PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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 Static control.
Remark: This property is equivalent to the definition of the top margin in the "Style" tab of the Static control ("Outside border" element, "Margins" button, "Top margin" option).
Example
// Define a margin equal to 4 pixels at the top and bottom of Static control
STC_Date.BottomIndent = 4
STC_Date.TopIndent = 4
Syntax

Getting the value of the margin at the top of the text in a Static control Hide the details

<Result> = <Static control>.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).
<Static control>: Control name
Name of Static control to use.

Changing the value of the margin at the top of the text in a Static control Hide the details

<Static control>.TopIndent = <New value>
<Static control>: Control name
Name of Static control to use.
<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