Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Center an Image
Message
From
23/09/2008 10:34:06
 
 
To
23/09/2008 10:20:22
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01349830
Message ID:
01349835
Views:
15
Hi Jay,

In case your image obj has the form itself as parent, in image.init you could place code like this:


This.Left = (This.Parent.Width - This.Width) / 2
This.Top = (This.Parent.Height - This.Height) / 2
This.Anchor = 768


>How do I center an image on a form? I did not see a property for that.
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Reply
Map
View

Click here to load this message in the networking platform