wxColourPickerCtrl on Mac

Vadim Zeitlin vadim at wxwidgets.org
Sun Jul 1 15:35:51 PDT 2007


On Sun, 1 Jul 2007 19:52:49 +0200 Dan Elharrar <DanE at HumanEyes.com> wrote:

DE> The generic implementation of the wxColourPickerCtrl is based on a
DE> wxButton, to which the code sets the FG color and BG color according to
DE> the picked color.
DE> Unfortunately, the result on Mac/Carbon looks terrible - the carbon
DE> button has a fixed color, and the selected color appears behind the
DE> button.

 This is not nice. BTW, is there any native control for "quick" colour
selection under Mac?

DE> An "easy way" to overcome this problem is to use a wxBitmapButton on
DE> Mac/Carbon (instead of a wxButton), and set a bitmap label in the
DE> correct color. This is not really mac-specific code because we're only
DE> using WX classes, and it looks much better in my humble opinion - you
DE> see a button with the selected color inside it.

 Yes, this seems like a good idea if wxBitmapButton has nice(r) appearance
under Mac. But if we do it, we should probably do it for all platforms (why
not?) rather just Mac.

DE> Does anyone know of a better way to solve this? 

 Short of making wxButton appear in correct colour, I don't see anything.

 Regards,
VZ
-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/






More information about the wx-users mailing list