How print sequence of comma delimited numbers, in ROWS?

new topic     » topic index » view thread      » older message » newer message

In a Win32Lib program, I have two sequences of numbers which have commas between each number, some of which are single digit and some are two digits, and could be more later. I'd like to display the two one above the other in a line, with each corresponding comma in line with one another, so each number is directly above/below the its corresponding number.

I caused the sequences to be modified to have appropriate spaces in front of single digit numbers, in the hope that this would help, but this only helps if I use fixedsys font, which I'd rather not be restricted to.

Example of original sequences:
{"1,2,3,4,5,12,23,24,25,56,"}
{"1,2,3,4,5,4,3,2,1,5,"}

Example of modified sequences:

{"1,2,3,4,5,12,23,24,25,56,"} 
{"1,2,3,4,5, 4, 3, 2, 1, 5,"}   

While the above shows in this forum as I would like it to show, it does not show that way in a proportional font when I wPuts them to a window in my program. How does this forum software cause it to look "right"? Is it using a not proportional font?

I can break longer sequences so as to only print as much as will fit into a line on a window, using getTextExtent(), but I can't yet figure out how to line up the commas.

Any ideas?

Dan

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu