Re: Q: How to hide mouse cursor when it's within a GtkText?
- From: Paul Davis <pbd op net>
- To: Jan-Benedict Glaw <jbglaw lug-owl de>
- Cc: gtk-list gnome org
- Subject: Re: Q: How to hide mouse cursor when it's within a GtkText?
- Date: Thu, 29 Aug 2002 18:09:54 -0400
>I've read the archive(s) of several lists and used the advise to create
>an invisible one-pixel image cursor, which I applied to the GtkWindow.
>
>While the mouse pointer is within the GtkWindow's background area, the
>mouse pointer is invisible (as I wish it to be). However, if I enter a
>GtkText's area, the mouse's cursor changes from my invisible image to
>the "standard" cursor for text areas (this "I"-looking one).
>
>How can I work around that? I want the mouse cursor to *always* be
>invisible while the mouse is within my application's window...
you have to set the cursor for the window (gtk_widget_get_window())
for every widget that has its own window. X nests windows - setting
the cursor for the top level window doesn't change it for any nested
child windows. the entry widget has its own window, hence the result
you see.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]