window class : PointToScreen(real,real) method

Description

Converts client coordinates to screen coordinates.

Syntax

instance.PointToScreen(real x,real y)

Arguments

None.

ClassNameDescription
realxX coordinate in client coordinates.
realyY coordinate in client coordinates.

Return value

ClassDescription
dictionaryConverted coordinates.

Sample code

1:

window w = new window();

2:

dictionary dic = w.PointToScreen(500, 500); // client (500, 500) -> screen.

3:

real x = dic.ScreenX;

4:

real y = dic.ScreenY;

Notes

The return dictionary contains the coordinates that were converted to the dsktop screen coordinates.


The dictionary has the following key/value pairs.

keyvalue - classvalue - description
ScreenXrealX coordinate in screen coordinates.
ScreenYrealY coordinate in screen coordinates.

Links for reference

None.

Copyright © Cooker All rights reserved.