Page 1 of 1

Window.Open applicability

Posted: Wed Nov 08, 2017 4:50 pm
by jPV
I'd want to keep some application windows closed at startup, and it would be more comfortable to define them already in the main XML file than creating new objects later. I couldn't find a proper way to define them as closed at first, because for example Window.Open documentation tells that it can't be used in XML/init.

But then I tried to define open="false" in the XML file against the documentation, and was suprised that it actually did work after all. I'd like to know if it's OK to use it there now? Or does it only happen to work on certain systems (MorphOS), but maybe not on others?

Re: Window.Open applicability

Posted: Thu Nov 09, 2017 10:10 pm
by airsoftsoftwair
No, it's perfectly fine to set it at initialization time. I've just checked MUI Royale's code and it uses some glue code to make it possible to specify Window.Open at initialization time because MUI itself only supports SG. MUI Royale, however, supports ISG. I need to update the doc :-)

Re: Window.Open applicability

Posted: Mon Jan 15, 2018 6:41 pm
by bitRocky
All windows created in MUI are closed by default.
You have to manually open them at startup or whenever they should be opened.
Does MUI Royale open them automatically at creation time?

Re: Window.Open applicability

Posted: Mon Jan 15, 2018 7:25 pm
by airsoftsoftwair
Yes, I think so, except when creating them manually using mui.CreateObject().