Recent

Author Topic: Getting cursor position relative to a form  (Read 4836 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Getting cursor position relative to a form
« on: November 13, 2007, 10:42:47 am »
How can I do it? GetCursorPos does it but relative to the screen.

Bart

  • Hero Member
  • *****
  • Posts: 3547
    • Bart en Mariska's Webstek
RE: Getting cursor position relative to a form
« Reply #1 on: November 13, 2007, 11:48:12 am »
I seem to remeber something like ClientToScreen and ScreenToClient (at least in Delphi)?

Bart

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: Getting cursor position relative to a form
« Reply #2 on: November 13, 2007, 01:35:02 pm »
Yup! Thanx, those function exist in Controls unit.