glob2-devel
[Top][All Lists]
Advanced

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

Re: [glob2-devel] Tooltip System


From: Stéphane Magnenat
Subject: Re: [glob2-devel] Tooltip System
Date: Fri, 21 Apr 2006 09:48:20 +0200
User-agent: KMail/1.9.1

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]