Problem with TextFieldMorph
Ingo Hohmann
ingo at 2b1.de
Mon Jul 21 22:08:39 UTC 2003
Ahhh, I see,
now it makes sense, thank you!,
Ingo
Ned Konz wrote:
> 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.
>
More information about the Squeak-dev
mailing list
|