Re: wxColourDialog on the Mac, returning zeros for RGB values, anyone else noticed any issues?
Tony Kennedy <[email protected]> Mon, 8 Dec 2025 08:24:38 -0800 (PST)
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
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). On Monday, 8 December 2025 at 16:19:46 UTC Vadim Zeitlin wrote: > 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/ > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/89c81ad9-0aee-4859-8e26-b221aabc782dn%40googlegroups.com.