[Y-devel] Widgets in a canvas

James Harr james at grickle.org
Tue Feb 24 19:38:16 GMT 2004


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