Gtk::Tooltip problem

View: New views
2 Messages — Rating Filter:   Alert me  

Gtk::Tooltip problem

by pch0317 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

RE: Gtk::Tooltip problem

by sledge hammer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


> Date: Sat, 31 Oct 2009 19:12:20 +0100
> From: pch0317@...
> To: gtkmm-list@...
> Subject: Gtk::Tooltip problem
>
> 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 sig c::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>&]': ... ... ... ... ... ... ... .

Whats is the prototype of your "myFunction"?
It should be like this--> bool myFunction(int x, int y, bool keyboard_tooltip, const Glib::RefPtr<Tooltip>& tooltip)


Νέα Windows 7: Βρείτε τον κατάλληλο υπολογιστή για εσάς. Μάθετε περισσότερα.
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list