Education 0.2

Aller au contenu | Aller au menu | Aller à la recherche

Chroniques Smalltalk

Des chroniques, courtes et faciles d'accès, pour montrer les différentes facettes du langage Smalltalk et son environnement.

Fil des billets - Fil des commentaires

vendredi, juin 11 2010

Archetype Polymorph Application

We present a typical Polymorph application featuring Window, menu, toolbar and drawing canvas.The example is a painter application we present step by step.

The complete example is at http://www.squeaksource.com/CollaborActiveBook. The example exposes several aspects in UI programming: Morph layout, Polymorph, Traits, graphic and form display manipulations, mouse handling, announcement.

Painter application example

Lire la suite...

mardi, juin 1 2010

Horizontal grid artifact

I created a new artifact for Etoys, it is to divde a grid in two parts. It can be use to explain distribution in calculus 5*7=5*5+5*2. It is scriptable graphically with Etoys tiles.

Moreover, now the artifacts appear in a specific Artifacts category of the Object Catalog.

horizontal-grid.png

You can load in Etoys/Squeak/Pharo from its repository

Fraction Box Artifact

I created a new artifact for Etoys, it is to represent m parts among n parts. It is scriptable graphically with Etoys tiles.

FractioBoxMorph.png

You can load in Etoys/Squeak/Pharo from its repository

samedi, avril 10 2010

UI with Pharo

How to write GUI application with Pharo Smalltalk?

In this series of articles I will use DrGeo Smalltalk porting effort to Pharo UI as an example. The articles use Pharo 1.0, but it should work with newer version without modification.

Do not hesitate to comment.

Lire la suite...

dimanche, avril 19 2009

Fun avec les messages

En programmation orientée objet Smalltalk, nous n'appelons pas des méthodes mais nous envoyons des messages à des objets pour leur demander poliment d'exécuter un traitement. L'objet recevant le message décide alors de la méthode à utiliser pour répondre à cet appel.

Lire la suite...

- page 1 de 3