Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-06

Lock mouse cursor

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Leonardo M. Ramé
Hi, I've seen in some applications, in very specific cases, when the user drags the mouse, the pointer doesn't move. Is there a way to lock the mouse pointer in Lazarus?.

You can move the mouse with

Mouse.CursorPos:=Point(100,100);

Setting the mouse to the coords where dragging starts looks like mouse does not move.

Put the code in OnMouseMove.

Mattias

Reply by email

Leonardo M. Ramé
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Mon, 20 Jun 2011 12:13:38 -0300 Leonardo M. Ram? wrote: > Hi, I've seen in some applications, in very specific cases, when the > user drags the mouse, the pointer doesn't move. > > Is there a way to lock the mouse pointer in Lazarus?. You can move the mouse with Mouse.CursorPos:=Point(100,100); Setting the mouse to the coords where dragging starts looks like mouse does not move. Put the code in OnMouseMove. Mattias

Thanks!.

Reply by email