PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
New WINDEV, WINDEV Mobile 23 feature!
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
..AnchorToContent is used to find out and modify how the control adapts according to its content.
Example
// Enlarge the static according to its 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 Name>..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 Name>: Character string (with or without quotes)
Name of control to use: Edit control, Static control, HTML control, Check box, Radio button, control template.

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

<Control Name>..AnchorToContent = <New Adjustement Mode>
<Control Name>: Character string (with or without quotes)
Name of control to use: Edit control, Static control, HTML control, Check box, Radio button, control template.
<New Adjustement 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 required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment