Information générale
Catégorie:
Codage, syntaxe et commandes
>>Edward,
>>
>>I tried using the _SCREEN.Picture= command but it's not working. I tried
>>_SCREEN.Picture=beverage.bmp
>>and added the beverage.bmp file to my project, and put it in both the directory containing my project and my c:\vfp directory, but I'm getting "'Beverage' variable not found" error when I run my .exe. Any idea why?
>>
>>MTIA!
>>Mandy
>
>Mandy,
>
>The picture property is expecting a character value. Change it to this:
>
>_Screen.Picture = 'beverage.bmp'
>
>That will do it. But, note that this will tile the bmp. If you want to center the picture or stretch it to make it fill the screen, use the following method:
>
>_Screen.AddObject('backimage','image')
>With _Screen.BackImage
> .Picture = 'beverage.bmp'
> .Left = (_Screen.Width - .Width) / 2
> .Top = (_Screen.Top - .Height) / 2
> .Visible = .t.
>EndWith
>
>HTH
Worked like a charm! Thanks to you both (I knew it had to something really simple! ;)...).
Mandy
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement