Information générale
Catégorie:
Contrôles ActiveX en VFP
>>>Hi Steve.
>>>
>>>>It typically is OK in dev mode. So what you are implying here is that LoadPicture() cannot properly translate the path to a graphic.
>>>
>>>No, the problem is a bug in LOADPICTURE(): if the graphic file is built into the EXE, LOADPICTURE() gives an error. You have to remove them from the project (or mark them as excluded) and ship them as separate files along with the EXE.
>>>
>>>Doug
>>
>>Thanks much Doug and Jose.
>>
>>Steve
>
>When you say ship do you mean that have to be in the root directory of the application/exe inorder for the LOADPICTURE() to find them, or can you path them some how to say a graphics subdirectory.
One item in the array was a path to the graphic and it still couldn't find it properly. Doug Hennig indicated that there was a bug in LoadPicture(). The graphics are currently included in the project and I haven't removed them yet and tested that in just the root. I'm going to try George Tasker's suggestion also as soon as I get the rest of it stabilized. For now, I've simply included the images in the imagelist control but clearly we desire the ability to have something else indicate what images should go there.
Thanks,
Steve
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement