virtual bool Enable(bool enable = true);
virtual bool Show(bool show = true);
+ virtual void SetWindowStyleFlag(long style);
+
virtual wxVisualAttributes GetDefaultAttributes() const
{ return GetClassDefaultAttributes(GetWindowVariant()); }
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();
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();
// OnPaint helper-methods
// Highlight the [fromdate : todate] range using pen and brush
- void HighlightRange(wxPaintDC* dc, const wxDateTime& fromdate, const wxDateTime& todate, wxPen* pen, wxBrush* brush);
+ void HighlightRange(wxPaintDC* dc, const wxDateTime& fromdate, const wxDateTime& todate, const wxPen* pen, const wxBrush* brush);
// Get the "coordinates" for the date relative to the month currently displayed.
// using (day, week): upper left coord is (1, 1), lower right coord is (7, 6)