Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center form's caption
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00356420
Message ID:
00356478
Vues:
15
Put a label on your form and set its visible property to false.

ThisForm.InvisibleLabel.Caption = 'Table Maintenance for ' + proper(pcTable)

Now you can use the width property of the label and subtract it from the width of the form. Divide that by 2 times the width of a space. Then padl() the caption with that number of spaces.

>Hi everyone,
>
>Simple problem: I want to center caption of my form, so I tried:
>
>
>this.caption=padc('Table Maintenance for '+proper(pcTable),this.width)
>
>Didn't work.
>
>What should I do?
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform