Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering a BMP on _SCREEN
Message
De
08/02/1999 19:25:22
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00185096
Message ID:
00185356
Vues:
22
>I need to center a bitmap image file on the screen. I've used the .Picture property of _screen, but it tiles the image. How do I center it?
>
>TIA
Espero puedas leer spanish,pero igual la formula que cree la vas a interpretar,
esta trabaja en un metodo nuevo del form al cual le pasamos como parametro el nombre del Bmp a ver.

LParameters Nombre_foto


Thisform.Imagen1.Picture = Nombre_foto
*** Formula para centrar la foto
ThisForm.Imagen1.Top = (ThisForm.Height/2) - (ThisForm.Imagen1.Height/2)
ThisForm.Imagen1.Left = (ThisForm.Width/2) - (ThisForm.Imagen1.Width/2)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform