Page 1 of 1
cycle gadget
Posted: Mon Jan 12, 2015 12:48 pm
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?
Re: cycle gadget
Posted: Wed Jan 14, 2015 8:45 am
by djrikki
Yes, have a look at mui.CreateObject.
Re: cycle gadget
Posted: Tue Feb 03, 2015 3:18 pm
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?
Re: cycle gadget
Posted: Tue Feb 03, 2015 9:43 pm
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.
Re: cycle gadget
Posted: Sun Feb 08, 2015 11:06 am
by airsoftsoftwair
It's not possible to get the contents of a cycle gadget because this isn't supported by MUI.