1. Fixed Width characters
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.
Recently David Cuny, in response to a question, mention 'fixed width' characters
> If you are using fixed width characters to print, you can use this routine
> to
> convert tabs into spaces:. ...
I suspect that this may also be the problem I'm having. The font in use is
Courier 10 pt. via
setFont(Win,"Courier",10,1)
Can someone tell me the names of a few fixed width fonts, so I can try them?
Thanks.
Regards,
Jim
2. Re: Fixed Width characters
Bernie,
Thanks for explanation. Gives me a new path to research.
Regards,
Jim
Bernie wrote:
> 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
3. Re: Fixed Width characters
David,
Thanks for responding.
Sounds like your "List with multiple columns " is exactly what I need.
Your answer implies that the above might be available if the List view
has been 'wrapped'. Being pretty much brand-spanking new to Windows
programming, I'm afraid I don't know what that means. I've seen references
in messages on the list to 'wrappers' and 'wrapping', but, not a clue.
I'll keep looking through Win32Lib.ew for any references to columns
within references to Lists.
Regards,
Jim
David Cuny wrote:
> Jim wrote:
>
> > I'm having a problem with the display of
> > data in a list box (Win32Lib).
>
> In this case, I think you might want to consider using a different control.
> Has the List view been wrapped? If I remember correctly, it allows the
> creation of a list with multiple columns.
> -- David Cuny
4. Re: Fixed Width characters
Jim,
Newer versions of Win32Lib do have the ListView control provided.
The last "stamped" version of Win32Lib ( I think that's v 0.45r) doesn't
have the "ListView" control (which provides for multiple columns in the list
box) "wrapped" yet (ie, there isn't a routine in it which allows
programmatic access via Euphoria to some windows feature normally accessed
by "C" language processes); but versions 0.50 + *do* have the "ListView"
control available, though they *aren't* "stamped".
(Stamped means that the line count in the stamped routines doesn't count
toward the 300 line code limit for providing error messages in the
non-registered version of Euphoria.)
One Win32Lib version which I'm pretty sure has the ListView control in it is
available in the RDS web site in the "recent contributors" section,
http://www.rapideuphoria.com/contrib.htm
look for "New Win32Lib";
other more recent "bleeding edge" versions can be found at the SourceForge
site where further Win32Lib development is being done:
http://sourceforge.net/projects/win32libex/
Hope this helps you.
Dan Moyer
----- Original Message -----
From: "Jim" <futures8 at PCOLA.GULF.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, November 12, 2000 8:28 AM
Subject: Re: Fixed Width characters
> David,
>
> Thanks for responding.
>
> Sounds like your "List with multiple columns " is exactly what I need.
> Your answer implies that the above might be available if the List view
> has been 'wrapped'. Being pretty much brand-spanking new to Windows
> programming, I'm afraid I don't know what that means. I've seen references
> in messages on the list to 'wrappers' and 'wrapping', but, not a clue.
>
> I'll keep looking through Win32Lib.ew for any references to columns
> within references to Lists.
>
> Regards,
>
> Jim
>
>
> David Cuny wrote:
>
> > Jim wrote:
> >
> > > I'm having a problem with the display of
> > > data in a list box (Win32Lib).
> >
> > In this case, I think you might want to consider using a different
control.
> > Has the List view been wrapped? If I remember correctly, it allows the
> > creation of a list with multiple columns.
>
> > -- David Cuny