Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center form's caption
Message
De
06/04/2000 14:35:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00356420
Message ID:
00356428
Vues:
19
>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?


Nadya,
Caption font and size changes by installation. You should first read its setting. Assuming it's Arial,12 you could do something like this :
*form.init
this.caption = ;
  padc(this.caption,;
  (WCOLS( )-;
  TXTWIDTH(this.caption,'Arial',12)*;
  FONTMETRIC(6,'Arial',12)/FONTMETRIC(6)))
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform