Re: HELP
- From: "Jonathon Jongsma" <jonathon jongsma gmail com>
- To: "Mihai NICULESCU" <q quark gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: HELP
- Date: Wed, 1 Aug 2007 09:11:41 -0500
On 7/30/07, Mihai NICULESCU <q quark gmail com> wrote:
> Hi,
>
> I want to make an application which can draw an image, and let the user
> move the image all over the drawing area.
>
> I found in the GTKmm tutorial how to draw an image on a
> GTK::DrawingArea, but couldn't figure it out how to move the image when
> it is selected. I didn't find any signal for the drawing area when the
> cursor moves over it, only *signal_button_press_event()*. And so, I was
> able to capture an event when the mouse clicks on the drawing area, but
> not when it moves.
>
>
> Basically, all I want to do is to display an image, select it and to
> move it with the cursor.
>
>
> How can I make my program?
>
> Please help me.
have you tried signal_motion_notify_event()? You can find all members
of DrawingArea here:
http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1DrawingArea-members.html
--
jonner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]