ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Anchoring
  • Limitations
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
The Anchor property sets the anchors of a control. You can:
  • Identify the anchors currently set on a control in a window or report.
  • Change the characteristics of the anchors set on a control in a window.
Reminder: The anchors of a control define the control behavior (size and location) when the window or report is resized.
You can use multiple properties to set or get the anchor rate of a control. These properties are as follows:
WEBDEV - Server code This property is available for report controls only.
Example
// Define the anchor characteristics
// The control will be resized vertically and horizontally
LIST_List1.Anchor = anchorWidth + anchorHeight
Syntax

Getting the control anchors Hide the details

<Current anchor> = <Control used>.Anchor
<Current anchor>: Integer constant
Anchors set on the control:
anchorBottomThe control moves to the bottom.
anchorHeightThe control stretches to the bottom.
anchorRightThe control moves to the right.
anchorTopLeftNo action.
anchorWidthThe control stretches to the right.
The anchorRight and anchorWidth constants can be combined with anchorBottom and anchorHeight.
<Control used>: Control name
Name of the control used (in a window or report).
Remarks

Anchoring

Reminder: use anchors to set the control's size and position when the window or report is resized.
The new position and size are calculated based on the ones defined in the editor. They can also be returned by the XInitial, YInitial, InitialWidth and InitialHeight properties.

Limitations

WEBDEV - Server code The Anchor property can be used in all the controls of a report. In this case, you can only get the type of anchors used.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/29/2024

Send a report | Local help