Re: How to bring up tooltip text for certain words in a GTK textview?



i have had to do this and solved it just like you have proposed.  if you do go with this method, some heads-ups: the "extra" issues one must handle when doing this are:
but, i can verify that this method should work.  if you'd like the little bit of code i've come up with to solve this problem, let me know, happy to forward.

cheers,

richard

On Wed, May 19, 2010 at 7:50 PM, Ken Resander <kresander yahoo com> wrote:
A textview shows help text with many 'technical' words that users may not know or remember. I would like a tooltip text with a short explanation to pop up when a user hovers the cursor over a technical phrase. There is a lookup table from technical phrases to explanations. I am thinking about using the mouse move event to get x,y then getting the technical phrase from x,y, then looking up the explanation and outputting the tooltip text.

Are there better ways?



_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]