#include "wx/statline.h"
#endif
+#include "wx/colourdata.h"
#include "wx/generic/colrdlgg.h"
IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog)
event.Skip();
}
-void wxGenericColourDialog::OnPaint(wxPaintEvent& event)
+void wxGenericColourDialog::OnPaint(wxPaintEvent& WXUNUSED(event))
{
-#if !defined(__WXMOTIF__) && !defined(__WXPM__) && !defined(__WXCOCOA__) && !defined(__WXOSX__)
- wxDialog::OnPaint(event);
-#else
- wxUnusedVar(event);
-#endif
-
wxPaintDC dc(this);
PaintBasicColours(dc);
for (i = 0; i < WXSIZEOF(wxColourDialogNames); i++)
{
wxColour col = wxTheColourDatabase->Find(wxColourDialogNames[i]);
- if (col.Ok())
+ if (col.IsOk())
m_standardColours[i].Set(col.Red(), col.Green(), col.Blue());
else
m_standardColours[i].Set(0, 0, 0);
for (i = 0; i < WXSIZEOF(m_customColours); i++)
{
wxColour c = m_colourData.GetCustomColour(i);
- if (c.Ok())
+ if (c.IsOk())
m_customColours[i] = m_colourData.GetCustomColour(i);
else
m_customColours[i] = wxColour(255, 255, 255);
}
wxColour curr = m_colourData.GetColour();
- if ( curr.Ok() )
+ if ( curr.IsOk() )
{
bool m_initColourFound = false;