1. Re: Fixed Width characters
On Sat, 11 Nov 2000 14:03:14 -0500, Jim <futures8 at PCOLA.GULF.NET> wrote:
>I'm having a problem with the display of data in a list box (Win32Lib).
The data is imported from a DOS .txt file, in
>which the data is correctly aligned in columns. When the data is imported
(intact except the the trailing line-feed),
>its display within the list box is not aligned well, but appears ragged.
>
Jim:
The complication involed in using DOS FIXED fonts is they are
displayed in DOS as so many pixel wide and so many pixels high
ie 8x8.
When text is displayed in windows in a dialog box
the text is based on DIALOG UNITS because any dialog can be
resized so the number of pixels used to display text is changed
when ever the dialog is resized. The TABs and spaces are also based
on DIALOG UNITS. So your program code has to convert the tabs
or spaces to allow for this when moving from DOS to WINDOWS.
I'am sure one of the windows grus can explain how to do this.
Bernie