PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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
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.
Versions 21 and later
Windows This function is now available for WINDEV applications under Windows and Linux..
New in version 21
Windows This function is now available for WINDEV applications under Windows and Linux..
Windows This function is now available for WINDEV applications under Windows and Linux..
Versions 24 and later
Windows This function is now available for WEBDEV sites in Windows.
Windows This function is available only to simplify the Webification of WINDEV projects.
New in version 24
Windows This function is now available for WEBDEV sites in Windows.
Windows This function is available only to simplify the Webification of WINDEV projects.
Windows This function is now available for WEBDEV sites in Windows.
Windows This function is available only to simplify the Webification of WINDEV projects.
Example
// Retrieves the size and position of a control as they have been defined in the editor
nX is an integer = CoordinateScreenToEditor(MyEntryField.X)
nY is an integer = CoordinateScreenToEditor(MyEntryField.Y)
nWidth is an integer = CoordinateScreenToEditor(MyFieldSize.Width)
nHeight is an integer = CoordinateScreenToEditor(MyField.Height)
Syntax
<Result> = CoordinateScreenToEditor(<Value>)
<Result>: Integer
Conversion result: size or position converted into the reference dpi in the editor (160 dpi).
<Value>: Integer
Value to convert: size or position specified in the native dpi of the device screen.
Remarks
  • The CoordinateEditorToScreen function allows you to perform the reverse conversion, i.e. from the dpi of reference in the editor (160 dpi) to the native dpi of the screen of the device on which the application is running.
Component: wd260obj.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment