For years now, I've been adding items to multiple ListIconGadget columns using "+#LF$+", which is a royal pain the butt to type, especially when my ListIconGadget has over 200 hard-coded items with descriptions in it.
It also meant whenever I accidentally deleted a quote, the text in the descriptions would convert to PureBasic syntax ("and" became "And", etc) which I then had to go and manually correct. Basically, it wasn't an enjoyable typing experience.
Code: Select all
AddGadgetItem(gad,-1,"Column1"+#LF$+"Column2"+#LF$+"Column3") ; Yuck!
Code: Select all
AddGadgetItem(gad,-1,~"Column1\nColumn2\nColumn3") ; Awesome!
Hope this helps somebody else! Time to search/replace all my sources.
[Edit] Just watch out that if any column text contains a backslash (like C:\Test.txt) then you'll need to convert it to double-backslashes to stay valid (C:\\Test.txt).