wxGridCellRenderer* GetCellRenderer(int row, int col);
// takes ownership of the pointer
-// void SetDefaultEditor(wxGridCellEditor *editor);
+ void SetDefaultEditor(wxGridCellEditor *editor);
void SetCellEditor(int row, int col, wxGridCellEditor *editor);
-// wxGridCellEditor *GetDefaultEditor() const;
+ wxGridCellEditor *GetDefaultEditor() const;
wxGridCellEditor* GetCellEditor(int row, int col);
m_defaultCellAttr->SetFont(font);
}
-// void wxGrid::SetDefaultRenderer(wxGridCellRenderer *renderer)
-// {
-// m_defaultCellAttr->SetRenderer(renderer);
-// }
+void wxGrid::SetDefaultRenderer(wxGridCellRenderer *renderer)
+{
+ m_defaultCellAttr->SetRenderer(renderer);
+}
-// void wxGrid::SetDefaultEditor(wxGridCellEditor *editor)
-// {
-// m_defaultCellAttr->SetEditor(editor);
-// }
+void wxGrid::SetDefaultEditor(wxGridCellEditor *editor)
+{
+ m_defaultCellAttr->SetEditor(editor);
+}
// ----------------------------------------------------------------------------
// access to the default attrbiutes
m_defaultCellAttr->GetAlignment(horiz, vert);
}
-// wxGridCellRenderer *wxGrid::GetDefaultRenderer() const
-// {
-// return m_defaultCellAttr->GetRenderer();
-// }
+wxGridCellRenderer *wxGrid::GetDefaultRenderer() const
+{
+ return m_defaultCellAttr->GetRenderer(NULL);
+}
-// wxGridCellEditor *wxGrid::GetDefaultEditor() const
-// {
-// return m_defaultCellAttr->GetEditor();
-// }
+wxGridCellEditor *wxGrid::GetDefaultEditor() const
+{
+ return m_defaultCellAttr->GetEditor(NULL);
+}
// ----------------------------------------------------------------------------
// access to cell attributes