.AddPage method

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

.AddPage method

Post by djrikki »

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: .AddPage method

Post by djrikki »

Hi Andreas,

Really need your input on the ticket, it's been sitting around for a while now and needs putting to bed.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: .AddPage method

Post by airsoftsoftwair »

I guess this is solved now?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: .AddPage method

Post by djrikki »

Yup, got there in the end. =)
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: .AddPage method

Post by djrikki »

Ignore above.

Register.AddPage()

In similar vein to Group.Insert please can you make it optionally possible to Add a Page before a given obj, defaulting to end of Register if not specified.

Another thing, an error in the Documentation...

Code: Select all

Register.ClosePage()
This method will close the page tab specified by "obj". The group object that constitutes the page that is being closed will then change its state from attached to detached. [b]This means that you could attach it now to another register or group using a function like Group.Insert or you could free it using mui.FreeObject().[/b]
It is not possible to add a detached register tab back to a register using Group.Insert - the Register.AddPage() method is used.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: .AddPage method

Post by airsoftsoftwair »

djrikki wrote:In similar vein to Group.Insert please can you make it optionally possible to Add a Page before a given obj, defaulting to end of Register if not specified.
Makes sense... I'll consider adding this.
Another thing, an error in the Documentation...

Code: Select all

Register.ClosePage()
This method will close the page tab specified by "obj". The group object that constitutes the page that is being closed will then change its state from attached to detached. [b]This means that you could attach it now to another register or group using a function like Group.Insert or you could free it using mui.FreeObject().[/b]
It is not possible to add a detached register tab back to a register using Group.Insert - the Register.AddPage() method is used.
Fixed.
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: .AddPage method

Post by airsoftsoftwair »

There is now a Register.Insert() method which allows you to insert tabs into arbitrary positions.
Post Reply