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:
Vadim Zeitlin
2019-04-20 21:47:42 +02:00
parent 5b7114b4d7
commit 35c16935f1
7 changed files with 228 additions and 14 deletions

View File

@@ -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,