[Newbies] Beginner wants to start graphic windows in, Smalltalk 80 - need help - 2

Hans Schueren werbung at hans-schueren.de
Wed Nov 26 19:00:36 UTC 2014


Hello , here is Hans , The Byte Surfer ,


the smalltalk code is from books of  year 1992 and 1993 1988 and 1987.

I have a lot of books around the world .   ALL of the Topic SMALLTALK 
80.      Only 80 !!!


Because i am a absolute beginner and want to learn smalltalk 80.

I realized that thing have changed.   for example  GUI programming

Mosttimes there is a optional library needed for creation. There is a 
optional IDE i know , for those things.

No Matter !



I dont know anything about the  NEW    TOOLS    and Replacements in 
actual Smalltalk Engineering like PHARO.



Please tell me what i have to learn.


What is GUI IDE in Pharo.     Do i have to learn   Morpic.     What else 
for Window and Buttons design ?


The Pharo  ( and actual squeak )   have very much weight for a beginner.


Is it right , that all   " NEW STUFF " is decribed in the two manuals :  
Pharo by Example + Deep into Pharo.

Or is there any other actual description about "Up to date programming 
Pharo" ????



Sincerely  Your Friend


Hans
The Byte Surfer


PS. Wish to have Smalltalk 80 from XEROX 1987 here.  ha ha ha






On 26.11.2014 19:39, beginners-request at lists.squeakfoundation.org wrote:
> Send Beginners mailing list submissions to
> 	beginners at lists.squeakfoundation.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.squeakfoundation.org/mailman/listinfo/beginners
> or, via email, send a message with subject or body 'help' to
> 	beginners-request at lists.squeakfoundation.org
>
> You can reach the person managing the list at
> 	beginners-owner at lists.squeakfoundation.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Beginners digest..."
>
>
> Today's Topics:
>
>     1. Beginner wants to start graphic windows in Smalltalk 80 -
>        need help (Hans Schueren)
>     2. Re: Beginner wants to start graphic windows in Smalltalk 80	-
>        need help (David T. Lewis)
>     3. Re: Beginner wants to start graphic windows in Smalltalk 80	-
>        need help (Michael Rice)
>     4. Re: Beginners Digest, Vol 102, Issue 13 (dnorton at mindspring.com)
>     5. Re: Re: Beginners Digest, Vol 102, Issue 13 (Raymond Asselin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 26 Nov 2014 14:10:42 +0100
> From: Hans Schueren <werbung at hans-schueren.de>
> Subject: [Newbies] Beginner wants to start graphic windows in
> 	Smalltalk 80 -	need help
> To: "beginners at lists.squeakfoundation.org"
> 	<beginners at lists.squeakfoundation.org>
> Message-ID: <5475D152.2070206 at hans-schueren.de>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
>
> 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
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 26 Nov 2014 09:13:54 -0500
> From: "David T. Lewis" <lewis at mail.msen.com>
> Subject: Re: [Newbies] Beginner wants to start graphic windows in
> 	Smalltalk 80	- need help
> To: "A friendly place to get answers to even the most basic questions
> 	about	Squeak." <beginners at lists.squeakfoundation.org>
> Message-ID: <20141126141354.GA77002 at shell.msen.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Wed, Nov 26, 2014 at 02:10:42PM +0100, Hans Schueren 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
>>
> Hello Hans,
>
> Can you please say what book or paper you are using? Also check if your
> learning material specifies what version of Smalltalk was used for the
> examples.
>
> Your examples look like some version of the MVC user interface, which
> was the original (and still very interesting) user interface in Smalltalk
> and Squeak. Squeak still provides some support for MVC, so for example
> there probably is some equivalent to the ScheduledWindow class used in
> your example below. You may also be interested in other user interface
> approaches, such as Morphic, which are very different from MVC.
>
> Dave
>
>
>>
>>
>> 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
>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
> ------------------------------
>
> Message: 3
> Date: Wed, 26 Nov 2014 12:08:52 -0500
> From: Michael Rice <limitcase at gmail.com>
> Subject: Re: [Newbies] Beginner wants to start graphic windows in
> 	Smalltalk 80	- need help
> To: "A friendly place to get answers to even the most basic questions
> 	about	Squeak." <beginners at lists.squeakfoundation.org>
> Message-ID:
> 	<CAGw08vM7AVJMAP6PGHMY7EZdx_Mu7z4K06Sy2nNQfy0NBJu7MA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I was just browsing FormEditor. A lot has changed since the original MVC,
> some to make it compatible with Morphic, e.g., the instance method 'edit'
> of Form
>
> edit
> "Open a form editor on this form."
>
> Project current formEdit: self
>
> As you can see, the current project has some responsibilities.
>
> Project current ->  a MVCProject (Unnamed) in a ControlManager
>
>
> current
> "Answer the project that is currently being used."
>
> ^CurrentProject
>
> a class variable of Project.
>
>
> For Project:
>
> formEdit: aForm
> "Start up an instance of the form editor on a form."
>
> self subclassResponsibility
>
>
> Subclasses of Project are MVCProject and MorphicProject
>
> For MVCProject:
>
>
> formEdit: aForm
> "Start up an instance of the FormEditor on a form..."
>
> FormEditor openOnForm: aForm
>
> Poking around in FormEditor and its associated classes, while tedious, can
> yield useful information on how these views, models, and controllers
> inter-operate.
>
>
> Michael
>
>
>
>
>
> On Wed, Nov 26, 2014 at 9:13 AM, David T. Lewis <lewis at mail.msen.com> wrote:
>
>> On Wed, Nov 26, 2014 at 02:10:42PM +0100, Hans Schueren 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
>>>
>> Hello Hans,
>>
>> Can you please say what book or paper you are using? Also check if your
>> learning material specifies what version of Smalltalk was used for the
>> examples.
>>
>> Your examples look like some version of the MVC user interface, which
>> was the original (and still very interesting) user interface in Smalltalk
>> and Squeak. Squeak still provides some support for MVC, so for example
>> there probably is some equivalent to the ScheduledWindow class used in
>> your example below. You may also be interested in other user interface
>> approaches, such as Morphic, which are very different from MVC.
>>
>> Dave
>>
>>
>>>
>>>
>>> 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
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20141126/33955e66/attachment-0001.htm
>
> ------------------------------
>
> Message: 4
> Date: Wed, 26 Nov 2014 12:42:33 -0500 (GMT-05:00)
> From: <dnorton at mindspring.com>
> Subject: [Newbies] Re: Beginners Digest, Vol 102, Issue 13
> To: beginners at lists.squeakfoundation.org
> Message-ID:
> 	<7065423.1417023753041.JavaMail.root at elwamui-darkeyed.atl.sa.earthlink.net>
> 	
> Content-Type: text/plain; charset="us-ascii"
>
> An HTML attachment was scrubbed...
> URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20141126/ce3a91d8/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Wed, 26 Nov 2014 13:38:55 -0500
> From: Raymond Asselin <jgr.asselin at me.com>
> Subject: Re: [Newbies] Re: Beginners Digest, Vol 102, Issue 13
> To: "dnorton at mindspring.com" <dnorton at mindspring.com>,	"A friendly
> 	place to get answers to even the most basic questions	about	Squeak."
> 	<beginners at lists.squeakfoundation.org>
> Message-ID: <C0FC5870-A03B-4C8B-9178-E9BEB374DF0F at me.com>
> Content-Type: text/plain; charset="utf-8"
>
> I suppose you put "self halt." ?
>
> Envoyé de mon iPhone
>
>> Le 2014-11-26 à 12:42, dnorton at mindspring.com a écrit :
>>
>> Hi Casey,
>>
>> The target is Browser, which does not override the method.
>> The hierarchy is: ProtoObject, Object, Model, StringHolder (has the method), CodeHolder, Browser, et seq.
>>
>>   
>>
>> I put the halt in StringHolder>>perform:orSendTo: and that didn't bring up the debugger.
>>
>>   
>>
>> There are 13 implementers of perform:orSendTo: and I can put a halt in each one in order to start the research, but I don't understand why the hierarchy seems to be bypassed.
>>
>>   
>>
>> - Dan
>>> Date: Tue, 25 Nov 2014 21:43:57 -0800
>>> From: Casey Ransberger
>>> Subject: Re: [Newbies] accept (s)
>>> To: "dnorton at mindspring.com" , "A friendly
>>> place to get answers to even the most basic questions about Squeak."
>>>
>>> Message-ID: <3B1C3417-8C08-4CB9-844B-E6D28A51C0F1 at gmail.com>
>>> Content-Type: text/plain; charset="us-ascii"
>>>
>>> Hi Dan,
>>>
>>> That doesn't sound quite right.
>>>
>>> #perform:orSendTo: is probably overridden in Browser, but... have you looked to see if there's an implementation of it on Object or maybe ProtoObject or something like that?
>>>
>>> I'm pretty sure that #perform: and cousins are usually general.
>>>
>>> Not sure (on a cellphone) without looking at an actual running system, but try looking up the inheritance chain for another implementation of the same selector. That might help.
>>>
>>> Let me know either way, when I get back to a real computer I'll look into it for you if you don't get it figured out by then.
>>>
>>> Good hunting!
>>>
>>> Casey
>>>
>>>> On Nov 25, 2014, at 5:30 PM, wrote:
>>>>
>>>> An inspector for the menu item "accept (s)" reveals a selector of "#perform:orSendTo:" which is implemented in Browser.
>>>>
>>>> I want to follow the code and I put a halt in "#perform:orSendTo:" but the debugger never opened. What gives?
>>>>
>>>>
>>>>
>>>> - Dan
>>>>
>>>> _______________________________________________
>>>> Beginners mailing list
>>>> Beginners at lists.squeakfoundation.org
>>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20141126/10cb5abd/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
> End of Beginners Digest, Vol 102, Issue 14
> ******************************************



More information about the Beginners mailing list