Re: Dragging a Canvas::Line with the mouse?
- From: walt <w41ter gmail com>
- To: gtk-perl-list gnome org
- Subject: Re: Dragging a Canvas::Line with the mouse?
- Date: Thu, 19 Jun 2008 16:05:56 -0700
zentara wrote:
On Thu, 19 Jun 2008 11:38:42 -0700
walt<w41ter gmail com> wrote:
Hi again,
I need to draw a vertical line on a canvas, to be used as a cursor
that can be moved horizontally in response to a mouse click or a
keystroke.
The only graphics trick I know is to draw the line by XOR'ing it
with the canvas and again a second time to erase it. (That's to
avoid redrawing the whole screen with every move of the cursor.)
Is there a way to do that with gtk-perl?
Can you be more specific on what you want to action to be? Do you
want to draw a line, then drag it with the mouse, and/or move
it with the arrow keys?
It ought to be pretty simple.
Thanks for another wonderful reply. If the timestamps on your messages
are correct, you took 9 minutes to come up with that code. Please tell
me you cut and pasted it from somewhere ;o)
I'll need to study your code for a while before I understand it, but I
can tell already that it will be close to what I need, anyway.
I'm off to study it now, and meanwhile thank you!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]