Re: [Newbies] Morphic Tutorial for Basic Window Functions

2007-07-13 Thread Michael van der Gulik
Jack Williams wrote:
 I am looking for a tutorial that covers basic window
 management: how to put a window on the screen on the
 screen, draw a form, gather data from the fields and
 return the user reponses to the application.

 I can find morphic tutorials that show how to animate
 something and do cool stuff, but not how to do the
 basics.

 I am new to smalltalk and any help is appreciated.
   
Hi Jack.

It seems that nobody has replied yet, so I'll insert my snide remarks ;-).

Firstly, I tried Morphic and gave up. It's hard work to get going and
it's harder work to make something behave the way you want. While I
eventually got an application going, I wasted a lot of time working
around quirks.

Instead, I'd recommend that you learn and use ToolBuilder. It's a
multiplatform UI API. To get it, add this as a Monticello repository:

MCHttpRepository
location: 'http://squeaksource.com/ToolBuilder'
user: 'user'
password: ''

(Keep fiddling with this until it works - I tried without a username and
it opened up a blank window (?!) ).

Then load up ToolBuilder-Kernel, ToolBuilder-Specs,
ToolBuilder-Morphic and ToolBuilder-examples.

Then look for buildWith: methods in the examples. That's where most of
the UI code is. I'm not sure if there's any documentation out there, but
feel free to ask about anything here.

Regards,
Michael.
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] overwriting #new

2007-07-13 Thread Daniel Priewasser
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hello,

I have a class Foo inherited from Object. When I try to create a user
defined #new (newFoo), to avoid the #initialize instance method to run
as part of the object instantiation, I get the following error:
... class(Object)doesNotUnderstand: #newFoo ...

method definition:
- --
newFoo
  | model|
  model := self basicNew.
  .. do something ..
  model initialize.
  ^model
- --
usage:
someMethod
  | foo |
  foo := Foo newFoo.
  .. do something ..
- --

Is there something that I missed to overwrite the #new method?

Cheers,
Daniel.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGlpV2gUMEmDMCeAARA5uvAKCDAw6ag+qHEDrFce8EjNKjD+QYbQCfZVLw
OypIlyLFBLJOLB/rIktphwI=
=Rfyg
-END PGP SIGNATURE-
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Re: overwriting #new

2007-07-13 Thread Klaus D. Witzel

Hi Daniel,

on Thu, 12 Jul 2007 22:56:22 +0200, you wrote:


Hello,

I have a class Foo inherited from Object. When I try to create a user
defined #new (newFoo), to avoid the #initialize instance method to run
as part of the object instantiation, I get the following error:
... class(Object)doesNotUnderstand: #newFoo ...


When you select the word newFoo and ask for implementors (alt-m), is this  
the only one in the result list which has Foo class in it?


If so then we must know more, can you post a fileOut of the definition of  
Foo class and its #newFoo method.


/Klaus


method definition:
- --
newFoo
  | model|
  model := self basicNew.
  .. do something ..
  model initialize.
  ^model
- --
usage:
someMethod
  | foo |
  foo := Foo newFoo.
  .. do something ..
- --

Is there something that I missed to overwrite the #new method?

Cheers,
Daniel.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGlpV2gUMEmDMCeAARA5uvAKCDAw6ag+qHEDrFce8EjNKjD+QYbQCfZVLw
OypIlyLFBLJOLB/rIktphwI=
=Rfyg
-END PGP SIGNATURE-



___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Environment Font Questions

2007-07-13 Thread Richard Eng
I have a similar question. I tried installing ³FreeStyle² but I¹m not sure
if I know how to use it because I still don¹t get any nice Windows fonts in
Squeak.

Richard


On 7/13/07 6:57 PM, Conrad Taylor [EMAIL PROTECTED] wrote:

 Hi, could someone recommend a default that I can use instead of the default
 image's font?  The current font is simply too small and causing eye strain.
 
 Thanks in advance,
 
 -Conrad
 
 
 
 
 ___
 Beginners mailing list
 Beginners@lists.squeakfoundation.org
 http://lists.squeakfoundation.org/mailman/listinfo/beginners


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Environment Font Questions

