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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
CoordinateEditorToScreen (Function)
In french: CoordonnéeEditeurVersEcran
Converts a size or a position specified in the reference dpi in the editor (160 dpi) to the native dpi of screen on the device where the application is run.
This function is mainly used to perform a positioning at pixel level.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWindowsLinux This function is now available for WINDEV applications under Windows and Linux..
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWindowsLinux This function is now available for WINDEV applications under Windows and Linux..
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVWindowsLinux This function is now available for WINDEV applications under Windows and Linux..
Versions 24 and later
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is available only to simplify the Webification of WINDEV projects.
New in version 24
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is available only to simplify the Webification of WINDEV projects.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is available only to simplify the Webification of WINDEV projects.
Example
EmulateMouse(FEN_Test.IMG_Circuit, emLeftClick, ...
CoordinateEditorToScreen(68),CoordinateEditorToScreen(43))
EmulateMouse(FEN_Test.IMG_Circuit, emLeftClick, ...
CoordinateEditorToScreen(259), CoordinateEditorToScreen(45))
EmulateMouse(FEN_Test.IMG_Circuit, emLeftClick, ...
CoordinateEditorToScreen(161), CoordinateEditorToScreen(139))
EmulateMouse(FEN_Test.BTN_Valider, emLeftClick)
Syntax
<Result> = CoordinateEditorToScreen(<Value>)
<Result>: Integer
Conversion result: size or position converted into the native dpi of device screen.
WEBDEV - Server code This parameter always corresponds to <Value>.
<Value>: Integer
Value to convert: size or position specified in the reference dpi in the editor (160 dpi).
Remarks
  • WINDEV Mobile Under the editor, the sizes and positions of the fields in the Android, iPhone or Universal Windows 10 App windows always correspond to a 160 dpi (dot per inch) screen.
  • Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst When running the application, these sizes and positions are automatically converted according to the native dpi of the screen on the host device. This allows you to get a WYSIWYG rendering regardless of the device dpi.
    For example, if the size of a control is equal to 100x100 in the editor, its size at run time will be set to 150x150 on a device in 240 dpi, to 200x200 on a device in 320 dpi, etc.
  • The CoordinateScreenToEditor function allows you to perform the reverse conversion, i.e. from the native dpi of the screen of the device on which the application is running to the dpi of reference in the editor (160 dpi).
  • CoordinateEditorToScreen must not be used with the drawing functions. Indeed, the DPI of the device may differ from the scale factor used by the drawing functions.
Component: wd270obj.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment