Get TreeGadget full path suggestion
-
- Addict
- Posts: 4778
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Re: Get TreeGadget full path suggestion
Perhaps for instance #LF$ is a good choice as separator, since this character is rather unlikely to appear in an item of the TreeGadget().
Re: Get TreeGadget full path suggestion
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
Re: Get TreeGadget full path suggestion
It would be good to have a custom separator.
Re: Get TreeGadget full path suggestion
Why not implement the well known procedures together with a new constant like
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 ...
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
Re: Get TreeGadget full path suggestion
#PS$ #LS
#PS$ if #PB_Tree_Separator is present
AutoIt3 has global options without being tied to a gadget. For example Opt(#PB_Tree_Separator, #PS)
#PS$ if #PB_Tree_Separator is present
AutoIt3 has global options without being tied to a gadget. For example Opt(#PB_Tree_Separator, #PS)