wxCalendarCtrl: positioning fixes and colours following system settings.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-01-10 21:08:07 +00:00
parent f9cc9706e4
commit d9170b47d1
3 changed files with 63 additions and 27 deletions

View File

@@ -161,10 +161,15 @@ public:
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
void OnSysColourChanged(wxSysColourChangedEvent& event);
private:
// common part of all ctors
void Init();
// startup colours and reinitialization after colour changes in system
void InitColours();
// event handlers
void OnPaint(wxPaintEvent& event);
void OnClick(wxMouseEvent& event);
@@ -286,7 +291,9 @@ private:
m_colHolidayFg,
m_colHolidayBg,
m_colHeaderFg,
m_colHeaderBg;
m_colHeaderBg,
m_colBackground,
m_colSorrounding;
// the attributes for each of the month days
wxCalendarDateAttr *m_attrs[31];