Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label centering
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00429026
Message ID:
00429048
Vues:
20
Hi!

Vertical centering by 'easy way' is available in grid column only.

In your case you may make special container control with label inside and calculate TOP property of label to center label control inside of grid. Than make label auto-size with word wrap and reposition label each time caption changed or form refreshed. Caption_Assign method of label might be useful here when you need to make such conrol as class.

>There's a property to center a label horizontally, but doesn't seem to be one to center it vertically. Is there a simple way to do that? I'm sure I can find a way by padding spaces in front of it, but since I'm doing this at run time and won't know at design time the height of the labels, I was hoping there was a simple way.
>
>Thanks,
>
>Michelle
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform