Obtaining a location on a Drawing Area via a mouse click.



Hi,

I would like to be able to click on a Drawing area and extract 
the cursors position, and possibly drag-select over its suface.

Are there any tutorials on this?

I have connected a function to the button release on the Drawing
Area (see below), this does not seem to trigger the function call,

  gtk_signal_connect (GTK_OBJECT (guiDrawingArea), "button_press_event",
                      GTK_SIGNAL_FUNC (on_guiDrawingArea_button_press_event),
                      NULL);
                      
But even if I managed to get the function call to execute, from where do
I extract the cursor's location..

I look forward to your collective wisdom..

Many thanks in advance..

Colin Thomas.                      


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Colin Thomas. 
| Email   : colin designresources co uk     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]