ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Anchoring a control
  • Limits
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 AnchorRateBottom property is used to:
  • Find out the anchor rate when a control moves on the vertical axis
  • Modify the anchor rate when a control moves on the vertical axis.
The anchor rate is used to define how the control is moved or resized in relation to the evolution of size of window (or report) to which it is anchored. The anchor rate corresponds to the percentage by which the control moves in relation to the window (or report). Therefore, if the anchor rate is set to 0, the control will not be resized. If it is set to 1000, the control will be resized normally.
The bottom anchor rate (AnchorRateBottom property) is applied if the control is anchored to the bottom (anchorBottom constant used with the Anchor property).
Example
// The List Box control will be resized by 50% relative to the window size
LIST_ListPersons.AnchorRateBottom = 500
Syntax

Finding out the anchor rate when an anchored control moves to the bottom Hide the details

<Result> = <Control used>.AnchorRateBottom
<Result>: Integer
Anchor rate included between 0 (control not moved) and 1000 (normal anchor).
<Control used>: Control name
Name of the control to be used. This control can be a control:
  • of a window.
  • WINDEVUniversal Windows 10 App of a report.
WINDEVUniversal Windows 10 AppJava

Modifying the anchor rate when an anchored control moves to the bottom Hide the details

<Control used>.AnchorRateBottom = <Anchor rate>
<Control used>: Control name
Name of the control to be used.
<Anchor rate>: Integer
New anchor rate included between 0 (control not moved) and 1000 (normal anchor).
Remarks

Anchoring a control

  • WINDEVUniversal Windows 10 AppJava In a window, the Anchor property is used to determine how a control is resized or moved when the window is resized. If the control is associated with a tab, the anchor is defined in relation to the tab.
    For more details, see Anchoring applied to window controls.
  • WINDEV In a report, the Anchor property is used to find out how the control is resized or moved when the report is resized. This behavior was defined in the report editor.
    For more details, see Anchoring controls in a report.

Limits

WINDEVUniversal Windows 10 AppJava The AnchorRateBottom property applies to all the controls in a window.
WINDEVUniversal Windows 10 App The AnchorRateBottom property applies to all the controls in a report. In this case, you can only find out the anchor rate used.
Java The AnchorRateBottom property applies only 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 version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help