[Gtk-sharp-list] DrawingArea ToolTips do not work?
Hywel Thomas
hywel at controlspecials.demon.co.uk
Fri Aug 11 06:57:25 EDT 2006
Hello,
I'm trying to get a Tooltip to work when the mouse is over a DrawingArea, but it
doesn't seem to show. My simplified code is as follows:-
static void Main()
{
Application.Init();
Window win = new Window("DrawingArea tooltip test");
DrawingArea da = new DrawingArea ();
Button btn = new Button("Button");
HBox hbox = new HBox (true, 2);
win.Add(hbox);
hbox.Add(btn);
hbox.Add(da);
Tooltips area_tips = new Tooltips ();
area_tips.SetTip (da,
"Pointer is over DrawingArea",
"longer explanation");
area_tips.SetTip (btn,
"Pointer is over Button",
"longer explanation");
win.ShowAll();
Application.Run();
}
I get a tooltip when the mouse is over the button, but not the DrawingArea. Am
I doing something wrong, or should I submit this as a bug? I can get events
from the DrawingArea (as long as I set the appropriate mask), so the DrawingArea
is functioning fine in all other respects.
Many thanks,
Hywel Thomas
____________________________________________
www.controlspecialists.co.uk
E-Mail: hywel at controlspecialists.co.uk
____________________________________________
More information about the Gtk-sharp-list
mailing list