2007-07-13 Thread Conrad Taylor

Hi, after you installed the FreeType stuff, you should be able to go to the
World menu - appearance... - system fonts - default text font

Once you get there, you should be able to select the font you want to use.
Next, you'll need to save and quit from your current image.  Now, restart
Squeak using the previous image.  At this point, I'm not seeing any changes
in the fonts and it's simply displaying the original font.

-Conrad

On 7/13/07, Richard Eng [EMAIL PROTECTED] wrote:


 I have a similar question. I tried installing FreeStyle but I'm not
sure if I know how to use it because I still don't get any nice Windows
fonts in Squeak.

Richard


On 7/13/07 6:57 PM, Conrad Taylor [EMAIL PROTECTED] wrote:

Hi, could someone recommend a default that I can use instead of the
default image's font?  The current font is simply too small and causing eye
strain.

Thanks in advance,

-Conrad



--
___
Beginners mailing list
[EMAIL PROTECTED] Beginners@lists.squeakfoundation.org
n.org Beginners@lists.squeakfoundation.org
http://lists.squeakfoundationhttp://lists.squeakfoundation.org/mailman/listinfo/beginners
.org/mailman/listinfo/beginnershttp://lists.squeakfoundation.org/mailman/listinfo/beginners



___
Beginners mailing list
[EMAIL PROTECTED] Beginners@lists.squeakfoundation.org
on.org Beginners@lists.squeakfoundation.org
http://lists.squeakfoundationhttp://lists.squeakfoundation.org/mailman/listinfo/beginners
.org/mailman/listinfo/beginnershttp://lists.squeakfoundation.org/mailman/listinfo/beginners


___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Environment Font Questions

2007-07-13 Thread Conrad Taylor

Hi, I have visited the following page:
http://wiki.squeak.org/squeak/5984


This is a good font but I haven't been able to duplicate it being the some
of the preferences on the above page don't exist in my version.  Thus, I'm
wondering if this on applicable in 3.10 instead of 3.9.

-Conrad

On 7/13/07, Conrad Taylor [EMAIL PROTECTED] wrote:


Hi, after you installed the FreeType stuff, you should be able to go to
the

World menu - appearance... - system fonts - default text font

Once you get there, you should be able to select the font you want to use.
 Next, you'll need to save and quit from your current image.  Now, restart
Squeak using the previous image.  At this point, I'm not seeing any
changes in the fonts and it's simply displaying the original font.


-Conrad

On 7/13/07, Richard Eng [EMAIL PROTECTED]  wrote:

  I have a similar question. I tried installing FreeStyle but I'm not
 sure if I know how to use it because I still don't get any nice Windows
 fonts in Squeak.

 Richard


 On 7/13/07 6:57 PM, Conrad Taylor [EMAIL PROTECTED] wrote:

 Hi, could someone recommend a default that I can use instead of the
 default image's font?  The current font is simply too small and causing
 eye strain.

 Thanks in advance,

 -Conrad



 --
 ___
 Beginners mailing list
 [EMAIL PROTECTED] 
Beginners@lists.squeakfoundation.orgn.orgBeginners@lists.squeakfoundation.org
 
http://lists.squeakfoundationhttp://lists.squeakfoundation.org/mailman/listinfo/beginners.org/mailman/listinfo/beginnershttp://lists.squeakfoundation.org/mailman/listinfo/beginners



 ___
 Beginners mailing list
 [EMAIL PROTECTED] Beginners@lists.squeakfoundation.org
 on.org Beginners@lists.squeakfoundation.org
 
http://lists.squeakfoundationhttp://lists.squeakfoundation.org/mailman/listinfo/beginners
 
.org/mailman/listinfo/beginnershttp://lists.squeakfoundation.org/mailman/listinfo/beginners




___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners