I currently have an application which needs to have an awareness of which monitor the cursor is located when running in a multi-monitor configuration.
+2
A:
Don't forget Screen.MonitorFromPoint and Mouse.CursorPos - these WinAPI functions are encapsulated in the VCL.
Barry Kelly
2008-10-23 13:10:37
Als remember that Mouse.CursorPos throws exceptions if there is no mouse pos. For example when the user session is disconnected (XP fast user switching or terminal server).
Lars Truijens
2008-10-23 14:04:02