Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically center an image control..
Message
De
10/01/2007 09:10:42
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01182600
Message ID:
01184155
Vues:
20
I was actually working with the same code as you posted. The idea mainly is to multiply the number of controls with 75, then get the distance, that is number of controls minus 1 multiplied by the distance 200.

The result of this is subtracted from the form's width. Then divided by 2.

But the starting point of the first image control is not right. Giving me the value 337, when it should be 275.

I got 275 by manually centering the controls horizontally using that in the layout toolbar.

Could the error be because of the form's width?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform