[gtkada] How to hide the cursor ?
Emmanuel Briot
briot at gnat.com
Tue May 22 10:52:15 CEST 2001
Jean-Etienne Doucet writes:
> I have a (toplevel) window which contains a menu bar and
> a drawing area (actually a double buffer), and I'd like to
> hide the mouse cursor when it's over the drawing area.
> I can change it to anything I want (in the Gdk_Cursor_Type)
> but I cannot make it disappear. I've tried with Null_Cursor
> but this gives nothing.
You could try to create cursor directly from a Pixmap and Mask (see
Gdk.Cursor.Gdk_New), but it doesn't sound like very user friendly to completely
hide the cursor. When the user is looking for his mouse, he won't find it at
all on the screen, which is very disturbing.
I wouldn't recommend doing that, unless you have a very good reason for this.
regards,
Emmanuel
More information about the gtkada
mailing list