Problem with TextFieldMorph
Ned Konz
ned at bike-nomad.com
Mon Jul 21 21:48:22 UTC 2003
On Monday 21 July 2003 02:27 pm, Ingo Hohmann wrote:
> > o _ Object new.
> > ptm _ PluggableTextMorph on: o text: #printString accept: nil.
> > ptm height: TextStyle defaultFont height + 6.
> > ptm acceptOnCR: true; openInHand.
>
> Which gives a oneline height PTM, featuring a scrollbar, of the
> height of about 2 1/2 lines.
>
> Squeak 3.6b 5352, but IIRC it's been the same in my 3.5 image ...
> btw, this is on linux.
Let me guess... you haven't got the "hiddenScrollBars" preference
turned on.
I guess I need to mention the #hideScrollBarIndefinitely method...
o _ Object new.
ptm _ PluggableTextMorph on: o text: #printString accept: nil.
ptm height: TextStyle defaultFont height + 6.
ptm acceptOnCR: true; hideScrollBarIndefinitely; openInHand.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|