Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture path
Message
From
16/02/1999 16:01:59
Rene De Montbrun
Customer Contact Inc.
Toronto, Ontario, Canada
 
 
To
16/02/1999 15:30:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00188107
Message ID:
00188117
Views:
37
>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

Hi Philipe,

The relative/absolute pathname of the graphic file is used at design time so that the compiler can locate it and include it in your EXE. When you create a project and use graphic files they are INCLUDED automatically into your project. When you compile your project the files are bound to your EXE. This way when you distribute your EXE you won't have to distribute any graphic files unless you explicitly EXCLUDE them from your project.
Rene de Montbrun
Toronto
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform