Thanks Max, but this is from a Dos app so I don't have api or canvas
functions to measure text lengths etc.
I think I'll just flip from proportional to fixed font to do the numbers.
Steve
> -----Original Message-----
> From: Max Renshaw-Fox [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 4 May 2000 23:20
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: decimal-aligned text
>
>
> 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
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz