I need a standard single line text entry widget
Tim Rowledge
tim at sumeru.stanford.edu
Tue Apr 9 20:28:25 UTC 2002
Ned Konz <ned at bike-nomad.com> is claimed by the authorities to have written:
> You can try this (lifted from MessageNames) in a Workspace:
>
> plugTextMor _ PluggableTextMorph on: nil "your model here"
> text: nil accept: nil "your model selectors here"
> readSelection: nil menu: nil. "your model selectors here"
> plugTextMor extent: 144 at 22.
> plugTextMor setProperty: #alwaysAccept toValue: true.
> plugTextMor askBeforeDiscardingEdits: false.
> plugTextMor acceptOnCR: true.
> plugTextMor setTextColor: Color brown.
> plugTextMor vResizing: #spaceFill; hResizing: #spaceFill.
> plugTextMor hideScrollBarIndefinitely.
> plugTextMor setTextMorphToSelectAllOnMouseEnter.
> plugTextMor openInHand.
Good Grief. People are expected to actually be able to work this out? I
suppose folks that have done as much morphic hacking as ned might find
it possible to keep track of but really, isn't this getting a little
complex?
tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Strange OpCodes: WWLR: Write Wrong Length Record
More information about the Squeak-dev
mailing list
|