[Gtk-sharp-list] Help needed with CanvasEvent

Panterga laurent.panterga at free.fr
Thu Jan 26 06:00:27 EST 2006


Hi,

I can see here :
http://www.go-mono.com/docs/index.aspx?link=E%
3aGnome.CanvasItem.CanvasEvent

"The x and y coordinates in the GtkSharp.CanvasEventArgs.Event field..."
but my Event does not have x and y properties.

im my code i use :
private void canvas_event (object obj, CanvasEventArgs args)
{
	// Here i have access to args.Event which give me access to Handle,
SendEventn Type and Window
	
}

As i see here :
http://216.239.59.104/search?q=cache:knMVvepX3oIJ:www.akbkhome.com/svn.php/Presentations/gtk4enterprise_examples/gtkcanvas/example.php+canvasitem.grab&hl=fr&gl=fr&ct=clnk&cd=9

Line 154 et 155, there should be x and y properties

My goal is to drag a canvasItem, so i want to know the final position.

How can i do that ?



More information about the Gtk-sharp-list mailing list