Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Justify text...both margins??
Message
De
02/04/2007 10:27:54
 
 
À
02/04/2007 10:24:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00285973
Message ID:
01211271
Vues:
17
Ok !

I can compare your routine with the one that I created for GDI+, and see if I can improve your and my routines.

Regards

Cesar

>Cesar, I spent about 30 minutes writing it in haste, and I would be ashamed to see it posted under my name. If you want I could send it to you through private message, if you don't mind to look at amateurish notes and debug it.
>
>>Cool Edward,
>>
>>Can you share your code ?
>>I think it would be great to provide some other options to people.
>>
>>If you agree, I can publish there at the same blog post with your credits
>>:-)
>>
>>TIA
>>
>>Cesar
>>
>>
>>>>>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 tried for a report field now. It's not so nice as for editbox, but still much better than regular report field.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform