logo       

Re: I am a total beginner with some questions: msg#00062

lang.smalltalk.squeak.beginners

Subject: Re: I am a total beginner with some questions




El 4/7/08 6:44 PM, "kennellgr" <cboneg5@xxxxxxxxx> escribió:

> I really like programming (I've done some in C) and I decided I wanted to try
> doing some programming on my Mac. I spent hours online trying to find
> something that I could learn and settled on Squeak. I have it and barely
> understand the basics of it.
>
> A few Questions:
>
> 1. What do I do to test whether or not a key has been pressed (in a method I
> want it to say 'if C key is pressed down do this')
>
> 2. What do I do to display a picture that I have on my computer?

Go for
http://ftp.squeak.org/various_images/FunSqueak/FunSqueak3.10alpha.6.zip
Into this you found the excellent "ProgrammingMorphs" tutorial by LexSpoon.

The short answer is you must look by handleKeystroke: message and similars
sended to Morph and inherited classes..

Any Squeak could load .png,.jpg,.gif.
Via drag and drop for 3.8 and newer and via fileList window for all.

Edgar


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise