Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I center a .Picture on my _SCREEN?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174015
Message ID:
00174023
Views:
62
>I want an image to display as a backdrop to my app but when assigning it to _SCREEN.Picture it gets stuck in the upper left corner of my screen.
>
>How do I center it?
>
>(This must be easy for SOMEBODY...)
>
>Thanx,
>Joe
With _screen.myimage
  .left = int( (_screen.Width - .width ) / 2 )
  .top  = int( (_screen.Height - .height ) / 2 )
Endwith
Previous
Reply
Map
View

Click here to load this message in the networking platform