static wxColour s_col;
s_col = Find(name);
- if ( !s_col.Ok() )
+ if ( !s_col.IsOk() )
return NULL;
return new wxColour(s_col);
wxPen* pen = NULL;
wxPen penTmp(colour, width, style);
- if (penTmp.Ok())
+ if (penTmp.IsOk())
{
pen = new wxPen(penTmp);
list.Append(pen);
wxBrush* brush = NULL;
wxBrush brushTmp(colour, style);
- if (brushTmp.Ok())
+ if (brushTmp.IsOk())
{
brush = new wxBrush(brushTmp);
list.Append(brush);
// font not found, create the new one
font = NULL;
wxFont fontTmp(pointSize, family, style, weight, underline, facename, encoding);
- if (fontTmp.Ok())
+ if (fontTmp.IsOk())
{
font = new wxFont(fontTmp);
list.Append(font);