PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..CaptionWidth is used to find out and modify the width reserved for the caption area in an edit control or in a Combo Box control.
Note: This property is useful when creating a control with ControlCreate. Indeed, during the dynamic creation of a control, the width of the caption is set to 0 by default.
Versions 22 and later
Windows Mobile This property is now available for the Windows Mobile applications.
New in version 22
Windows Mobile This property is now available for the Windows Mobile applications.
Windows Mobile This property is now available for the Windows Mobile applications.
Example
// Enlarge the caption of edit control
EDT_EDIT1..Width += 150
EDT_EDIT1..CaptionWidth += 150
EDT_Edit1..Caption = "Phone number of " + CUSTOMER.NAME
Syntax

Finding out the width of the caption area Hide the details

<Result> = <Control Name>..CaptionWidth
<Result>: Integer
Width (in pixels) of the caption area in the control.
<Control Name>: Character string (with or without quotes)
Name of control to use. This control can be an edit control or a Combo Box control.

Modifying the width of the caption area Hide the details

<Control Name>..CaptionWidth = <New value>
<Control Name>: Character string (with or without quotes)
Name of control to use. 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, ..CaptionWidth has no effect.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment