- wxMultiCellCanvas(wxWindow *parent, int numRows = 2, int numCols = 2);
- void Add(wxWindow *win, unsigned int row, unsigned int col);
-
- void Resize(int numRows, int numCols);
- int MaxRows()
- {
- return m_maxRows;
- };
- int MaxCols()
- {
- return m_maxCols;
- };
- void CalculateConstraints();
- void SetMinCellSize(const wxSize size)
- {
- m_minCellSize = size;
- };
+ wxMultiCellCanvas(wxWindow *parent, int numRows = 2, int numCols = 2);
+ void Add(wxWindow *win, unsigned int row, unsigned int col);
+
+ void Resize(int numRows, int numCols);
+ int MaxRows()
+ {
+ return m_maxRows;
+ };
+ int MaxCols()
+ {
+ return m_maxCols;
+ };
+ void CalculateConstraints();
+ void SetMinCellSize(const wxSize size)
+ {
+ m_minCellSize = size;
+ };
+
+ /* These are to hide Add() method of parents and to avoid Borland warning about hiding virtual functions */
+ void Add( wxWindow *window, int proportion = 0, int flag = 0, int border = 0, wxObject* userData = NULL )
+ { wxFlexGridSizer::Add( window, proportion, flag, border, userData); }
+ void Add( wxSizer *sizer, int proportion = 0, int flag = 0, int border = 0, wxObject* userData = NULL )
+ { wxFlexGridSizer::Add( sizer, proportion, flag, border, userData); }
+ void Add( int width, int height, int proportion = 0, int flag = 0, int border = 0, wxObject* userData = NULL )
+ { wxFlexGridSizer::Add( width, height, proportion, flag, border, userData); }
+ void Add( wxSizerItem *item )
+ { wxFlexGridSizer::Add( item); }