wxColourPickerCtrl live update?

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
thoray
Knows some wx things
Knows some wx things
Posts: 48
Joined: Sun Oct 18, 2015 9:31 am

wxColourPickerCtrl live update?

Post by thoray »

With wxColourPickerCtrl, the associated event, EVT_COLOURPICKER_CHANGED, is only sent after I choose a color from the opened WxColourDialog and then finally click 'select' to close the dialog.

Is there a way to get the the currently selected colour from the dialog without closing the dialog to much faster play with the effect of different colours? (for example, by dragging mouse over the palette to see live updates elsewhere).

I'm testing this with GTK3 platform.
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxColourPickerCtrl live update?

Post by doublemax »

Unfortunately, no.
Use the source, Luke!
thoray
Knows some wx things
Knows some wx things
Posts: 48
Joined: Sun Oct 18, 2015 9:31 am

Re: wxColourPickerCtrl live update?

Post by thoray »

Any ideas on what would be good way to add such functionality to application?

A patch to wx?
Use platform specific code for this dialog?
User avatar
doublemax
Moderator
Moderator
Posts: 19160
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxColourPickerCtrl live update?

Post by doublemax »

I would try to take the code from wxGenericColourDialog and build a non-modal version from it. ( <wxdir>/src/generic/colrdlgg.cpp )
Use the source, Luke!
Post Reply