QUICK REFERENCE: TEXT

Some objects of Squeak have a graphic appearance that you can see in the Squeak desktop when it is instantialized. This instantialization can be made dragging from the "green window" (Object window).

Many methods of this objects can be executed in "design time" using graphic resources. We will try, at this Quick Reference, to mix this kind of methods and the methods normally executed inside scripts.

In the serie of lessons we are beginning now, we will present objects or group of objects to be used like "Form Controls", that have different designations in other plataforms: Text, Label, TextField, TextBox, Button, ListBox, RadioButton etc.

A Text object is instatialized graphicaly dragging from the "green window":


position

Drag the Move button of the Halo.


setCharacters:'abcdef'.


getCharacters.


setNumericValue:n.


getNumericValue.


size, style, bold, italic, underlined, textColor, autoFit, wrapping

autoFit enables the following feature: if the text contents changes, then the bounds will be adjusted to fit the minimum rectangle that encloses the text.

wrapping, the text will be wrapped at word boundaries based on the composition width (margins).


sendToBack, bringToFront, embedInto


show


hide


margins

Drag the Size button of the Halo.



PREVIOUS LESSON NEXT LESSON
T. CONTENTS HOMEPAGE

DISCLAIMER: This material can be translated for any language, and reproduced total or partially by anybody using any type of media. But, please, don't put your name like author. And let me know if it was useful (americo@dmu.com).The use of any code, 3D model or technique published is free and doesn't need to have any reference about this source.The author is not responsible for any damage that the material can cause to your professional or sexual life.