[Gtk-sharp-list] Tooltip

Søren Juul zpon.dk at gmail.com
Tue Jun 17 08:20:31 EDT 2008


Hi

I have been trying to get a tooltip working, but has ran in to some
problems.
I want to use a real tooltip (not just Widget.TooltipText). I have a
checkbox which i would like to have a tooltip for, so i did the following:

CheckButton checkbox = new CheckButton("This is my checkbox");
> checkbox.HasTooltip = true;
> checkbox.QueryTooltip += new QueryTooltipHandler(showTooltip);
>
> [...]
>
> public void userToolTip(object o, QueryTooltipArgs args)
> {
> args.Tooltip.SetIconFromStock(Stock.Help, IconSize.LargeToolbar);
> args.Tooltip.Text = "Testing";
> }


If I write something like System.Console.WriteLine("write out"); the text is
shown in my terminal, but i never get to see a tooltip.

What could I be doing wrong?

-- 
Med venlig hilsen / Kind regards
Søren Juul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080617/856e7ab7/attachment.html 


More information about the Gtk-sharp-list mailing list