Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image not displayed in Dev, but does in EXE
Message
De
05/01/2009 22:25:41
 
 
À
05/01/2009 20:15:17
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01371254
Message ID:
01371287
Vues:
11
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform