|
|
|
|
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. // Retrieves the size and position of a control as they have been defined in the editor nX is int = CoordinateScreenToEditor(MyInputControl.X) nY is int = CoordinateScreenToEditor(MyInputControl.Y) nWidth is int = CoordinateScreenToEditor(MyInputControl.Width) nHeight is int = CoordinateScreenToEditor(MyInputControl.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 - 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|