Send wxEVT_COLOUR_CHANGED from wxColourDialog under MSW
Add support for a new event sent by wxColourDialog, currently only under MSW, when the colour currently selected in it changes. Based on work by Trylz, see https://github.com/wxWidgets/wxWidgets/pull/1219
This commit is contained in:
@@ -129,6 +129,10 @@ bool wxColourData::FromString(const wxString& str)
|
||||
|
||||
#include "wx/colordlg.h"
|
||||
|
||||
wxIMPLEMENT_DYNAMIC_CLASS(wxColourDialogEvent, wxCommandEvent);
|
||||
|
||||
wxDEFINE_EVENT(wxEVT_COLOUR_CHANGED, wxColourDialogEvent);
|
||||
|
||||
wxColour wxGetColourFromUser(wxWindow *parent,
|
||||
const wxColour& colInit,
|
||||
const wxString& caption,
|
||||
|
Reference in New Issue
Block a user