Text input widget?
Damien Cassou
cassou at iam.unibe.ch
Tue Aug 16 07:31:13 UTC 2005
> Do any of you know of a readily available text input
> morph for Squeak? I'm looking for something that only
> allows editing on a single line and allows the owner
> to limit the number of characters that can be input.
> (Something like HTML's <input type="text">)
Here is what I found in Magritte :
MATextAreaMorph>>editorMorph
^ (PluggableTextMorph on: self text: #string accept: #string:)
hResizing: #spaceFill;
borderColor: #inset;
borderWidth: 2;
yourself.
MATextLineMorph sublcasses MATextAreaMorph
MATextLineMorph>>editorMorph
^ super editorMorph
hideScrollBarsIndefinitely: true;
acceptOnCR: true;
height: 20;
yourself.
Bye
--
Damien Cassou
pour le Software Composition Group a Berne
More information about the Squeak-dev
mailing list
|