General information
Category:
Coding, syntax & commands
>>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only