Why the GUI of my app is uglier than of the samples? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
winvdk
Knows some wx things
Knows some wx things
Posts: 29
Joined: Fri Jun 01, 2012 1:30 am
Location: Taiwan

Why the GUI of my app is uglier than of the samples?

Post by winvdk »

They link against with the same wxWidgets in the filesystem. However, mine GUI is uglier. Below is the comparison. The first one is from the samples of wxWidgets, and the second is a mimic from my own codes.
Image
Image
Any suggestion? Thanks in advance.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Why the GUI of my app is uglier than of the samples?

Post by doublemax »

Missing manifest in the executable. How to achieve that depends on your ide/compiler. If it works in the samples, check how it's done there.

http://svn.wxwidgets.org/viewvc/wx/wxWi ... iew=markup
Use the source, Luke!
winvdk
Knows some wx things
Knows some wx things
Posts: 29
Joined: Fri Jun 01, 2012 1:30 am
Location: Taiwan

Re: Why the GUI of my app is uglier than of the samples?

Post by winvdk »

Thank you, doublemax. I used windres.exe (from TDM-GCC) to compile wx/msw/wx.rc into a .o file, then linked the .o file with my own object files. The output binary has better GUI looking now. Many thanks, doublemax.
Post Reply