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 CaptionWidth property gets and sets the width reserved for the text area in an Edit or Combo Box control.
Remark: This property is particularly useful when creating a field with the ControlCreate function.. Indeed, during the dynamic creation of a control, the width of the caption is set to 0 by default.
Example
// Agrandir le libellé du champ de saisie 
SAI_SAISIE1.Largeur += 150
SAI_SAISIE1.LargeurLibellé += 150
SAI_SAISIE1.Libellé = "N° de tel de " + CLIENT.NOM
Syntax

Getting the width of the text area Hide the details

<Result> = <Control used>.CaptionWidth
<Result>: Integer
Width (in pixels) of the text area in the control.
<Control used>: Control name
Name of the control to be used. This control can be an edit control or a Combo Box control.

Changing the width of the text area Hide the details

<Control used>.CaptionWidth = <New value>
<Control used>: Control name
Name of the control to be used. This control can be an edit control or a Combo Box control.
<New value>: Integer
New width (in pixels) of the caption associated with the control.
Remarks
The control must use a style with the caption on the left. Otherwise, the CaptionWidth property has no effect.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help