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
AnchorToContent (Property)
In french: AncrageAuContenu
The AnchorToContent property determines and changes how the control adapts to its content.
AndroidiPhone/iPad This property is available for mobile windows.
Example
// Agrandir le libellé selon son contenu
LIB_MonTexte.AncrageAuContenu = atcAdaptInHeight
LIB_MonTexte = Produit.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 field to be manipulated: Edit control, Label, HTML Display control, Switch, Picker, Template control, Button control.
AndroidiPhone/iPad This property is also available for movable windows (constant aacAdapteEnHauteur only).

Changing how the control adapts to its content Hide the details

<Control used>.AnchorToContent = <New adjustment mode>
<Control used>: Control name
Name of field to be manipulated: Edit control, Label, HTML Display control, Switch, Picker, Template control, Button.
AndroidiPhone/iPad This property is also available for movable windows (constant aacAdapteEnHauteur only).
<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

Last update: 05/13/2025

Send a report | Local help