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 AnchorToContent property is used to determine and change how the control adapts to its content.
Example
// Enlarge the control to fit the content
STC_MyText.AnchorToContent = atcAdaptInHeight
STC_MyText = Product.Description
Syntax

Finding out how the control adapts in relation to its content Hide the details

<Result> = <Control used>.AnchorToContent
<Result>: Integer constant
Adjustment mode currently used for the control:
atcAdaptInHeightWhen the control content changes, its height changes and it adapts to the new content.
atcAdaptInWidthWhen the control content changes, its width changes and it adapts to the new content.
atcNoneWhen the control content changes, the control is not resized.
<Control used>: Control name
Name of the control to be used: Edit control, Static control, HTML Display control, Check box, Radio Button, Control Template.

Modifying how the control adapts in relation to its content Hide the details

<Control used>.AnchorToContent = <New adjustment mode>
<Control used>: Control name
Name of the control to be used: Edit control, Static control, HTML Display control, Check box, Radio Button, Control Template.
<New adjustment mode>: Integer constant
New adjustment mode used for the control:
atcAdaptInHeightWhen the control content changes, its height changes and it adapts to the new content.
atcAdaptInWidthWhen the control content changes, its width changes and it adapts to the new content.
atcNoneWhen the control content changes, the control is not resized.
Remarks
  • If the control is anchored and included in a Layout control, the cell is enlarged in order for the control size to adapt according to its anchor.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment