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:
00174067
Views:
26
Joe,

You may need to use the fullpath() of the bmp. Also if you experience holes being left on your screen for a short time while dragging your forms you should just do a ?? ""

>Is there something missing here?
>This code doesn't appear to reference an actual image file.
>I am no longer setting _SCREEN.PICTURE, but the following code is STILL leaving the image plastered in the upper left corner
>
>._screen.addobject("MyImage", "Image")
>WITH _SCREEN.myimage
> .picture = "BMPS\Lw2000.Bmp"
> .left = int( (_screen.Width - .width ) / 2 )
> .top = int( (_screen.Height - .height ) / 2 )
> .visible = .t.
>ENDWITH
>
>What am I doing wrong?
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