WindowFromPoint

Return the Control at the current cursor position or at the given point:

Control WindowFromPoint();

Control WindowFromPoint(Point p);

Parameters

Point: A position on the screen

Return Value

A control object.

Example

Control C = WindowFromPoint(); // the window control under the current mouse cursor position

 

Control newWind = WindowFromPoint(oldWindow.Centre); // get window at location of oldWindow

Related:

 

This topic was last updated on June 21, 2019, at 02:49:50 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant