// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "calctrl.h"
-#endif
-
#ifndef _WX_GENERIC_CALCTRL_H
#define _WX_GENERIC_CALCTRL_H
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+ void OnSysColourChanged(wxSysColourChangedEvent& event);
+
+protected:
+ // override some base class virtuals
+ virtual wxSize DoGetBestSize() const;
+ virtual void DoGetPosition(int *x, int *y) const;
+ virtual void DoGetSize(int *width, int *height) const;
+ virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
+ virtual void DoMoveWindow(int x, int y, int width, int height);
+
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);
void OnYearChange(wxCommandEvent& event);
void OnYearTextChange(wxCommandEvent& event);
- // override some base class virtuals
- virtual wxSize DoGetBestSize() const;
- virtual void DoGetPosition(int *x, int *y) const;
- virtual void DoGetSize(int *width, int *height) const;
- virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
- virtual void DoMoveWindow(int x, int y, int width, int height);
-
// (re)calc m_widthCol and m_heightRow
void RecalcGeometry();
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];