ListTree Insert brush into string

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

ListTree Insert brush into string

Post by djrikki »

Hello,

For the life of me I cannot seem to get a brush e.g. \27A[123] to appear alongside text during runtime operation.

And if I try to amend and rename an item on a listtree with a new icon I just a DSI on LIB_MUIP_TextDimA which is disheartening.
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: ListTree Insert brush into string

Post by djrikki »

The ListTree.Rename method doesn't work either, in fact I got a DSI by trying to rename a element of the tree with a new brush as part of the name. This functionality is definitely missing/flaky.

Code: Select all

        ; obj.brushid is a number of a brush already loaded
	mui.DoMethod("winlayout-" .. mui.Get("evo_window-pages","activepage"),"rename","active","\27A[" .. obj.brushid .. "] " .. obj.name .. " \27u\27P[777777](TOOLBARBUTTON)")
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 Insert brush into string

Post by airsoftsoftwair »

Yup, that's a bug. Will be fixed.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ListTree Insert brush into string

Post by djrikki »

Please do let me know when you have a Beta ready for testing, I am Inserting and Renaming icons extensively now and ignoring DSIs on every launch is becoming a chore :lol:
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 Insert brush into string

Post by airsoftsoftwair »

Check your email.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ListTree Insert brush into string

Post by djrikki »

Thanks all working good so far, as can be seen by this dynamic listtree.

Image

Something else I've noticed, if I use "Close", "All" and "Open", "All" against the "root" to stimulate a Fold All and Unfold All against the tree structure it can seem a little glitchy, I would suggest that you tinker by creating a long tree yourself. Furthermore, do you remember the .Quiet you added to ListViews sometime ago? Is there also one available for ListTrees as well?
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 Insert brush into string

Post by airsoftsoftwair »

No, Listtree doesn't support a "Quiet" attribute. Please file an enhancement request at http://muidev.de

Btw, you might want to use the new Listtree.MinLineHeight attribute to set a minimum line height for your listtree object because currently some icons are cut off at the bottom. If you set Listtree.MinLineHeight to 24 or something, the icons should always be fully visible.
User avatar
tboeckel
Posts: 38
Joined: Fri Jun 06, 2014 6:17 am
Location: Germany

Re: ListTree Insert brush into string

Post by tboeckel »

airsoftsoftwair wrote:No, Listtree doesn't support a "Quiet" attribute. Please file an enhancement request at http://muidev.de
Wrong. MUIA_Listtree_Quiet has existed since ages already. See yourself in mui/Listtree_mcc.h:

Code: Select all

#define MUIA_Listtree_Quiet                0x8002000a
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ListTree Insert brush into string

Post by airsoftsoftwair »

Oops, missed it. MUI Royale supports it too, now.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: ListTree Insert brush into string

Post by djrikki »

Please send me the latest Beta.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Post Reply