Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picture path
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00188107
Message ID:
00188109
Vues:
23
>Hello
>
>Sorry for so basic a question, but I'm interested in your opinion.
>
>I wanna set a picture onto a command button.
>
>I use... its picture property!
>
>But this property only admits the name of a .BMP file with its relative/absolute path. I'm unable to write only the file name, even with a PATH SETting to the location of this picture.
>
>Then I can i.e. create a sub directory of my default directory dedicated to graphics.
>
>Yet, I'd rather use a built-in-the-EXE graphic file.
>
>How can I include the .BMP into my .EXE and use it, and how can i avoid to create a 'graphics' subdirectory?
>
>May I expect that the commandbutton will load the .BMP from the .EXE if it doesn't find any 'graphics' subdirectory? But I would be surprised of such a behaviour when The picture path is hard-coded.
>
>An answer?
>
>Regards
>
>Philippe

Philippe,

yes, the picture path is hardcoded in Picture property. The common approach is to have , say, BMPS directory where you store your pictures for the project. Your pictures should be included in your project under Project Manager /Other/Other files.
When you compile the EXE the pictures will be included there (unless you mark them as "Excluded" in the project), so there is no need to distribute them separately with the whole BMPS directory. Your commandbutton will find the picture in EXE.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform