I compiled an application with C++ Builder 6 but the back color of the main menu is white when running it in Windows XP. How can I solve this problem? Thanks.
This is a windows xp quirk.
Depending on the color scheme that you select, you appear to recieve different color pallets. For example the colors will be different depending on whether you select the default green, blue or silver themes.
I'm not sure why this is, the colors return to normal iff you select the classic theme.
Could by chance the colors be changed in the window's appearances contols. If i am correct, that could cause the colors to change, but i would think it would have affects elsewhere too...
1. You can write a manifest for your app so that all its controls will have proper look, if a theme in the system is applied. If not all controls will have default look. The mainfest will be:
For MY_PROGRAM enter the name of your program, for MY_PROGRAM_DESCRIPTION enter a short description, e.g.: FileManager
Write this in notepad and save as my_program.exe.manifest. The file has to be in the same directory as the app's executable.
2. To import a manifest into executable's resources do this:
- save the above mainfest as my_program.manifest (without .exe in the filename),
- also in notepad write this: 1 24 "my_Program.manifest"
- save it as an *.rc file, e.g.: manifest.rc, in the same directory as the my_program.manifest file,
- in Builder go to Project->Add to Project (Shift+F11) and add manifest.rc,
- compile and run.
Now your app should have the look according to the system's current visual style.
Thanks for your help. I tried the method you mentioned. It really change the speed bar. But the main menu back color keeps the way as before.
As Wings said changing the xp scheme to standard will solve the problem.
Thanks again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.