In a couple of direct print things I did a while ago I just got the length
of the text from a canvas and positioned based on that. It worked OK - the
code was dead simple.
Max
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Stephen Barker
Sent: Thursday, 4 May 2000 02:30
To: Multiple recipients of list delphi
Subject: [DUG]: decimal-aligned text
Does anyone have any code (pascal, c, whatever) that right-aligns text or
preferably
decimal-aligns numbers when using proportional fonts?
I can't use Win api for this - I need actual code example as it's for an old
Dos application printing using HPGL.
ta,
Steve.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz