m_backgroundColour = settings.GetSystemColour(wxSYS_COLOUR_BTNFACE);
m_foregroundColour = *wxBLACK; // TODO take this from sys settings too?
+#ifndef __WXMAC__
m_font = *wxSWISS_FONT; // and this?
-
+#else
+ m_font = settings.GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
+#endif
// no style bits
m_windowStyle = 0;
yNew += posParent.y;
}
- Move(xNew, yNew);
+ // move the centre of this window to this position (not the upper left
+ // corner as it was done before)
+ Move(xNew - width / 2, yNew - height / 2);
}
// fits the window around the children