Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox: alignment of columns
Message
From
15/04/2003 15:49:06
 
 
To
15/04/2003 09:44:58
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00777692
Message ID:
00778004
Views:
12
>Hello,
>
>I tried to set the alignment of columns for listboxes, but without success.
>Maybe there is a way to do this? A row contains the name and amount for example, and the amounts should be aligned to the right.
>
>I want to use Arial font, because in times past I used to do this with Courier and PADL function, but that's not what we would like to do now.
>
>Any ideas? Thanks for your help in advance.

Yuri is correct, you can't do it with proportional fonts. While you can specify individual column widths, there is no mechanism to specify the justification for any column. You must use a fixed width font if you want numbers to line up, and even then it's only if you PADL() the converted numeric value to a string.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform