Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically center an image control..
Message
From
10/01/2007 09:10:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01182600
Message ID:
01184155
Views:
19
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform