[Top][All Lists]
[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
- [glob2-devel] French tutorial, Sébastien, 2006/04/19
- Re: [glob2-devel] French tutorial, Stéphane Magnenat, 2006/04/20
- [glob2-devel] Tooltip System, Sébastien, 2006/04/21
- Re: [glob2-devel] Tooltip System,
Stéphane Magnenat <=
- Re: [glob2-devel] Tooltip System, Sébastien, 2006/04/21
- Re: [glob2-devel] Tooltip System, Stéphane Magnenat, 2006/04/21
- Re: [glob2-devel] Tooltip System, Sébastien, 2006/04/21
- Re: [glob2-devel] Tooltip System, Bradley Arsenault, 2006/04/21
- Re: [glob2-devel] Tooltip System, Sébastien, 2006/04/22