Hi I have problem with Gtk::Tooltip. I can't use it, because I don't entirely understand this page: http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Tooltip.html
I know, that I first must type: myCanvasWidget.set_has_tooltip(); When I type: myCanvasWidget.signal_query_tooltip().connect(sigc::mem_fun(*this, &myClass::myFunction)); I have a lot of error like this: /usr/include/sigc++-2.0/sigc++/functors/slot.h: In static member function ‘static T_return sigc::internal::slot_call4<T_functor, T_return, T_arg1, T_arg2, T_arg3, T_arg4>::call_it(sigc::internal::slot_rep*, typename sigc::type_trait<T_arg3>::take, typename sigc::type_trait<T_arg4>::take, typename sigc::type_trait<T_arg5>::take, typename sigc::type_trait<T_arg6>::take) [with T_functor = sigc::bound_mem_functor0<void, Interfejs>, T_return = bool, T_arg1 = int, T_arg2 = int, T_arg3 = bool, T_arg4 = const Glib::RefPtr<Gtk::Tooltip>&]’: ... ... ... ... ... ... ... . I created canvas myCanvasWidget where I paint a lot of elements. One element is located (X1,Y1), another (X2,Y2). My target is that when mouse pointer is hold over first element (X1,Y1), then tip appear next to it with contain "This is first element". When mouse pointer is hold over second element (X2,Y2), then tip appear next to it with contain "This is second element", and etc... Is it possible to do this? If yes, how? Please, give me example code. Thanks _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list