PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE


X
Y
  • Anchoring
  • 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 15 and later
Android This property is now available for the Android applications.
New in version 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versions 16 and later
Universal Windows 10 App This property is now available for the Windows Phone applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
New in version 16
Universal Windows 10 App This property is now available for the Windows Phone applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
Universal Windows 10 App This property is now available for the Windows Phone applications.
WINDEVLinux This property is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This property is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store Apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Universal Windows 10 App This property is now available in Windows Store Apps mode.
Versions 19 and later
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows Mobile This property is now available for the report controls.
WEBDEV - Server code This property is available for the report controls only.
New in version 19
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows Mobile This property is now available for the report controls.
WEBDEV - Server code This property is available for the report controls only.
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows Mobile This property is now available for the report controls.
WEBDEV - Server code This property is available for the report controls only.
Versions 20 and later
AndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
New in version 20
AndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
AndroidiPhone/iPad This property is now available for the Table controls and for the table columns in the Android applications and in the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
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 Name>..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 Name>: Character string (with or without quotes)
Name of control used (window or report control).
WINDEViPhone/iPadWindows MobileUniversal Windows 10 AppJava

Modifying the anchor of a control Hide the details

<Control Name>..Anchor = <New Anchor>
<Control Name>: Character string (with or without quotes)
Name of control used (window or report control).
<New 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.
Remarks

Anchoring

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.
WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppJava Notes:
  • ..Anchor is not available for a column found in a Table or TreeView Table control. The anchor of a column is specified by ..AnchorRateWidth directly.
  • If the control is associated with a tab pane, the anchor is defined in relation to the Tab control.

Limits

WINDEVAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppJava ..Anchor applies to all the window controls.
Versions 19 and later
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 App ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
New in version 19
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 App ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 App ..Anchor applies to all the report controls. In this case, you can only find out the type of anchoring used.
Java ..Anchor applies to the following controls:
  • Button control.
  • Static control.
  • Edit control.
  • Image control.
  • Check Box control.
  • Radio Button control.
  • List Box control.
  • Combo Box control.
  • TreeView control.
  • Tab control.
  • Table control.
  • Supercontrol.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment