Window.Open applicability

Discuss GUI programming with the MUI Royale plugin here
Post Reply
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Window.Open applicability

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Window.Open applicability

Post 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 :-)
bitRocky
Posts: 120
Joined: Fri Nov 14, 2014 6:01 pm

Re: Window.Open applicability

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Window.Open applicability

Post by airsoftsoftwair »

Yes, I think so, except when creating them manually using mui.CreateObject().
Post Reply