>>>Secondly, is there a way to put a 'splash' screen or background in my main program window? I'm not sure exactly what they're called, but I remember a friend's app had a graphic as a background for the program window instead of the standard blank white. Ok, so I thought it looked neat ;)!
>>>
>>_SCREEN.Backcolor=...
>>_SCREEN.Picture=...
>>and other _screen properties. Also, you can create 'splash' screen (separate form) to be shown on start.
>
>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
_________________________________
There are 2 types of people in the world: