On Mon, 04 Aug 2008 00:42:40 +0200
Mario Kemper <[EMAIL PROTECTED]> wrote:
>I am still working on this issue and it seems to me that a
>"pointer_grab" is definitely the easiest way to get motion and button
>events even if your cursor is outside of your own toplevel window.
>
>I've a little demo of "pointer-grabbing" attached. When you grab the
>pointer and hold down the mouse button afterwards all events are
>recognized in the main app until you release the button.
>
>The events are recognized well and pointer grabbing is doing a good job,
>but am trying do draw a rectangle to the root window while moving the
>mouse as described above (like selecting multiple files on the nautilus
>desktop for example) and this is not working.
>
>Maybe someone has a clue why the rectangle is not drawn (line 121 in
>screeny.pl)?
>Cheers,
>Mario
I got your script to draw by process of elimination ( guessing) :-)
I chopped down your model to the point where it would draw a simple
rectangle, without the mouse drag. Then I added a line at a time back in,
until it stopped working.
The culprit is:
$gc->set_function ('xor');
Comment that line out, and your script works.
Thanks for the cool code,
zentara
--
I'm not really a human, but I play one on earth.
http://zentara.net/Remember_How_Lucky_You_Are.html
_______________________________________________
gtk-perl-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-perl-list