>I have a few Pango::Layout showing texts on a drawing area and I'd like to >allow the user to click on a specific Pango::Layout text on the drawing >area. > >Do I just call get_size for the rectangle of the text and compute whether >the mouse click intersects this rectangle? > >What is the correct way to do it? > >I know on the GnomeCanvas, an event handler can be connected to a text item. >I'd like to know how to achieve the same thing on a drawing area.
now you begin to understand why the canvas is such a cool widget. you can only do this in a drawing area by tracking where you think the text is, and seeing if button events are within those areas. in other words, use the canvas. --p _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list