[Cuis-dev] initial size of SystemWindow subclass

Jon Hylands jhylands at gmail.com
Fri Aug 9 11:02:24 PDT 2024


In general, when I make an app like that, it holds onto a SystemWindow in
an instance variable - there's no reason to subclass from that class unless
you're changing how the parts of a window that it provides work.

- Jon


On Thu, 8 Aug 2024 at 20:57, Mark Volkmann via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> I'm working on a small demo app ... a todo app. Initially the main class
> was a subclass of LayoutMorph. I changed it to be a subclass of
> SystemWindow so I would get a title, a close button, and the ability to
> resize it for free.
>
> Is there any reason to avoid creating subclasses of SystemWindow for
> things that are not development tools? I suppose not.
>
> When I first open it, it isn't sized correctly to hold all the contents I
> add. See the first screenshot. When I click on an edge of the window, it
> automatically resizes to look like the second screenshot. Is there a
> message I could send to my subclass that would cause it to size correctly
> immediately? I did a lot of searching, but couldn't find anything to do
> that.
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240809/d63cc471/attachment.htm>


More information about the Cuis-dev mailing list