-void wxColour::InitFromName(
- const wxString& sCol
-)
-{
- wxColour* pTheColour = wxTheColourDatabase->FindColour(sCol);
-
- if (pTheColour)
- {
- m_cRed = pTheColour->Red();
- m_cGreen = pTheColour->Green();
- m_cBlue = pTheColour->Blue();
- m_bIsInit = TRUE;
- }
- else
- {
- m_cRed = 0;
- m_cGreen = 0;
- m_cBlue = 0;
- m_bIsInit = FALSE;
- }
- m_vPixel = OS2RGB (m_cRed, m_cGreen, m_cBlue);
-} // end of wxColour::InitFromName
-
-wxColour::~wxColour ()