AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
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.
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 29/02/2024

Señalar un error o enviar una sugerencia | Ayuda local