parent->AddChild(this);
- m_backgroundColour = parent->GetDefaultBackgroundColour() ;
- m_foregroundColour = parent->GetDefaultForegroundColour() ;
+ m_backgroundColour = parent->GetBackgroundColour() ;
+ m_foregroundColour = parent->GetForegroundColour() ;
m_windowStyle = style;
m_marginX = 0;
m_marginY = 0;
// Subclass again for purposes of dialog editing mode
SubclassWin((WXHWND)wx_button);
- // TODO? If in future we have a facility for having a label as well
- // as a bitmap, set the font.
-// SetFont(parent->GetFont()) ;
+ SetFont(* parent->GetFont()) ;
SetSize(x, y, width, height);
ShowWindow(wx_button, SW_SHOW);