Thursday, February 10, 2005

 

Dragging and dropping

It took me ages, but I finally got drag-and-drop working in my shape drawing program. I had to code most of it myself (the Java dnd stuff wasn't that helpful), but it works just as I like it.

When you draw a few shapes (that intersect), you can use the object browser to drag them up and down the list (the shapes are drawn from bottom to top). So the shape at the top of the object browser will be drawn on top of all of the other shapes. (use different colours and thicknesses to really see the effect)

Small things amuse small minds - and my small mind was busy on that one for a while ;)

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?