|
Scrolling Text setCharacters: msg#00165lang.smalltalk.squeak.beginners
Just learning smalltalk & squeak. One of the first things I wanted to try was to load text into a scroll morph at the press of a button. I renamed the Scrolling Text morph scroll. And I put the following code underneath button. Everything seems fine but the last line The error I get back is that scroll is an unknown variable. So my question is am I referencing the scroll morph correctly in the button script? button | stream data | Transcript show: 'hello'. "Read file into a string" stream _ FileStream fileNamed: 'test.txt'. data _ stream contentsOfEntireFile. stream close. Transcript show: data. scroll setCharacters: data. Thanks in advance Steve _______________________________________________ Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Training courses, andy . burnett |
|---|---|
| Next by Date: | Re: Re: Rome (Cairo) installation problems, Sebasstian Nozzi |
| Previous by Thread: | Re: Training courses, andy . burnett |
| Next by Thread: | Scrolling Text setCharacters, Stephen Rowley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |