[gtkada] GtkImage and mouse events?

Manuel Op de Coul manuel.op.de.coul at eon-benelux.com
Fri Oct 15 17:54:09 CEST 2004


>How can I get an event, when a user clicks on an image?

Attach a handler for "button_press_event".

>All I need is the x and y coordinates of the pixel the user
>clicked on.

Use Gdk.Window.Get_Pointer.

Manuel





More information about the gtkada mailing list