Forum Discussion
pyatakov
Occasional Contributor
I prefer to use this method
var p = obj.WindowToScreen(-1, -1);
than this
var p = obj.WindowToScreen(obj.Width/2, obj.Height/2);
HKosova
9 years agoSmartBear Alumni (Retired)
pyatakov wrote:
I prefer to use this method
var p = obj.WindowToScreen(-1, -1);than this
var p = obj.WindowToScreen(obj.Width/2, obj.Height/2);
These are different things. WindowToScreen handles (-1, -1) as a point 1 pixel away from the object, whereas (obj.Width/2, obj.Height/2) is the object's center point.
Related Content
- 9 years ago
- 7 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago