ListTree

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

ListTree

Post by djrikki »

For a new project I am using ListTree for the first time and I am trying to embed some rather complicated information with the userdata property of a line item for later extraction.

Code: Select all

        <item id="hgroup-button1" userdata="button1;Button%201;b;0;A%20button;b;0;0">A Button</item>
However, using Listtree.GetEntry the resulting Table does not return the userdata property.

Please, I do hope this can be fixed/implemented sooner rather than later so I may continue with my exciting new project.

PS. A generic question regarding the Userdata property - is it possible to store Binary information in it or is purely a string of characters only?
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: ListTree

Post by airsoftsoftwair »

However, using Listtree.GetEntry the resulting Table does not return the userdata property. Please, I do hope this can be fixed/implemented sooner rather than later so I may continue with my exciting new project.
Who says that Listtree.GetEntry() is to return the userdata property? You have to use Notify.UserData for that, see here:
http://www.hollywood-mal.com/docs/html/ ... rData.html
PS. A generic question regarding the Userdata property - is it possible to store Binary information in it or is purely a string of characters only?
When setting userdata as part of the XML tag you are only allowed to associate a character string with the userdata field. When using mui.Set(), however, you may associate random data with the property (tables, functions, binary strings...) Once again, see here:
http://www.hollywood-mal.com/docs/html/ ... rData.html
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ListTree

Post by djrikki »

Doh now I feel stupid!

Cool am glad User data can contain mixed data will make life much easier.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply