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 January 13, 2022, at 02:42:23 PM.

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