PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Anchoring a control
  • 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
The AnchorRateHeight property is used to:
  • Find out the vertical anchor rate of a control
  • Modify the vertical anchor rate of a control.
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 vertical anchor rate (AnchorRateHeight property) is applied if the control is anchored to the top (anchorHeight constant used with the Anchor property).
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 20 and later
WINDEV This property is now available on report controls.
New in version 20
WINDEV This property is now available on report controls.
WINDEV This property is now available on report controls.
Versions 21 and later
WINDEVUniversal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
WINDEVUniversal Windows 10 App This property is now available in Universal Windows 10 App mode.
WINDEVUniversal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// The List Box control will be resized by 50% relative to the window size.
LIST_ListPersons.AnchorRateHeight = 500
Syntax

Finding out the anchor rate of a control with a vertical anchor Hide the details

<Result> = <Control used>.AnchorRateHeight
<Result>: Integer
Anchor rate included between 0 (unstretched control) and 1000 (standard anchor)
<Control used>: Control name
Name of control to use. This control can be a control:
  • in a window.
  • Versions 20 and later
    WINDEVUniversal Windows 10 App in a report.
    New in version 20
    WINDEVUniversal Windows 10 App in a report.
    WINDEVUniversal Windows 10 App in a report.
WINDEVUniversal Windows 10 AppJava

Modifying the anchor rate of a control with a vertical anchor Hide the details

<Control used>.AnchorRateHeight = <Anchor rate>
<Control used>: Control name
Name of control to use.
<Anchor rate>: Integer
New anchor rate included between 0 (unstretched control) and 1000 (standard 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 control, the anchor is defined in relation to the tab.
    For more details, see Anchoring applied to window controls.
  • Versions 20 and later
    WINDEVUniversal Windows 10 App 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.
    New in version 20
    WINDEVUniversal Windows 10 App 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.
    WINDEVUniversal Windows 10 App 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 AnchorRateHeight property applies to all the controls in a window.
Versions 20 and later
WINDEVUniversal Windows 10 App The AnchorRateHeight property applies to all the controls in a report. In this case, you can only find out the anchor rate used.
New in version 20
WINDEVUniversal Windows 10 App The AnchorRateHeight property applies to all the controls in a report. In this case, you can only find out the anchor rate used.
WINDEVUniversal Windows 10 App The AnchorRateHeight property applies to all the controls in a report. In this case, you can only find out the anchor rate used.
Java The AnchorRateHeight property only applies to the following elements:
  • Button.
  • Static.
  • Edit control.
  • Image.
  • Check Box.
  • Radio Button.
  • List Box.
  • Combo Box.
  • TreeView.
  • Tab.
  • Table.
  • Supercontrol.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment