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.
-
idhan
- Experienced Solver

- Posts: 88
- Joined: Tue Feb 28, 2006 9:03 pm
Post
by idhan » Wed Mar 22, 2006 3:47 pm
Hi,
I am programming under Microsoft Visual Studio Professional 2005, and my application doesn't show controls with windows xp style.. for example the wxStaticBoxSizer doesn't have round edges as others application with the same control...
I use wxWidgets 2.6.2...
thanks for any help

-
protocol
- Moderator

- Posts: 680
- Joined: Wed Jan 18, 2006 6:13 pm
- Location: Dallas, TX
-
Contact:
Post
by protocol » Wed Mar 22, 2006 5:29 pm
Have you tried wxWindow::SetThemeEnabled( true )?
-
idhan
- Experienced Solver

- Posts: 88
- Joined: Tue Feb 28, 2006 9:03 pm
Post
by idhan » Wed Mar 22, 2006 5:44 pm
Hi,
I put wxWindow::SetThemeEnabled( true ) in the construtor of my main windows, but doesn't work... should I do something else???
-
protocol
- Moderator

- Posts: 680
- Joined: Wed Jan 18, 2006 6:13 pm
- Location: Dallas, TX
-
Contact:
Post
by protocol » Wed Mar 22, 2006 5:52 pm
Umm,
Code: Select all
wxPanel * pnl = new wxPanel(...);
pnl->SetThemeEnabled( true );
Is that how you did it?
-
eco
- Filthy Rich wx Solver

- Posts: 203
- Joined: Tue Aug 31, 2004 7:06 pm
- Location: Behind a can of Mountain Dew
-
Contact:
Post
by eco » Wed Mar 22, 2006 6:21 pm
You need a manifest to enable XP style themes (you can get it by
including wx/msw/wx.rc in your resource file).
-
idhan
- Experienced Solver

- Posts: 88
- Joined: Tue Feb 28, 2006 9:03 pm
Post
by idhan » Wed Mar 22, 2006 6:32 pm
Hi Protocol,
I put it in the constructor of the panel not outside of the panel...
Hi Eco,
So I need to compile the new version 2.6.3? Did it work for you?
-
cpp
- I live to help wx-kind

- Posts: 195
- Joined: Wed Sep 28, 2005 9:42 pm
Post
by cpp » Wed Mar 22, 2006 8:25 pm
Hi, i think your problem is with the manifest.
take a look at the following post:
http://forums.wxwidgets.org/viewtopic.php?t=6261
pay special attention to the manifest part you need to include wx.rc, like eco told you,
but you also need to do a couple of other things
HTH
Hier Kommt die Sonne...
-
idhan
- Experienced Solver

- Posts: 88
- Joined: Tue Feb 28, 2006 9:03 pm
Post
by idhan » Wed Mar 22, 2006 9:42 pm
Hi,
the solution was simpler that I thought... I only compile the version 2.6.3 without making no change in the code and its work.. without change the manifiest file or include any resource...
Thanks a lot!!!