Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More VFP8 sloppiness -- Application icon
Message
De
19/05/2003 10:15:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00789660
Message ID:
00789995
Vues:
16
I don't see this. I see the icon in both VFP7 and VFP8 without having to specify it. Maybe it's specific to particular icon files.

Here is a simple code example:
* May need to change following line to point at correct VFP8 home dir
#define ICOFILE "C:\Program Files\Microsoft Visual FoxPro 8\Graphics\Icons\Misc\BULLSEYE.ICO"
erase testxx.exe
erase testxx.pj?
CREATE PROJECT testxx nowait
TEXT TO lcText NOSHOW
*	_screen.Icon = ICOFILE 
	MESSAGEBOX('test')
endtext
DELETE FILE testxx.prg
?STRTOFILE(lcText,'testxx.prg',0)
_vfp.ActiveProject.files.add('testxx.prg')
_vfp.ActiveProject.Icon = ICOFILE 
?_vfp.ActiveProject.Build('testxx.exe',)
_vfp.ActiveProject.close
lcRuncmd ="! /n "+SET("Default")+CURDIR()+'testxx.exe'
&lcRuncmd
return
What does this code do for you?

>>Please see thread #775160. "When I build my app in VFP8 the icon is missing. It shows the windows icon instead of my custom icon."
>>
>>I'm having the same problem. Things definitely worked fine with VFP7. What's the suggested workaround? Thanks.
>
>One workaround I've found is to put the ico file in the project and at startup of the exe, set _screen.icon to that file.
Jim Saunders
Microsoft
This posting is provided “AS IS”, with no warranties, and confers no rights.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform