Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I center a .Picture on my _SCREEN?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00174015
Message ID:
00174067
Vues:
27
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform