Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding second image
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01450669
Message ID:
01450683
Vues:
71
If you use the same name (oImg) than second image overrides the first. Change oImg to oImg2, for example, for the second image.

>i would like to add a second image to my screen. For the second image i reference it as ldimage and duplicate the code i use below - however what happens is that the first image no longer appears - only the second. Is there a way to include two images?
>
>(btw this is a short version of Sergey's code for adding background image found at)
>http://www.berezniker.com/content/pages/visual-foxpro/add-background-image-vfp-desktop) thanks sergey for that.
>
>
>K
>
>
>lcImage = "C:\pix\mypix1.jpg"
>lcBgType = "TOP"
>IF NOT PEMSTATUS(_Screen, "oImg", 5)
>    _Screen.AddObject("oImg", "Image")
>ENDIF
>WITH _Screen.oImg
>       .Picture = lcImage 
>        .Top  = 85
>        .Left = 100
>        .Stretch = 0
>    .Visible = .T.
>ENDWITH
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform