Fix showing back hidden columns and rows in wxGrid.
While we don't support auto-sizing of the hidden columns and rows, we need to still show them back when SetColSize() or SetRowSize() is called with -1 (a.k.a. wxGRID_AUTOSIZE) argument. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -59,6 +59,7 @@ private:
|
||||
CPPUNIT_TEST( Selection );
|
||||
CPPUNIT_TEST( AddRowCol );
|
||||
CPPUNIT_TEST( ColumnOrder );
|
||||
CPPUNIT_TEST( ColumnVisibility );
|
||||
CPPUNIT_TEST( LineFormatting );
|
||||
CPPUNIT_TEST( SortSupport );
|
||||
CPPUNIT_TEST( Labels );
|
||||
@@ -87,6 +88,7 @@ private:
|
||||
void Selection();
|
||||
void AddRowCol();
|
||||
void ColumnOrder();
|
||||
void ColumnVisibility();
|
||||
void LineFormatting();
|
||||
void SortSupport();
|
||||
void Labels();
|
||||
@@ -526,6 +528,19 @@ void GridTestCase::ColumnOrder()
|
||||
CPPUNIT_ASSERT_EQUAL(3, m_grid->GetColPos(3));
|
||||
}
|
||||
|
||||
void GridTestCase::ColumnVisibility()
|
||||
{
|
||||
m_grid->AppendCols(3);
|
||||
CPPUNIT_ASSERT( m_grid->IsColShown(1) );
|
||||
|
||||
m_grid->HideCol(1);
|
||||
CPPUNIT_ASSERT( !m_grid->IsColShown(1) );
|
||||
CPPUNIT_ASSERT( m_grid->IsColShown(2) );
|
||||
|
||||
m_grid->ShowCol(1);
|
||||
CPPUNIT_ASSERT( m_grid->IsColShown(1) );
|
||||
}
|
||||
|
||||
void GridTestCase::LineFormatting()
|
||||
{
|
||||
CPPUNIT_ASSERT(m_grid->GridLinesEnabled());
|
||||
|
Reference in New Issue
Block a user