[Gtk-sharp-list] ToolTips on a CellRendererToggle
Moritz Angermann
moritz.angermann@gmx.net
Tue, 23 Mar 2004 18:17:17 +0100
Hi Everybody...
Does anyone have an idea
how to add tooltips to a CellRendererToggle?
Lets say I have a column like:
TreeViewColumn c = new TreeViewColumn( );
c.Title = "Some Toggles";
// First Toggle
CellRendererToggle r = new CellRendererToggle( );
r.Activatable = true;
r.Toggled += new ToggledHandler( on_t1_toggled );
c.PackStart( r, true );
c.AddAttribute( r, "active", (int)myTree.TOGGLE1 );
// Secound Toggle
CellRendererToggle r = new CellRendererToggle( );
r.Activatable = true;
r.Toggled += new ToggledHandler( on_t2_toggled );
c.PackStart( r, true );
c.AddAttribute( r, "active", (int)myTree.TOGGLE2 );
// ... [...] ...
TreeView tv = new TreeView( );
tv.AppendColumn( c );
// ... [...] ...
Now I'd like to have a Tooltip when moving the mouse over the
toggle button.
ToolTips.SetTip( Widget, String, String ); requires a Widget
- so how do I get the ToggleButton Widget?
I'd appreciate help on this alot, thank you in advance,
kindest regards,
-mo
--
---------------- contact info ----------------
Moritz Angermann moritz.angermann@gmx.net
Liquid:Mint www.liquidmint.org
Mobile +49 (0) 160 9197 5880
Home +49 (0) 4322 75 12 66