Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I center a .Picture on my _SCREEN?
Message
De
08/01/1999 10:29:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00174015
Message ID:
00174019
Vues:
56
>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

You can add image object to _SCREEN and then center it:
_screen.addobject("MyImage","Image")
_screen.myimage.left=(_screen.width-_screen.myimage.width)/2
_screen.myimage.top=(_screen.height-_screen.myimage.height)/2
_screen.myimage.visible=.t.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform