[plt-scheme] newbie MrEd question

From: Jordan Johnson (jmj at soe.ucsc.edu)
Date: Fri Jun 2 21:22:47 EDT 2006

Hi all,

I'm making my first app with MrEd and want to solve the following  
problem:

I want to make a widget that can contain free-floating shapes that  
the user can drag about within its space. (The shapes will depend  
upon data I draw from classes or structs.)

The approach I'm starting with is to subclass canvas% to add code for  
managing and drawing the list of member shapes (including delegating  
clicks and other events? I haven't gotten that far yet...), and  
represent shapes as subclasses (or containers) of dc-path%.

What prompted me to post here is that I also want the shapes to  
include textual labels, something that I don't see in dc-path% --  
that suggests to me I might be on the wrong track.

Does this sound appropriate?  Or needlessly complicated?  If there's  
a much simpler approach I'm overlooking, I would be delighted to hear  
suggestions.

Meanwhile, I'll keep perusing the docs.

Thanks,
jmj


Posted on the users mailing list.