Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Put form's caption into the center of the title bar
Message
De
22/02/2007 13:52:07
 
 
À
22/02/2007 13:39:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01198086
Message ID:
01198089
Vues:
8
>Hi all
>I want to centerlize my form caption.
>I got very huge strange by the following command:
>
thisform.caption=space((thisform.width/2)-len(thisform.caption)/2)+thisform.caption
>Help please...

The width is measured in pixels (assumning default ScaleMode property). You could probably use FontMetric to calculate the required number of spaces based on the number of pixels
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform