Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image not displayed in Dev, but does in EXE
Message
From
05/01/2009 22:25:41
 
 
To
05/01/2009 20:15:17
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01371254
Message ID:
01371287
Views:
10
>>>Just that. When running in development (Main.prg), on the form the image (Picture) just shows the placeholder X, but when the EXE is built, it displays the correct image. The image is included in the project.
>>
>>How exactly the property is set? Using the direct path or = ? You can use direct path, it should not matter.
>
>Since the image is included in the project, it is just this:
>
>FaceProfile.jpg
>
Here's my guess.....

You are adding the image to the form via code (ADDOBJECT/NEWOBJECT) and setting the properties manually rather than dropping an image control in the form builder.

You just put the filename without a path in the Picture property

There is no such file in VFP's SET PATH

Thus when you run the prg in development mode, the picture can't be found. When you run in production the picture is found because it is compiled directly into the EXE.


Just a guess. Hope it helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform