Recent

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

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • 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: 5275
    • 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: 8747
  • 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.

 

TinyPortal © 2005-2018