[Y-devel] Widgets in a canvas
Kris Van Hees aedil-y-devel at alchar.org
Tue Feb 24 19:56:36 GMT 2004
How about a layout widget that can contain your button or checkbox, or whichever
other widget, and give that widget the ability to have a background image that
is actually a canvas widget, or just a way to have the client draw on the
background of the layout widget as if it were a canvas? I could indeed see
many uses for this type of advanced layout widget.
Kris
On Tue, Feb 24, 2004 at 01:38:16PM -0600, James Harr wrote:
> 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
>
--
Never underestimate a Mage with:
- the Intelligence to cast Magic Missile,
- the Constitution to survive the first hit, and
- the Dexterity to run fast enough to avoid being hit a second time.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved