Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Center form's caption
Message
From
06/04/2000 14:35:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00356420
Message ID:
00356428
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform