Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Justify text...both margins??
Message
From
30/03/2007 10:27:41
 
 
To
30/03/2007 10:20:48
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00285973
Message ID:
01210346
Views:
17
>>Imho, this thing (justification) could be done without GdiPlus, by using FontMetric(), TxtWidth() functions only. I made some simple test this morning and it seems to work for editbox, so it could work for reports too.
>
>Yep !
>There are always many ways to skin a fox !
>
>I don't know why, but TXTWIDTH() and FONTMETRIC(6) don't seem to be very accurate. I've already tried this sometime ago, and the results were not as perfect as I got with GDI+.
>
>Did you obtain a satisfactory result with TXTWIDTH() and big sentences ? MAybe for the case of editboxes, this can be a good solution.

I just wrote 2 simple methods processing long sentences and got a nice result for an editbox. It is very raw so far. If I ever get customer request to do it, I could work more on this. I guess that in case of report it may get some inconsistencies, though cannot say how big without testing.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform