Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using images
Message
 
To
19/04/2004 15:58:33
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
00896259
Message ID:
00901453
Views:
21
Hi Michel,
>This is the first time I use images in the menu within an EXE. I just found >that if I have the Picture item having a File value >of "d:\main\images\new.gif" in my development environment that it won't be >able to find that file within an EXE. When I run the EXE, it gives me an >error that the file or path is not found. How should I manage that so it >will run ok within an EXE?

>For example, I have that value in my menu for Picture, File:


>d:\main\images\new.gif
>The Menu MPR file gives this:


>DEFINE BAR 1 OF gcfile PROMPT "&gcNew" ;
> SKIP FOR NOT oApp.oToolBar.cmdNew.Enabled ;
> PICTURE "..\..\main\images\new.gif"
>So, it tries to make it relative but within an EXE, this doesn't work.

I'm using also images on my Menus and I dont have problem even I modified them.

The Trick is, you have to recompile Project and tick compile all files..
when you check your menu=>Options=>picture, it will show you that the image file is under the resource option button. The path like below.....

..\..\graphics\sql_server.bmp

Hope it will help you!!


God Bless!


Best Regards,


Jojo R. dela Cuesta
Dalplus Technologies
http://www.dalplus.com
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform