Re: Get TreeGadget full path suggestion
Posted: Sun Jun 18, 2023 10:01 pm
Perhaps for instance #LF$ is a good choice as separator, since this character is rather unlikely to appear in an item of the TreeGadget().
http://www.purebasic.com
https://www.purebasic.fr/english/
So it's similar to the separate fields of a ListIconGadget(). Then the user can do "ReplaceString(string$,#LF$,custom$)" if they like.BarryG wrote: Sun Jun 18, 2023 1:55 ama new command could use #LF$ to be consistent with other commands
Code: Select all
; NEW
; #PB_Tree_Separator .. #LS (10) (because Value is Int )
;
; GetGadgetAttribute(Gadget, Attribute)
; SetGadgetAttribute(Gadget, Attribute, Value)
; possible usage
SetGadgetAttribute(#GADGET_Tree, #PB_Tree_Separator, #LS) ; or '|' or $205E ...