|
-
Dec 3rd, 2002, 03:55 AM
#1
Thread Starter
Lively Member
*Resolved* shrinking text inside a fixed size label :(
Hi All,
I'm wanting to do something a bit different and shrink the text within a fixed size label.
I'm using the following code to shrink the text (using ARIAL 72 point initially), but it only works when I've printed something first.
Otherwise it doesn't work at all.
Even if something has been printed, it isn't exactly perfect.
The problem is really bad when there are spaces in the text.
Perhaps a way without using the printer??
Can someone help.
Regards
Chris B
--------------------------------------------------------------------------
shrinktry = 100
While Printer.TextWidth(TextData(Y).Caption) > TextData(Y).Width And shrinktry > 0
Printer.Font.Size = Round(Printer.Font.Size) - 1
shrinktry = shrinktry - 1
Wend
Last edited by cboffsite; Dec 3rd, 2002 at 05:04 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|