On Sat, Jul 09, 2011 at 03:31:59AM +0000, corvid wrote:
Jorge wrote:
Well, it's really complex and I only got partial workarounds with Fl_Tooltip (which "fixed" the problem but creating new ones).
Finally I went for a custom tooltip implementation. The patches are commented in the code and in hg (hg log -v).
:)
Will you use similar code for the UI tooltips, since they're often shown over the rendering area?
Personally I don't see a problem with it... (and it was *much* more work than anticipated, so I am a bit tired ;)
PS If you're still feeling tooltippishly ambitious, there are the big tooltips on lkml.org to do something about...
Yes, I knew you worked on something like that (and saw an STR). Now that we have full control over the tooltip, it became quite simple, just look at this line in fltkplatform.cc: ww = 800; // max width; That is a suggested max width (i.e. fltk makes it wider when necessary), but we have full control of the tooltip string in the constructor, so it can be chopped to fit the desired width. BTW, what page are you looking at as test case? -- Cheers Jorge.-