cycle gadget

Discuss GUI programming with the MUI Royale plugin here
Post Reply
GMKai
Posts: 160
Joined: Mon Feb 15, 2010 10:58 am

cycle gadget

Post by GMKai »

Hello,
I want to populate my GUI with some cycle gadget.
But only at runtime I know of the items.
Is there a way to add/remove items from a cycle-gadget at runtime?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: cycle gadget

Post by djrikki »

Yes, have a look at mui.CreateObject.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
GMKai
Posts: 160
Joined: Mon Feb 15, 2010 10:58 am

Re: cycle gadget

Post by GMKai »

ok fine, solved the above,
now dealing with cycles, I can get the index of the active element, is there a way to get the index and the content of a cycle?
given this:

Code: Select all

<cycle id="cystatsleague" notify="active"><item>2</item><item>1</item><item>5</item></cycle>
In case the active element is the one at index 0, the text to look for would be "2".
How can this be accessed?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: cycle gadget

Post by djrikki »

I'd like to know how to get the Content of the active element too as I have yet to work this out.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5915
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: cycle gadget

Post by airsoftsoftwair »

It's not possible to get the contents of a cycle gadget because this isn't supported by MUI.
Post Reply