|
Someone to critique my custom Morph?: msg#00131lang.smalltalk.squeak.beginners
Hi, I have made a custom Morph to look for keyboard events when it is the current mouse focus. Is there anyone out there who could look at my class and give me suggestions / observations? I am wondering if I made any bad practices or bad oversights. My techniques were culled from a number of different tutorials and looking at existing classes. I have implemented it on a 3.6-based image. I appreciate any help. I will attach the class which you can file-in. It is called "KeyMoverMorph" and is in the category "My Morph". Its behavior includes: - drawing a border when it is mouse focus - looking for keyboard events when it is mouse focus - changes to color yellow when 'o' is pressed on it, blue when 'c' is pressed - when it is focus, keyboard arrow keys move it up, down, left, and right If there are better ways for me to do any of these things please let me know. Thanks, Tim
Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Monticello and merging, goran |
|---|---|
| Next by Date: | Advice for design of simple program., Blake |
| Previous by Thread: | Monticello and merging, Norbert Hartl |
| Next by Thread: | Re: Someone to critique my custom Morph?, Luke Gorrie |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |