PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Anchoring a control
  • 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 AnchorRateRight property is used to:
  • Find out the anchor rate when a control moves on the horizontal axis
  • Modify the anchor rate when a control moves on the horizontal 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 right anchor rate (AnchorRateRight property) is applied if the control is anchored to the right (anchorRight constant used with the Anchor property).
Versions 15 and later
Android This property is now available for Android applications.
New in version 15
Android This property is now available for Android applications.
Android This property is now available for Android applications.
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Versions 18 and later
WINDEVUniversal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
WINDEVUniversal Windows 10 App This property is now available in Windows Store apps mode.
WINDEVUniversal Windows 10 App This property is now available in Windows Store apps mode.
Versions 19 and later
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPad This property is now available for report controls.
WEBDEV - Server code This property can only be used to find out the anchor rate of the report controls.
New in version 19
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPad This property is now available for report controls.
WEBDEV - Server code This property can only be used to find out the anchor rate of the report controls.
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPad This property is now available for report controls.
WEBDEV - Server code This property can only be used to find out the anchor rate of the report controls.
Versions 20 and later
AndroidiPhone/iPad This property is now available for Table controls in Android and iPhone/iPad applications.
New in version 20
AndroidiPhone/iPad This property is now available for Table controls in Android and iPhone/iPad applications.
AndroidiPhone/iPad This property is now available for Table controls in Android and iPhone/iPad applications.
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.AnchorRateRight = 500
Syntax

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

<Result> = <Control used>.AnchorRateRight
<Result>: Integer
Anchor rate 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.
  • Versions 20 and later
    WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget of a report.
    New in version 20
    WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget of a report.
    WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget of a report.
WINDEVUniversal Windows 10 AppiPhone/iPadIOS WidgetJava

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

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

Anchoring a control

  • WINDEVUniversal Windows 10 AppiPhone/iPadIOS WidgetJava 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 19 and later
    WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget 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 19
    WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget 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.
    WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget 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.

Limitations

WINDEVUniversal Windows 10 AppAndroidiPhone/iPadIOS WidgetJava The AnchorRateRight property applies to all the controls in a window.
Versions 19 and later
WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget The AnchorRateRight property applies to all the controls in a report. In this case, you can only find out the anchor rate used.
New in version 19
WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget The AnchorRateRight property applies to all the controls in a report. In this case, you can only find out the anchor rate used.
WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadIOS Widget The AnchorRateRight property applies to all the controls in a report. In this case, you can only find out the anchor rate used.
Java The AnchorRateRight property applies only to the following elements:
  • Button.
  • Static control.
  • 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