widget styles ? 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
framepointer
Super wx Problem Solver
Super wx Problem Solver
Posts: 264
Joined: Mon Aug 07, 2006 3:25 pm
Location: Baia Mare, Romania
Contact:

widget styles ?

Post by framepointer » Mon Mar 26, 2007 9:06 pm

Hi.

I just installed wx 280 on XP and tried a test app consisting of a frame and a dialog. I don't know why, but in the samples i compiled the buttons have the rounded (GTK?) style, and in my app i have the dull windows style buttons.

Any idea why?

Thanks,
Robert
Software is like sex,
It's better when it's free.
~Linus Torvalds

geralds
I live to help wx-kind
I live to help wx-kind
Posts: 186
Joined: Tue Nov 01, 2005 9:22 am
Contact:

Post by geralds » Mon Mar 26, 2007 9:28 pm

You need to include <wx/msw/wx.rc> to get XP controls.

See http://wxwidgets.org/docs/faqmsw.htm#winxp for details.

-Gerald

framepointer
Super wx Problem Solver
Super wx Problem Solver
Posts: 264
Joined: Mon Aug 07, 2006 3:25 pm
Location: Baia Mare, Romania
Contact:

Post by framepointer » Mon Mar 26, 2007 9:57 pm

Thanks!!

Regards :)
Software is like sex,
It's better when it's free.
~Linus Torvalds

Post Reply