Problem with TextFieldMorph

Ingo Hohmann ingo at 2b1.de
Mon Jul 21 21:27:25 UTC 2003


Hi Ned,

Ned Konz wrote:
> On Monday 21 July 2003 12:31 pm, Vincent Foley wrote:
<...>
>>Is there some code to add, or should I use PluggableTextMorph (in
>>which case, I would like to know how to remove scroll bars)
> 
> 
> They don't have scroll bars by default; if you only have a single line 
> of text and the PTM is tall enough you won't have scroll bars.
> 
> Try this in a Workspace and see what I mean:
> 
> 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.


Kind regards,

Ingo



More information about the Squeak-dev mailing list