bool wxColourPickerCtrl::SetColour(const wxString &text)
{
wxColour col(text); // smart wxString->wxColour conversion
- if ( !col.Ok() )
+ if ( !col.IsOk() )
return false;
M_PICKER->SetColour(col);
UpdateTextCtrlFromPicker();
// wxString -> wxColour conversion
wxColour col(m_text->GetValue());
- if ( !col.Ok() )
+ if ( !col.IsOk() )
return; // invalid user input
if (M_PICKER->GetColour() != col)