Hi!
You definitely CAN do that, but it will take much of time. Do you really need this with non-proportional font? set it to proportional and your problem will went away. Otherwise, you will require to find a character in the font that have the same width as a digit in a number, or 2 such characters have such width. Than using List[RowNumber, 2] replace all spaces with that character(s) so digits will look like aligned. This also could not be done with all fonts, if could be done at all. Do replacing of spaces after each requery, in the requery event:
ListBox::Requery
for i = 1 to this.ListCount
this.List[i,2] = strtran(this.List[i,2],' ',chr(MyCharacterCode))
endfor
nodefault
That special character, of course, should be as empty as possible ;-)
I did not do that way, I used proportional font always.
Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs