Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stretching a background pic
Message
 
À
16/09/2003 11:18:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00829425
Message ID:
00829871
Vues:
21
I have another question....

when I use the code, the image stretches to the whole screen demension, irregardless if I have a small FoxPro startup screen (about half-screen size.... you can only see part of the image.).

Is the Sysmetric command getting the size of the Windows Screen and returning that value?

Would Sysmetric(3) and (4) return the startup screen?

Also..........

I've tried to get the image to disappear upon ending the application and returning to the FoxPro Development Environment.... but no go. How do you get rid of it?

Thanks!

>Hi Tommy,
>
>Don't use the picture property. Add an image object instead. Its stretch property allows it to do what you want
>
>
WITH _Screen
>  .AddObject( "MyImage", "Image" )
>  .MyImage.Picture = "MyPicture.bmp"
>  .MyIMage.Stretch = 2
>  .MyImage.Width = Sysmetric(1)
>  .MyImage.Height = Sysmetric(2)
>  .MyImage.Visible = .T.
>ENDIWTH
>
>pamela
>
>>I have a background pic I wish to use for the main FoxPro form using the _screen.picture property.
>>
>>Is there a property that also allows it to stretch the pic instead of tiling it?
>>
>>Thanks!
Tommy Tillman A+ NetWork+ MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform