SetName(name);
SetValidator(validator);
m_windowStyle = style;
+ m_backgroundColour = parent->GetBackgroundColour();
+ m_foregroundColour = parent->GetForegroundColour();
parent->AddChild((wxButton *)this);
AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y);
SetFont(* parent->GetFont());
- ChangeColour(m_mainWidget);
+ ChangeBackgroundColour();
return TRUE;
}
event.SetEventObject(item);
item->ProcessCommand (event);
}
+
+void wxButton::ChangeFont()
+{
+ wxWindow::ChangeFont();
+}
+
+void wxButton::ChangeBackgroundColour()
+{
+ DoChangeBackgroundColour(m_mainWidget, m_backgroundColour, TRUE);
+}
+
+void wxButton::ChangeForegroundColour()
+{
+ wxWindow::ChangeForegroundColour();
+}
+