Close to my heart too; given most widget toolkits seem to lack the richness one needs.<br><br>It's good to look at examples; <br><br>possibly hierlist.ss in drscheme<br><br>the various DrScheme XML and comment boxes as well as graph.ss is interesting too, if you are prepared to think of snips on a canvas (sprites roughly) as custom widgets<br>
<br>MrEd Designer includes some custom widgets that may be worth looking at; <br><a href="http://hexahedron.hu/personal/peteri/mreddesigner/">http://hexahedron.hu/personal/peteri/mreddesigner/</a><br>(I don't know if they will survive in working form into v3.99->4)<br>
<br>Cheers, <br><br>Stephen<br><br><div class="gmail_quote">On Thu, Apr 17, 2008 at 3:07 AM, Ben Simon <<a href="mailto:benjisimon@gmail.com">benjisimon@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Martin -</div>
<div> </div>
<div>You've hit on a topic that's near and dear to my heart. Here are some examples you might find helpful. In the last example, I mixed both a canvas and panel behavior, which allowed me to do things like draw a border around groups of components.</div>
<div> </div>
<div><a href="http://schemecookbook.org/Cookbook/GUIWidgetAggregation" target="_blank">http://schemecookbook.org/Cookbook/GUIWidgetAggregation</a></div>
<div><a href="http://groups.google.com/group/plt-scheme/msg/36cc6cb7fb314711" target="_blank">http://groups.google.com/group/plt-scheme/msg/36cc6cb7fb314711</a></div>
<div><a href="http://benjisimon.blogspot.com/2008/03/fun-with-mred-components-retro-status.html" target="_blank">http://benjisimon.blogspot.com/2008/03/fun-with-mred-components-retro-status.html</a></div>
<div><a href="http://benjisimon.blogspot.com/2008/04/more-adventures-in-creating-mred.html" target="_blank">http://benjisimon.blogspot.com/2008/04/more-adventures-in-creating-mred.html</a><br><br></div><div><div></div><div class="Wj3C7c">
<div class="gmail_quote">On Wed, Apr 16, 2008 at 8:07 PM, Martin DeMello <<a href="mailto:martindemello@gmail.com" target="_blank">martindemello@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Can someone give me minimal examples of (a) a custom widget based on<br>drawing onto a canvas and (b) a custom widget based on composing<br>
existing widgets? I've hunted through the docs but there's no obvious,<br>beginner-friendly "this is how you do it" code or howtos.<br><br>martin<br>_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>
Have an idea for software? I can make it happen - <a href="http://www.ideas2executables.com" target="_blank">http://www.ideas2executables.com</a><br>
My Blog: <a href="http://benjisimon.blogspot.com" target="_blank">http://benjisimon.blogspot.com</a>
</font><br>_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br><br>Stephen<br><br>--<br>Stephen De Gabrielle<br><a href="mailto:s.degabrielle@ucl.ac.uk">s.degabrielle@ucl.ac.uk</a><br>Telephone +44 (0)20 7679 5242 (x45242)<br>
Mobile 079 851 890 45<br>Project: Making Sense of Information (MaSI)<br><a href="http://www.uclic.ucl.ac.uk/annb/MaSI.html">http://www.uclic.ucl.ac.uk/annb/MaSI.html</a><br><br>UCLIC: University College London Interaction Centre<br>
<a href="http://www.uclic.ucl.ac.uk/">http://www.uclic.ucl.ac.uk/</a><br><br>Remax House - 31/32 Alfred Place<br>London - WC1E 7DP