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 LeftIndent property is used to get and change the space to the left of the text in a control.
This property is applied to the following controls:
  • the columns of Table and TreeView Table controls (between the beginning of column and the beginning of text).
  • edit controls.
  • the Combo Box and List Box controls.
  • the Button controls.
  • WINDEV the Ribbon controls.
  • the Tab controls.
  • Static controls.
This space is expressed in pixels.
Table control without left indent
Table control without left indent
Table control with left indent set to 20 pixels
Table control with left indent set to 20 pixels
Example
// Indents all the columns in a Table control by 20 pixels
TABLE_Table1.LeftIndent = 20
// Sets an additional indentation to the Day column of the current row
COL_Day.LeftIndent = 50
Syntax

Finding out the left indent of a control Hide the details

<Result> = <Control used>.LeftIndent
<Result>: Integer
Number of pixels used to indent the text. The indent is set to 0 pixels by default (no indent).
<Control used>: Control name
Name of the control to be used:
  • column of a Table control.
  • column of a TreeView Table control..
  • edit control.
  • List Box or Combo Box control.
  • Button control.
  • Ribbon control.
  • Tab control.
  • Static control.

Changing the left indent of a control Hide the details

<Control used>.LeftIndent = <New indent>
<Control used>: Control name
Name of the control to be used:
  • column of a Table control.
  • column of a TreeView Table control..
  • edit control.
  • List Box or Combo Box control.
  • Button control.
  • Ribbon control.
  • Tab control.
  • Static control.
<New indent>: Integer
Number of pixels that will be used to indent the text in the specified control.
Remark: Indent applied to the entire Table control: If a specific indent is applied to one of the columns, the new indent will not be applied to this column.
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/31/2023

Send a report | Local help