[Windows] why are my widgets so ugly ?

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
biggil
Knows some wx things
Knows some wx things
Posts: 29
Joined: Fri Apr 20, 2012 7:10 am

[Windows] why are my widgets so ugly ?

Post by biggil »

hi there,

platform : Windows 7 64 bits SP1
compiler: TDM-GCC-64, gcc 4.8.1 (tdm64-2)
wxWidgets 3.0.1

I ported my application from Mac to Windows.

I can see my controls look like win95's, my app seem to emerge from the deep 20th century …

the sample/controls app has a nicer look, how can it achieve that ?
I couln't find something in its source.
User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: [Windows] why are my widgets so ugly ?

Post by xaviou »

Hi.

It is a Windows manifest problem.

If you don't have any, add a resources files with the following :

Code: Select all

#include "wx/msw/wx.rc"
Regards
Xav'
My wxWidgets stuff web page : X@v's wxStuff
User avatar
biggil
Knows some wx things
Knows some wx things
Posts: 29
Joined: Fri Apr 20, 2012 7:10 am

Re: [Windows] why are my widgets so ugly ?

Post by biggil »

seems easy,
but in what file do I include it ?

I couln't find documentation about manifests in WX - what they are, how to use...
I'm new to Windows and somewhat lost :-)
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: [Windows] why are my widgets so ugly ?

Post by PB »

Documentation describing how to use a manifest in a wxWidgets application is contained in $WXWIN\docs\msw\winxp.txt file, you can also read it here:
http://svn.wxwidgets.org/viewvc/wx/wxWi ... iew=markup
Manolo
Can't get richer than this
Can't get richer than this
Posts: 827
Joined: Mon Apr 30, 2012 11:07 pm

Re: [Windows] why are my widgets so ugly ?

Post by Manolo »

You can take an example in "samples/samples.rc".
Copy it to your own folder, rename it, modify it.

If you use Mingw (or TDM) compile it using 'winres':
windres.exe -IwxFullPathInclude -J rc -O coff -i theFile.rc -o theFile.res
Add the .res file to rest of files to be linked.
User avatar
biggil
Knows some wx things
Knows some wx things
Posts: 29
Joined: Fri Apr 20, 2012 7:10 am

Re: [Windows] why are my widgets so ugly ?

Post by biggil »

all right :-P

thank you everybody.
Gilles.
Post Reply