window class : PointFromScreen(real,real) method

Description

Converts screen coordinates to client coordinates.

Syntax

instance.PointFromScreen(real x,real y)

Arguments

ClassNameDescription
realxX coordinate in screen coordinates.
realyY coordinate in screen coordinates.

Return value

ClassDescription
dictionaryConverted coordinates.

Sample code

1:

window w = new window();

2:

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

3:

real x = dic.ClientX;

4:

real y = dic.ClientY;

Notes

The return dictionary contains the coordinates that were converted to the window's client coordinates.


The dictionary has the following key/value pairs.

keyvalue - classvalue - description
ClientXrealX coordinate in client coordinates.
ClientYrealY coordinate in client coordinates.

Links for reference

None.

Copyright © Cooker All rights reserved.