Re: Dragging graphics around
- From: G Hasse <gh raditex se>
- To: Fabio Rotondo <mlists rotondo it>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Dragging graphics around
- Date: Tue, 21 Oct 2003 12:57:28 +0000 (GMT)
On Tue, 21 Oct 2003, Fabio Rotondo wrote:
Hi,
I need to do the following: I'd like to write an app which should
display graphics (ie. icons) on a GtkDrawingArea that the user should be
able to "drag around" the area (not on the "real" desktop, just on my
GtkDrawingArea).
What I need to know which events should I intercept (and where) and how
to drag images around without trashing graphics below it.
Any hint?
Hi,
This is not a hint - but the real thing...
We have done just that in a process control panel.
Take a look at http://www.raditex.se/bilder/process1.png
In this we have made widgets that you could drag around in the
editor. Make a widget, place it on the drawing area. Then you should
catch button click to focus on the widget. Then you catch mouse move
to change the position of the widget, and when you release the mouse
button you have the new posistion on the drawing area.
Göran Hasse
----------------------------------------------------------------
Göran Hasse email: gh raditex se Tel: 08-6949270
Raditex AB http://www.raditex.se Fax: 08-4420570
Sickla Alle 7, 1tr Mob: 070-5530148
131 34 NACKA, SWEDEN
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]