RE: [gtkmm] Ruler position indicator
- From: Murray Cumming Comneon com
- To: Gregory P Bayard Dartmouth EDU, gtkmm-list gnome org
- Subject: RE: [gtkmm] Ruler position indicator
- Date: Mon, 12 May 2003 09:43:35 +0200
Have you looked at the ruler example?
http://www.gtkmm.org/gtkmm2/examples/rulers/rulers.cc
I think it does much the same thing as it did in gtkmm 1.2, but we had to
recode it.
Murray Cumming
murrayc usa net
www.murrayc.com
> -----Original Message-----
> From: Gregory P Bayard Dartmouth EDU
> [mailto:Gregory P Bayard Dartmouth EDU]
> Sent: Freitag, 9. Mai 2003 07:44
> To: gtkmm-list gnome org
> Subject: [gtkmm] Ruler position indicator
>
>
> I am unable to connect the ruler position indicator to
> motion events in a Gtk::DrawingArea. There is a large
> amount of example source code on the internet that no longer
> compiles with gtkmm-2.0. The code on the net shows,
>
> drawing_area.motion_notify_event.connect(horiz_ruler.motion_no
> tify_event.slot());
>
> Neither the Gtk::DrawingArea nor the Gtk::HRuler have a
> motion_notify_event. The new versions of the objects have
> signal_motion_notify_event() and on_motion_notify_event()
> methods. Intuitively I figured the following would work,
>
> drawing_area.signal_motion_notify_event.connect(horiz_ruler.on
> _motion_notify_event.slot());
>
> Sadly, it does not work, as on_motion_notify_event does not
> provide a slot(). Does anyone have any idea how to move the
> indicator with the mouse on a ruler in gtkmm-2.0?
>
> Thanks,
> Gregory Bayard
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]