En/na Christian Iversen ha escrit:
Luca Olivetti wrote:
En/na Lord Satan ha escrit:
Hi,
I need to hide the mouse cursor in my app. Changing it with
Screen.Cursor:=crSomething works, setting it to crNone does not have
any effect. Any ideas?
Btw this is on Linux, gtk1.
I use the trick to move it offscreen, e.g.:
procedure TMainForm.HideMouse;
const p:TPoint = (X:15000; Y:15000);
begin
Mouse.CursorPos:=p;
end;
That's a nasty hack. It could really mess with programs that try to
track the mouse or somesuch. It's not a good way to proceed.
Two years ago it was the only solution I could find (well, actually the
second, there's a program that does it but I don't remember its name),
and since I only need to hide the mouse, not to track it, it's not a
problem for me.
Bye
--
Luca
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives