News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Why compiled wxWidgets program in win7 is XP style?

Started by freepro, November 19, 2012, 03:11:44 PM

Previous topic - Next topic

freepro

I use CodeBlocks complied a wxWidgets GUI program in windows 7, but the GUI's style is XP. What i should to do?

thomas

Most likely you've not given the correct OS version in your manifest file (or don't have one at all).

(not related to Code::Blocks)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

freepro


MortenMacFly

Quote from: freepro on November 20, 2012, 03:35:44 AM
Can you tell me what i should to do?
Search for "manifest file" using your favourite search engine. There are plenty of examples around explaining what you have to do. And it depends on what you have in mind, so there is no general solution. You may use the "xpmanifest" plugin, too. However - this is for XP.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

freepro

Problem is resolved. :)
     I found the file 'sample.rc' in wxWidgets directory. There are brief descriptions:

// set this to 1 if you don't want to use manifest resource (manifest resource
// is needed to enable visual styles on Windows XP - see docs/msw/winxp.txt
// for more information)

#define wxUSE_NO_MANIFEST 0

So i add '#define wxUSE_NO_MANIFEST 0' in my resource.rc. That's great, the problem is resolved! ;D