glob2-devel
[Top][All Lists]
Advanced

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

Re: [glob2-devel] Tooltip System


From: Sébastien
Subject: Re: [glob2-devel] Tooltip System
Date: Sat, 22 Apr 2006 11:38:20 +0200
User-agent: KMail/1.9.1

Le Samedi 22 Avril 2006 01:06, Bradley Arsenault a écrit :
> On 4/21/06, Sébastien <address@hidden> wrote:
> > Le Vendredi 21 Avril 2006 13:56, Stéphane Magnenat a écrit:
> > > In libgag, RectangularWidget is used for widgets that use a certain
> > > area on screen. Right now, all widgets inherits from RectangularWidget.
> > > But we can imagine, for instance, a widget that could be a sound
> > > producer that is not rectangular. Although this may not be the cleanest
> > > architecture (it's inspired form GUI design already some years old
> > > now), it's simple and works. If we have something much better, we can
> > > change, but I'm not sure it's worth the work.
> >
> > If you have a circular button, it will inherits from rectangularwidget ?
> > I thought that Widget where only constitued by displayable elements...
> >
> > > I think the tootip thing should go in RectangularWidget. Why not adding
> > > a drawTooltip in RectangularWidget, then doing a dynamic cast in
> > > Screen::dispatchPaint ?
> >
> > you mean in the dispatchPaint loop :
> > RectangularWidget rw = dynamic_cast<RectangularWidget*>(*it);
> > if(rw != NULL) {
> >         rw -> drawToolTip();
> > }
> > ?
> >
> > > Right now the tooltip is not drawn after the other widget, so it can be
> > > masked. How do you plan to handle this ?
> >
> > I must admit that I haven't thought to that... You mean, I've two buttons
> > overlapping eachother and we display the tooltip for the first "under"
> > the second ? Is this a possible case ?  Do we really have to handle it ?
> > If yes then there is no other choice than another method (displayToolTip
> > or drawOverlay) and we have to make two loops in dispatch Paint.
>
> I would belive that its logical that the tooltip would be larger than
> the widget its highlighting, and thus its possible to assume that
> another button may be accidentally be drawn over the tooltip.
>
>
> _______________________________________________
> glob2-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/glob2-devel
Yes I've made some improvements after talking to Stéphane... I think I'll send 
something today...





reply via email to

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