Page 1 of 2

ListTree Insert brush into string

Posted: Sun Aug 16, 2015 9:13 am
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.

Re: ListTree Insert brush into string

Posted: Wed Aug 19, 2015 8:31 am
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)")

Re: ListTree Insert brush into string

Posted: Thu Aug 20, 2015 5:06 pm
by airsoftsoftwair
Yup, that's a bug. Will be fixed.

Re: ListTree Insert brush into string

Posted: Sat Sep 05, 2015 4:53 pm
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:

Re: ListTree Insert brush into string

Posted: Sun Sep 06, 2015 4:48 pm
by airsoftsoftwair
Check your email.

Re: ListTree Insert brush into string

Posted: Sun Sep 06, 2015 8:48 pm
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?

Re: ListTree Insert brush into string

Posted: Mon Sep 07, 2015 3:04 pm
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.

Re: ListTree Insert brush into string

Posted: Mon Sep 07, 2015 3:33 pm
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

Re: ListTree Insert brush into string

Posted: Mon Sep 07, 2015 3:39 pm
by airsoftsoftwair
Oops, missed it. MUI Royale supports it too, now.

Re: ListTree Insert brush into string

Posted: Mon Sep 07, 2015 7:27 pm
by djrikki
Please send me the latest Beta.