Final touch for wxColour <-> wxString and wxColourBase by Francesco Montorsi.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-04-28 17:59:28 +00:00
parent 33cf9a1922
commit 7d01c54d7f
2 changed files with 16 additions and 5 deletions

View File

@@ -101,7 +101,17 @@ wxString wxColourBase::GetAsString(long flags) const
return colName;
}
#if WXWIN_COMPATIBILITY_2_6
// static
wxColour wxColourBase::CreateByName(const wxString& name)
{
return wxColour(name);
}
void wxColourBase::InitFromName(const wxString& col)
{
Set(col);
}
#endif // WXWIN_COMPATIBILITY_2_6