Lazarus

Installation => General => Topic started by: Leledumbo on November 13, 2007, 10:42:47 am

Title: Getting cursor position relative to a form
Post by: Leledumbo on November 13, 2007, 10:42:47 am
How can I do it? GetCursorPos does it but relative to the screen.
Title: RE: Getting cursor position relative to a form
Post by: Bart on November 13, 2007, 11:48:12 am
I seem to remeber something like ClientToScreen and ScreenToClient (at least in Delphi)?

Bart
Title: RE: Getting cursor position relative to a form
Post by: Leledumbo on November 13, 2007, 01:35:02 pm
Yup! Thanx, those function exist in Controls unit.