Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wizard bitmap problem
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00444981
Message ID:
00445197
Views:
16
Hi Mike,
Thanks. I think I found the reason of why my picture on some buttons can't shown up.
The picture property of all buttons is =HOME()+"WIZARDS\WIZBMPS\WZXXX.BMP"
When I run my form in VFP, the home() = "D:\VFP5\" which is my VFP's directory, so everything works fine.
But when I run the exe file, the home() becomes to "c:\windows\system" so those picture's path is wrong. I still don't know why the New and Edit buttons don't have this problem though their pictures is =HOME()+"WIZARDS\WIZBMPS\WZXXX.BMP"
I have searched the help file and options, can't find any hint why the home() changed in the exe file and how can I set it to the correct path. Do you have any hint?

>>Um....but I run the program in the same machine. Even I tried the following, >it still can't show the pictures of most buttons.
>>1. Copied those bitmap to the same directory of the program.
>>2. add the path of those bitmap in the search path in the "File Location" tab >in the Options.
>>The strangest thing I feel is that the bitmap of New and Edit can be shown, >others can't. And when I run the form in VFP, it can, but when I run its exe, >it can't.
>>Thanks for help.
>If you are using the Wizard for your form you have to go check to parent of the navigation bar (wizstyle-> txtbtns-> setcaption. Thats where the pictures on the buttons are set depending if your in edit or not.
Power Wong
Every problem will have a solution, the only problem is that can you find it out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform