Multiple Windows

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Multiple Windows

Post by djrikki » Wed Jan 16, 2013 8:19 pm

Hi,

Documentation suggests its possible to open multiple windows, but how exactly do I pull this off?

I have tried creating two separate XML files which work correctly individual, but if I use the below...

Code: Select all

mui.CreateGUI(FileToString("gui.xml"))
mui.CreateGUI(FileToString("preview.xml"))
Compile and run the application...

The first window opens briefly (I see it flicker and close) leaving the second window only visible.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com

djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Multiple Windows

Post by djrikki » Wed Jan 16, 2013 8:21 pm

Just to add both XMLs start with the xmlversion and encoding string followed by the application base... however if I remove <application> and </application> from the second xml the app now fails to run.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com

djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Multiple Windows

Post by djrikki » Wed Jan 16, 2013 8:24 pm

Nevermind, I get it... all gui elements no matter what they are must reside in one xml file.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com

Post Reply