Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to center a 640 x 480 image regardless of resolution
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00065145
Message ID:
00065153
Views:
30
Larry,

_screen.AddObject( "imgTheImage", "image" )
with _screen.imgTheImage
   .Picture = <imagefile>
   .Left = ( _screen.Width - .Width ) / 2
   .Top = ( _screen.Height - .Height ) / 2
   .Visible = .t.
   ? "" && so moving windows around doesn't cause blank image fill delays
endwith


>I'm trying to center a 640 x 480 image
>regardless of resolution.
>
>The image is not on a form, I'm doing "@ 0,0 say bitmap"
>I think I'll need to adjust the row, column based on a calculation using
>SYSMETRIC(1) and (2).
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform