To: Arnold Cc: lablgtk at math.nagoya-u.ac.jp, demexp-dev at nongnu.org Subject: Re: How to set a tooltip on a view_column? References: <87fyo55f9i.fsf at linux-france.org> <43BAED64.8060109 at wanadoo.fr> <87bqypf4zd.fsf@linux-france.org> <43BF9209.5090300@wanadoo.fr> From: David MENTRE Organization: none Date: Sun, 08 Jan 2006 16:25:48 +0100 In-Reply-To: <43BF9209.5090300 at wanadoo.fr> (arnold.guillaumot at wanadoo.fr's message of "Sat, 07 Jan 2006 11:03:53 +0100") Message-ID: <87u0cevj0j.fsf at linux-france.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Arnold writes: > here attached the file tree.ml (from lablgtk-2.6.0/examples) modified. > It works for me. > The tooltip is displayed when above the header of the column "Title". Many thanks Arnold, it now works for me thanks to your code. The important thing is to set the tooltip *after* calling "view#append_column col" (and also to set the widget with the label). > col#set_widget (Some label#coerce); [...] > let _ = > match button with > None -> () > | Some b -> > begin > let tooltips = GData.tooltips () in > tooltips#set_tip b#coerce ~text:"This is column \"Title\"" > ~privat:""; > end > in Best wishes, d. -- pub 1024D/A3AD7A2A 2004-10-03 David MENTRE 5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A