
TextBox is the usual name for a "Form Control" used basicaly for data entry - but can be used to show data also. In Squeak-Croquet its name is: Text(border). The object is instatialized graphically dragging it from the "Green window":

position
Drag the Move button of the Halo.
size
Drag the Size button of the Halo.
setCharacters:'abcdef'.
getCharacters.
setNumericValue:n.
getNumericValue.
size, style, bold, italic, underlined, textColor, autoFit, wrapping
Valid for the text inside.
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 (text margins!).

sendToBack, bringToFront, embedInto
changeColor
Changes the background color
borderColor, borderWidth, borderStyle

shadowColor, shadowOffset

beLocked
The TextBox/TextBorder will be used only for output; no input accepted.
roundCorners
gradientFill, secondColor, radialFill

show
hide
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
