How to show tabulators in ListIconGadgets?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Michael Vogel
Addict
Addict
Posts: 2819
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

How to show tabulators in ListIconGadgets?

Post 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$,"      "))
Axolotl
Addict
Addict
Posts: 873
Joined: Wed Dec 31, 2008 3:36 pm

Re: How to show tabulators in ListIconGadgets?

Post 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.
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).
Post Reply