wxColourDialog on the Mac, returning zeros for RGB values, anyone else noticed any issues?

13 views
Skip to first unread message

Tony Kennedy

unread,
Dec 8, 2025, 7:25:44 AM (yesterday) Dec 8
to wx-users
Using wx 3.3.0 on MacOS (latest).

The dialog appears ok, and when I get the colour from the dialog, IsOK returns true on it. But calls to GetRed etc all return zero.

Also tried wxGetColourFromUser, that's behaving the same way for me.

Strangely, it works fine when called from a different dialog.

Anyone else experienced anything strange like this?

Thanks in advance,

Tony.

Vadim Zeitlin

unread,
Dec 8, 2025, 11:19:46 AM (yesterday) Dec 8
to wx-u...@googlegroups.com
On Mon, 8 Dec 2025 04:25:44 -0800 (PST) Tony Kennedy wrote:

TK> Using wx 3.3.0 on MacOS (latest).

Which version of macOS do you use?

TK> The dialog appears ok, and when I get the colour from the dialog, IsOK
TK> returns true on it. But calls to GetRed etc all return zero.
TK>
TK> Also tried wxGetColourFromUser, that's behaving the same way for me.
TK>
TK> Strangely, it works fine when called from a different dialog.

Also, can the problem be reproduced in the dialogs sample?

TK> Anyone else experienced anything strange like this?

No, but it looks somewhat similar to this bug:

https://github.com/wxWidgets/wxWidgets/issues/26017

so I wonder if something could have changed in macOS 26 to break our use of
the standard dialogs.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/

Tony Kennedy

unread,
Dec 8, 2025, 11:24:39 AM (yesterday) Dec 8
to wx-users
Could be. I've just checked, I'm on MacOS Sequioa (not Tahoe). 

I have the exact same code in two places, one returns a valid colour, the other returns zeros for R, G and B values. Absolutely bizarre behaviour that I cannot figure out what is wrong.

I've tried all sorts as well (GetRGBA etc etc). The only thing that seems to work is if I call some objective C to display the Mac colour picker dialog, then the wx one (thanks to chatgpt for giving me the code to do this).
Reply all
Reply to author
Forward
0 new messages