ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CoordinateScreenToEditor (Function)
In french: CoordonnéeEcranVersEditeur
Converts a size or a position specified in the native dpi of the screen on the device where the application is run to the reference dpi in the editor (160 dpi).
This function is mainly used to perform a positioning at pixel level.
Windows This function is available only to simplify the Webification of WINDEV projects.
Example
// Récupère la taille et la position d'un champ telles qu'elles ont été définies sous l'éditeur
nX is int = CoordinateScreenToEditor(MonChampSaisie.X)
nY is int = CoordinateScreenToEditor(MonChampSaisie.Y)
nLargeur is int = CoordinateScreenToEditor(MonChampSaisie.Largeur)
nHauteur is int = CoordinateScreenToEditor(MonChampSaisie.Hauteur)
Syntax
<Result> = CoordinateScreenToEditor(<Value>)
<Result>: Integer
Conversion result: converted size or position in the reference dpi under the editor (160 dpi).
<Value>: Integer
Value to convert: given size or position in the device's native screen dpi.
Remarks
  • CoordinateEditorToScreen allows making the inverted conversion, i.e., from the reference dpi in the editor (160 dpi) to the native dpi of the device on which the application is run.
Component: wd300obj.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help