How to size before displaying morph view of TranscriptStream?

Ned Konz ned at bike-nomad.com
Tue Apr 2 23:20:34 UTC 2002


On Tuesday 02 April 2002 03:13 pm, Ken Brown wrote:
>  t _ TranscriptStream new.
> tview_ (t openAsMorphLabel: 'test1').
> tview openInWorld.
> tview position: 20 @ 20.
> tview extent: 600 @ 30.
>
> This displays a larger window first, then erases that and displays the
> correct smaller one.
> If the sizing is done before the openInWorld, it does not rezize.
>
> What is the trick to have the window sized nicely before display?

Don't use openInWorld. This calls the RealEstateAgent to get a size.
Instead, do this:

 t _ TranscriptStream new.
tview_ (t openAsMorphLabel: 'test1').
tview position: 20 at 20.
tview openInWorldExtent: 100 at 100.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com




More information about the Squeak-dev mailing list