PopList Userdata

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

PopList Userdata

Post by djrikki »

Hello,

Code: Select all

<poplist id="exampleid">
   <item userdata="123">Number</item>
   <item userdata="ABC">String</item>
   <Item userdata="123ABC">Alphanumerical</item>
</poplist>
I've tried the above, but been unable to .Get userdata when an item is selected and populated into .Contents. I am assuming that PopList was never meant to work this way. In the context that I am trying to make use of this gadget it does kind of render it useless - I do need to be able to do different things depending on what is selected from the list.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: PopList Userdata

Post by airsoftsoftwair »

Poplist derives from Listview class which doesn't support userdata for the individual items either. The only class which actually supports this is Listtree class. All other List classes don't support this because the individual items aren't addressed through an id but through a numeric index (0, 1, 2...).
Post Reply