1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxColourDialog class. NOTE: you can use the generic class
4 // if you wish, instead of implementing this.
9 // Copyright: (c) AUTHOR
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
14 #pragma implementation "colordlg.h"
17 #include "wx/mac/colordlg.h"
19 #if !USE_SHARED_LIBRARY
20 IMPLEMENT_DYNAMIC_CLASS(wxColourDialog
, wxDialog
)
27 wxColourDialog::wxColourDialog()
29 m_dialogParent
= NULL
;
32 wxColourDialog::wxColourDialog(wxWindow
*parent
, wxColourData
*data
)
37 bool wxColourDialog::Create(wxWindow
*parent
, wxColourData
*data
)
39 m_dialogParent
= parent
;
46 int wxColourDialog::ShowModal()
49 RGBColor currentColor
= m_colourData
.dataColour
.GetPixel() , newColor
;
51 where
.h
= where
.v
= -1;
53 if (GetColor( where
, "\pSelect a new palette color.", ¤tColor
, &newColor
))
55 m_colourData
.dataColour
.Set( newColor
) ;