Various Gtk2::DrawingArea questions

2012-07-24 Thread Aaron Lewis
I'm getting a headache working with Gtk2::DrawingAreas. Seven headaches, to be precise. Perhaps someone can offer some Perl paracetemol?   (As always, Go away and read this document or Go away and read that code example would be terrific.)   I cobbled together a working example (drawarea.pl,

Re: Various Gtk2::DrawingArea questions

2012-07-24 Thread zentara
On Tue, 24 Jul 2012 03:13:02 -0700 (PDT) Aaron Lewis alewis1...@yahoo.com wrote: I'm getting a headache working with Gtk2::DrawingAreas. Seven headaches, to be precise. Perhaps someone can offer some Perl paracetemol? 1. I want to be able to detect mouse clicks. Specifically, I want to know

Re: Various Gtk2::DrawingArea questions

2012-07-24 Thread Kevin Ryde
Aaron Lewis alewis1...@yahoo.com writes: I don't know how to detect the combination of mouse click + SHIFT/CTRL. $event-state gives the GdkModifierType keys (per Gtk2::Gdk::Event). 3. I also want the user to be able to select multiple rectangles by dragging the mouse across a portion of