LISTBOX: SELECTED ENTRANCE

We use TextFields to enter given in the archive of telephones of the activity of the previous lessons. The user can, for example, enter with any name. Many times are interesting to reduce the amount of possible data to be entered. This prevents errors. All the programming systems have “controls” for this: RadioButtons, ComboBoxes and ListBoxes. The Squeak-Etoys does not have these objects, but we can create a ListBox using a ScrollPane and Buttons. We go to make it. It opens a new project and it creates a ScrollPane. Embed inside places of it a Rectangle using into TransphormMorph. Later it places three Buttons (they could be how many you it wanted, depending on the amount of entrance options) with embed into TransphormMorph. There it erases the Rectangle. This is a trick: if not to make this we will not have the TransphormMorph option for the three Buttons.

Test to see if, diminishing the size of the ScrollPane, the Buttons will be “inside” of it. Now a question to make right the sizes, the colors and the texts of the buttons inside of the ScrollPane to have three choices is alone. To each Button you can bind one script that she goes to make some thing.

CONCLUSION With this twentieth lesson we finish the part of this series of tutorial where we try to present the bases for programming of micron OLPC being used Smalltalk Squeak-Etoys. As we said this is our recommendation for programming of applications não-web that they need to have access the “record” (memory Flash) of the computer. In the reality the Squeak-Etoys is a tool them children will learn programming. It is also possible to create games using it. But, in this area, our preference is for the use of Javascript - of where applications originally web. It is on the creation of activities for micron OLPC using Javascript that we go to treat in the second part of this series.


Page Information

  • 1 year ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts