AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de controles
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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.
WEBDEV - Código ServidorWindows This function is available only to simplify the Webification of WINDEV projects.
Ejemplo
EmulateMouse(WIN_Test.IMG_Circuit, emLeftClick, ...
	CoordinateEditorToScreen(68), CoordinateEditorToScreen(43))
EmulateMouse(WIN_Test.IMG_Circuit, emLeftClick, ...
	CoordinateEditorToScreen(259), CoordinateEditorToScreen(45))
EmulateMouse(WIN_Test.IMG_Circuit, emLeftClick, ...
		CoordinateEditorToScreen(161), CoordinateEditorToScreen(139))
EmulateMouse(WIN_Test.BTN_OK, emLeftClick
Sintaxis
<Result> = CoordinateEditorToScreen(<Value>)
<Result>: Integer
Conversion result: converted size or position in the device's native screen dpi.
WEBDEV - Código Servidor This parameter always corresponds to <Value>.
<Value>: Integer
Value to convert: size or position given in the reference dpi under the editor (160 dpi).
Observaciones
  • WINDEV Mobile Under the editor, the sizes and positions of Android or iPhone window fields always correspond to a 160 dpi (dot per inch) screen.
  • AndroidWidget Android 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 a control is 100x100 in the editor, at runtime it will be 150x150 on a 240 dpi screen, 200x200 on a 320 dpi screen, etc.
  • CoordinateScreenToEditor makes the opposite conversion, i.e., go from the native dpi of the device where the application is run to the reference dpi 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.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 20
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local