Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximize window when running .exe
Message
De
11/08/1998 09:26:20
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00125395
Message ID:
00125548
Vues:
27
>>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
Fil
Voir

Click here to load this message in the networking platform