[Cuis-dev] initial size of SystemWindow subclass
Mark Volkmann
r.mark.volkmann at gmail.com
Sat Aug 10 16:03:20 PDT 2024
On Sat, Aug 10, 2024 at 4:35 PM <ken.dickey at whidbey.com> wrote:
> On 2024-08-10 13:32, Mark Volkmann via Cuis-dev wrote:
>
> > What can I do to tell the SystemWindow that I want its extent to be the
> > minimum required to display its submorphs.
>
> The following works for me. Note that the last line must be sent
> _after_ openInWOrld.
>
> window := SystemWindow new.
> window addMorph: (LabelMorph new contents: 'Hello World').
> window openInWorld.
>
> window morphExtent: window minimumExtent.
>
THIS is the key thing I was looking for!
--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240810/dfd78875/attachment-0001.htm>
More information about the Cuis-dev
mailing list