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
AnchorToContent (Property)
In french: AncrageAuContenu
The AnchorToContent property determines and changes how the control adapts to its content.
Example
// Enlarge the control to fit the content
STC_MyText.AnchorToContent = atcAdaptInHeight
STC_MyText = Product.Description
Syntax

Determining how the control adapts 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, it adapts to the new content vertically.
atcAdaptInWidthWhen the control content changes, it adapts to the new content horizontally.
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.

Changing how the control adapts 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, it adapts to the new content vertically.
atcAdaptInWidthWhen the control content changes, it adapts to the new content horizontally.
atcNoneWhen the control content changes, the control is not resized.
Remarks
  • If the control is anchored within a Layout control, the cell is enlarged so that the control fits based on its anchors.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment