To whom it may concern ,
may i ask for some help about standard graphic routines ? As a beginner i just have learned all the first level SYNTAX of smalltalk 80. Now , you can imagine , i am interested in writing little GUI windows and graphics for placing some text in the right positions. Theese are the statements i have studied from my material. Does anybody know why the statements not work? Are there any "replacements" for the syntax that i posted here as example ? Have a nice day HERE ARE THE EXAMPLES : | window | window := ScheduledWindow new. window component: 'Hello World' asComposedText. window open | window | window := ScheduledWindow new. window label: 'Fenster ohne Inhalt'. window minimumSize: 200 @ 100; maximumSize: 400 @ 300. window open displayOn: aGraphicsContext 1 to: 10 do: [:i| aGraphicsContext translation printString asComposedText displayOn: aGraphicsContext. aGraphicsContext translateBy: 15 @ 15] Greetings Hans The Byte Surfer |
Hello, I don't really know how to answer. Are your examples really from smalltalk-80 ? Were they running on the Xerox-D microcoded machine ? Because I don't think there are anymore smalltalk-80 available right now, nor machine that can run it. There's a smalltalk-78 running on javascript on the web but that's a bit different. Here you're on the Pharo mailing list, which is a smalltalk which has evolved during 35 years starting from smalltalk-80, so it's quite different from smalltalk-80 right now (for example, closures and exceptions were added, support for modern computers too). To use window as you are doing something like that works: | window | window := StandardWindow new. window title: 'Hello World' . window open However nowadays people use frameworks to build UIs in Pharo, not such APIs. So it depends what you want to do. 2014-11-26 14:16 GMT+01:00 Hans Schueren <[hidden email]>: To whom it may concern , |
In reply to this post by Hans Schueren
Hello Hans,
the standard way to build GUIs using Pharo is to use Spec. I suggest you have a look at the documentation of Spec online, do the tutorial and then you can start experimenting. The easiest way to see the Spec documentation is here: https://ci.inria.fr/pharo-contribution/job/PharoForTheEnterprise/lastSuccessfulBuild/artifact/Spec/Spec.pier.html On Nov 26, 2014, at 10:16 AM, Hans Schueren <[hidden email]> wrote: > To whom it may concern , > > > may i ask for some help about standard graphic routines ? > > As a beginner i just have learned all the first level SYNTAX of smalltalk 80. > > Now , you can imagine , i am interested in writing little GUI windows and graphics for > > placing some text in the right positions. > > > Theese are the statements i have studied from my material. > > > Does anybody know why the statements not work? > > Are there any "replacements" for the syntax that i posted here as example ? > > Have a nice day > > > > > HERE ARE THE EXAMPLES : > > > > > | window | > window := ScheduledWindow new. > window component: 'Hello World' asComposedText. > window open > > > > > | window | > window := ScheduledWindow new. > window label: 'Fenster ohne Inhalt'. > window minimumSize: 200 @ 100; maximumSize: 400 @ 300. > window open > > > > > displayOn: aGraphicsContext > 1 to: 10 do: > [:i| > aGraphicsContext translation printString > asComposedText displayOn: aGraphicsContext. > aGraphicsContext translateBy: 15 @ 15] > > > > > Greetings > > > Hans > The Byte Surfer > > ---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile |
Free forum by Nabble | Edit this page |