Page 1 of 1

How to show tabulators in ListIconGadgets?

Posted: Sat Apr 20, 2024 10:01 am
by Michael Vogel
I was wondering if there's a flag for ListIconGadgets to allow showing tabulators within a text - I didn't find any hint here so far...

...for example, the following code just shows "**" with no space between the asterisks:

Code: Select all

SetGadgetItemText(#ListSource,-1,"*"+#TAB+"*")
...actually I do something like this to replace the tabulators by some spaces (which slows down everything a little bit):

Code: Select all

SetGadgetItemText(#ListSource,n,Str(n)+#LF$+ReplaceString(text.s,#TAB$,"      "))

Re: How to show tabulators in ListIconGadgets?

Posted: Sun Apr 21, 2024 4:16 pm
by Axolotl
I only know the LB_SETTABSTOPS and EM_SETTABSTOPS messages.

First message sets the tab-stop positions in a list box.
Second message sets the tab stops in a multiline edit control.

So, IMHO you have to do this as you did it or with LVS_OWNERDRAWFIXED on List-View Controls.