wxColourPickerCtrl on Mac
Dan Elharrar
DanE at HumanEyes.com
Sun Jul 1 10:52:49 PDT 2007
WX : 2.8.3
OS : Mac OSX 10.4.10
COMPILER: XCode with gcc-4
Hello,
The generic implementation of the wxColourPickerCtrl is based on a
wxButton, to which the code sets the FG color and BG color according to
the picked color.
Unfortunately, the result on Mac/Carbon looks terrible - the carbon
button has a fixed color, and the selected color appears *behind* the
button.
An "easy way" to overcome this problem is to use a wxBitmapButton on
Mac/Carbon (instead of a wxButton), and set a bitmap label in the
correct color. This is not really mac-specific code because we're only
using WX classes, and it looks much better in my humble opinion - you
see a button with the selected color *inside* it.
Does anyone know of a better way to solve this?
HumanEyes Technologies Ltd.
Dan Elharrar | Algorithms Developer | T: +972.2.6518999 ext. 210 | F:
+972.2.6515188 | M: +972.54.2120012 | dane at humaneyes.com
www.humaneyes.com
More information about the wx-users
mailing list