Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Icon in forms upper left corner does not show
Message
From
21/09/2006 05:15:51
 
 
To
21/09/2006 04:49:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01155550
Message ID:
01155838
Views:
22
Peter

I could only assume that you've hard-code in the path to the icon. So, when you run the exe, presumably there's some s/w that dynamically assesses the user's paths (which may well not be at all like those in your dev system), and can't find it. Also your init. s/w may well set up the user's paths. Hence, FULLPATH() would find the icon if it's somewhere installed on the user's sys, in the spec. path.

Now I also said have you included the icon in your proj., so it gets "burnt" into the exe.

Just some considerations and may well not apply to you.

Terry

>Terry,
>
>Thank's for taking the trouble, but I don't get it.
>>
>>Peter, I always put = FULLPATH("MyIcon.ico")
>
>What does that do for me?
>
>From help:
>
>"If the file is located in the Visual FoxPro path, the path is returned with the file name. You can specify the Visual FoxPro path using the SET PATH command.
>
>If the file cannot be located in the Visual FoxPro path, FULLPATH( ) returns the current directory the path and file name as if the file was located in the current default directory."
>
>So the programs development dir is, let's say H:\MyDir, with a subdirectory for icons & other graphics stuff let's call it Graphics.
>
>In the Graphics dir we now place MyIcon.ico.
>
>But once the program is installed in F:\SomeOtherDir - doesn't the whole thing fall apart?
>
>>
>>Is the icon file included with the project? - that helps
>>
>
>Yes it is, and no it does not seem to help.
>
>BR
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform