[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: your mail
Steve,
The short answer is "there's no easy way". SQR doesn't "know"
anything about the widths of characters in proportional fonts,
so it doesn't support centering, wrapping, or right justifying
which requires knowledge of individual character widths.
For more background on the topic, search the archives for
"proportional font" at:
http://www.sqrug.com/sqr-users/
If you MUST do it, there are a few routines that I and others
have written that do some of what you want (wrapping and truncation,
in particular). You may be able to adapt them. One is on the library
pages at www.sqrug.com, the other is at:
http://www.ontko.com/sqr/hp.html
Ray
> Hello,
>
> Has anyone had any luck right-justifying a column of
> text using a proportional font? My users want to see a
> report formatted as follows:
>
> ORDER: 12345
> LINE NO: 2
> ORDER DATE: 04/01/2000
>
> where the end of the labels line up. Unfortunately, I
> haven't been able to accomplish this using a
> proportional font (which, of course, is what they want
> to use for the report).
>
> I am using SQR version 4.3.2.1.
>
> Thanks in advance,
> Steve Greenwood
>
----------------------------------------------------------------------
Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/
- References:
- [no subject]
- From: Steve Greenwood <SteveGreenwood@WORLDNET.ATT.NET>