Window.Open applicability

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

Window.Open applicability

Post by jPV » Wed Nov 08, 2017 5:50 pm

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: 2509
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Window.Open applicability

Post by airsoftsoftwair » Thu Nov 09, 2017 11:10 pm

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: 80
Joined: Fri Nov 14, 2014 7:01 pm

Re: Window.Open applicability

Post by bitRocky » Mon Jan 15, 2018 7:41 pm

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: 2509
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Window.Open applicability

Post by airsoftsoftwair » Mon Jan 15, 2018 8:25 pm

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

Post Reply