On Friday 21 April 2006 08:51, Sébastien wrote:
> After talking with Bradley, I added the tooltip functionnality to the
> Widget class. As far as I know, it's working (I juste have to add
> appropriate constructors to all subclasses, it's done for Button,
> Highlightable & Rectangular for now)... In order to be sure that the
> tooltip is always drawn on the top of other elements, I had to use a
> template method (Screen now call draw on the Widgets, draw is declared in
> Widget : it call paint and then displays the tooltip if necessary. I used a
> similar way for ontimer and onSDLEvent (since Widget now has to handle
> mouse mouvment and an inactivity timer).
> Should I send a patch to this mailing list ?

Yes. I do not understand why you need a template. Why not adding a 
paintOverlay to the Widget class which is called after all paint have been 
called ?

Steph


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to