[gnomemm] Canvas/Item event handling
- From: "gao chaowei" <chaoweigao hotmail com>
- To: gnomemm-list gnome org
- Subject: [gnomemm] Canvas/Item event handling
- Date: Wed, 25 Sep 2002 20:12:40 +0800
I am use gnome-- to do a project. I want the Canvas to capture the button
click event. Because the Canvas is in a scrolled window and the canvas can
zoon in or zoom out. In button_release_event_impl method of my Canvas, the
X and Y coordinates is relative to the main window. But i want the value
relative to the canvas. Is there any way ?
I add some Canvas Items in the canvas and i want the items to handle some
event. So i use the statement item.event.connect(slot(this,
&Tree:compute)). It dose not work :-(
Hope someone Can help me ASAP. Urgent for me, thanks!!!
_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。http://www.hotmail.com/cn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]