Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MESSAGEBOX Right Align Problem
Message
De
29/09/2005 09:20:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/09/2005 09:06:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01054437
Message ID:
01054449
Vues:
25
>>The reason it doesn't allign correctly is because MessageBox() uses a proportional font - not all letters have the same width, but rather, each letter uses only the space required.
>
>Quick response, Hilmar! But look at the "PadWidth" function, it checks the TXTWIDTH of each character in the string and the pad character, which was supposed to take care of proportional fonts. It doesn't. Why?

Oh - I overlooked that. Perhaps that explains why the output was "somewhat" aligned. But perhaps MessageBox() uses a different font than you expect.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform