[Y-devel] Widgets in a canvas
James Harr james at grickle.org
Tue Feb 24 20:49:20 GMT 2004
I hope it's that easy. I haven't studied Y's code very well since I've been
busy since 0.2 came out and haven't had a chance of looking at it since my
autoconf is a little old :)
I'll look into it though when I get the time unless someone else has done it
by then.
Thanks,
James Harr
On Tue February 24 2004 13:51, Matthew David Kurjanowicz wrote:
> it would certainly be possible...all you'd have to do would be implement a
> drawWidget method in the canvas' painter, and then that would call
> whatever painter method it needed to draw the widget it's given. Right?
>
> -Matt Kurjanowicz
>
> > Hello everyone.
> >
> > Say you need a canvas with a button or a check box in it (ie - in a
> > webpage). Is there some way (or could we create some way) to be able to
> > put widgets in a canvas (or over it)? So you could make use of
> > themes/common widgets and avoid reinventing the wheel.
> >
> > Or perhaps a draw method in the canvas for drawing a widget. Where you
> > can create a widget (such as a checkbox), set its state (checked) and
> > then call the method for the canvas that draws a widget, let Y draw it,
> > then let the application figure out where the clicks go based on where
> > it drew the widget (IE, the widget wouldn't actually be a widget, it'd
> > just be a drawing of one.)
> >
> > This could be great for many applications such as webpage apps, calendar
> > programs, and pretty much anything that needs to use widgets, but has
> > to place them in strange locations.
> >
> > Thoughts?
> >
> > Thanks,
> > James Harr
>
>
>
>
>
>
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved