
First of all, play with our project:
We can do quizes like this using things that we have learned at previous lessons. But...
How we make this big letters?
Puting a simple Text (without border) object in the Squeak world we click in the Menu button of the "halo" and click in "text color..." (not "change color...").
At this interesting window we can choose many options for the format of the text. We can have, by example, 4 letters styles with their different sizes:
What is the "architecture" (the basic concept, the basic idea) of this project?
We have 3 Texts (without borders) that are the messages (not the names of the inventors): Out0, Out1, Out2. Glued to each one we have a script like this of the figure:
An important resource of Squeak is: we can create some simple scripts only dragging lines of the Viewer. At this case it was possible.
The lines of the Viewer are in many groups (categories). Clicking in any title of category you open a Menu to show a new category at the Viewer.
The methods: show and hide, we have used, are in the category: miscelaneous.
Another interesting feature of the Viewer of an object is: we can execute the line having one of its methods (methods of the Text object in our case) only clicking in the "yellow exclamation" in front of the line. Like we would like that in the "initial state" of the project the messages are hidden we click in the "yellow exclamation" of the lines: "Out0 hide" or "Out1 hide" etc. before save the final project. (We could do the same "erase thing" also dragging the pointer over the message and pressing the tab key of the keybord, like usual.)
The rounded format of a button is created because the button is an object like others and also have a "halo". Opening the Menu we can change the color of the button, and change the label to "nothing". Using the button of Size in the halo we can create the format of a circle for our button.
I hope you have understood all our tricks. Home work for you: try to create another quiz.
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
