Faking columns in ListBox

BlitzMax Forums/BlitzMax Beginners Area/Faking columns in ListBox

siread(Posted 2006) [#1]
Ideally i'd love to have proper columns in my ListBox but seeing as though that isn't possible i thought i could fake it by using LSet. For instance...

LSet("Rooney",20)+LSet("Man Utd",10)+LSet("Attacker",10)

However, the width of spaces that do the padding is generally smaller than the width of letters, so in the following row the "columns" are all out of line.

Anyone got an idea on how do fake columns in a ListBox?


HCow33(Posted 2006) [#2]
I use stringgrid by Chris Camacho.


Perturbatio(Posted 2006) [#3]
http://www.blitzbasic.com/Community/posts.php?topic=53343#660995


siread(Posted 2006) [#4]
I was hoping for something compatitble with Mac/Linux.


siread(Posted 2006) [#5]
Well, the LSet method actually works fine if you use a font like Courier.

What do you call a font where all characters are the same width? I'd like to look for some more. :)


assari(Posted 2006) [#6]
monospaced font