Re: [racket] onfocus like functionality in Racket

2014-10-04 Thread Jordan Johnson
1. One cause of confusion: world-after-button-down and world-after-button-up are under-specified in your purpose statements (i.e. "RETURNS:" comments): rather than "the world following a button-up event", which is vague and open to multiple interpretations, say what behavior you wish to observe

Re: [racket] onfocus like functionality in Racket

2014-10-04 Thread Animesh Pandey
Hi, I have designed the program. You can see this here . It is a basic GUI program where I generate figures using a key event. The figures can be dragged but I noticed one thing which was if any of the figures overlap then when the figure which is on top is dragged the

Re: [racket] onfocus like functionality in Racket

2014-10-04 Thread Matthias Felleisen
Yes, it's your choice whether one circle moves or both. If this is related to a course, you need to design the program so that this mailing list can help you with where you're stuck. If you're trying to find a good GUI toolbox, then I'd recommend using the underlying one instead. The big-ban

[racket] onfocus like functionality in Racket

2014-10-04 Thread Animesh Pandey
Hi, I am using big-bang to create a simple GUI application where I am dragging two solid circles. Suppose I drag one circle on top of another and release the mouse button and then when I click both circles move together. Is there away I can avoid this? I want the circle on the top to move and not t