PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Anchor
  • Limits
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
..Anchor is used to manage the anchor of a control. You can:
  • Find out the current anchor of a control in a window.Find out the current anchor of a control in a window or report.
  • Modify the characteristics of the anchor applied to a control in a window.
Reminder: The anchor of a control is used to define the control behavior (size and location) when resizing the window (or report).
Several properties are used to define or find out the anchor rate of a control. These properties are as follows:
Versions 19 and later
Reports and Queries This property is now available for the report controls.
New in version 19
Reports and Queries This property is now available for the report controls.
Reports and Queries This property is now available for the report controls.
Example
// Define the anchor characteristics
// The control will be resized in height and width
LIST_List1..Anchor = anchorWidth + anchorHeight
Syntax

Finding out the anchor of a control Hide the details

<Current anchor> = <Control used>..Anchor
<Current anchor>: Integer constant
Characteristics of anchor currently defined for the control.
anchorBottomThe control moves to the bottom.
anchorRightThe control moves to the right.
anchorHeightThe control stretches to the bottom.
anchorTopLeftNo action.
anchorWidthThe control stretches to the right.

anchorRight and anchorWidth can be associated with anchorBottom and anchorHeight.
<Control used>: Control name
Name of control used (window or report control).
Remarks

Anchor

Reminder: the anchor of a control is used to define the control behavior (size and location) when resizing the window or report.
The positions and widths used to calculate the new sizes and positions are the ones defined in the editor. They can be returned by ..XInitial, ..YInitial, ..InitialWidth and ..InitialHeight.

Limits

Versions 19 and later
Reports and Queries ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
New in version 19
Reports and Queries ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
Reports and Queries ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment