Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering date and time in form
Message
De
16/02/2009 05:03:05
 
 
À
15/02/2009 22:19:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01382012
Message ID:
01382032
Vues:
61
>>thisform.time1.caption=time()
>>thisform.date1.caption=mdy(date())
>>thisform.dayweek.caption=cdow(date())

>>How do I center these programatically?

Horizontally:
THISFORM.date1.left=(THISFORM.Width-THISFORM.date1.width)/2
* you would aldo need to have you text aligned centrally, IE. .alignment=2

Vertically;
THISFORM.date1.top=(THISFORM.Height-THISFORM.date1.height)/2



Gary.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform