Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Centering a BMP on _SCREEN
Message
From
08/02/1999 19:25:22
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00185096
Message ID:
00185356
Views:
23
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform