Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximize window when running .exe
Message
From
11/08/1998 09:26:20
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00125395
Message ID:
00125548
Views:
25
>>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
Map
View

Click here to load this message in the networking platform