Button 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
jjoe
Earned a small fee
Earned a small fee
Posts: 23
Joined: Sun May 28, 2006 10:46 pm

Button styles

Post by jjoe » Thu Oct 26, 2006 8:44 pm

hello,

I found that there are two styles for buttons. Please see the pictures.

Image

Can somebody tell me what parameter makes the difference?

User avatar
tierra
Site Admin
Site Admin
Posts: 1343
Joined: Sun Aug 29, 2004 7:14 pm
Location: Salt Lake City, Utah, USA
Contact:

Post by tierra » Fri Oct 27, 2006 4:40 am

The first would be the standard XP themed button, and the other would be the standard non-themed button. The button style uses XP when possible (if you have the manifest setup correctly, which if you see it at some point somewhere, you do), but will fall back on the standard button if you change certain colors or styles that the XP themed button doesn't support.

tiwag
Earned some good credits
Earned some good credits
Posts: 123
Joined: Tue Dec 21, 2004 8:51 pm
Location: Austria

Post by tiwag » Fri Oct 27, 2006 6:34 am

if you add a resource file to your project, which includes wx/msw/wx.rc

e.g. wxApp.rc

Code: Select all

aaaaaaaa ICON "myAppIcon.ico"
#include "wx/msw/wx.rc"
then the manifest info will be included in the resource by default.
(can be switched off by some preprocesser macro if you don't like it)

brgds
-tiwag

Post Reply