🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #86

TabbedTextOut... NEED HELP!

#86
From: Chris Sobotkiewicz
Date: Tue, 24 Nov 1998 00:00
22 lines
2030 bytes
        Hello there. I am trying to fix an old program that was written in 
Borland Pascal 7. Here is a short description of my problem. We are printing 
out reports with Windows fonts etc. to a Device Context. In this report, there 
are some lines that have to be formatted into two columns (they are only one 
string though). The only problem is, the fonts aren't truetype, so the spaces 
between them in the ASCII string aren't lining up. Here is kind of what they 
look like on paper:

1. United States        2. Iraq
3. India               3. Egypt
4. Canada              4. Russia

Like that. The columns aren't lined up. I can't figure out how to get them to 
line up. I'm using "TabbedTextOut" to print these out. I've tried adding ASCII 
tabs in the string (#7 in Pascal) but they just get printed out as boxes on 
the paper. "TabbedTextOut" mentions it can be called more than once to print 
to the same line. I've tried separating the ASCII string into two separate 
strings, and printing them both out separately, but only the first one gets 
printed out. Can anybody offer any suggestions? I'd appreciate it. If 
possible, please respond via email to cgsobotk@students.wisc.edu. Thanks much!

        -Chris Sobotkiewicz
Technical Details
Message-ID: <73f3r1$1a0e$1@news.doit.wisc.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10261c,dc1adf7ae9861d99,start
X-Google-Attributes: gid10261c,public
X-Google-Thread: 108ebd,dc1adf7ae9861d99,start
X-Google-Attributes: gid108ebd,public
X-Google-Thread: 108ebe,dc1adf7ae9861d99,start
X-Google-Attributes: gid108ebe,public
X-Google-Thread: 111659,dc1adf7ae9861d99,start
X-Google-Attributes: gid111659,public
From: cgsobotk@students.wisc.edu (Chris Sobotkiewicz)
Subject: TabbedTextOut... NEED HELP!
Date: 1998/11/24
Message-ID: <73f3r1$1a0e$1@news.doit.wisc.edu>
X-Deja-AN: 415272480
Sender: reguser@mack021-064.resnet.wisc.edu
Organization: University of Wisconsin, Madison
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,borland.public.cpp.owl,borland.public.turbopascal