Added 'bool editable' argument to wxPropertyGrid::MakeColumnEditable()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-09-01 13:54:41 +00:00
parent aa498ec94e
commit e9fb1910b9
4 changed files with 53 additions and 7 deletions

View File

@@ -775,6 +775,29 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
RT_ASSERT( !pg->IsPropertySelected(prop3) )
}
{
//
// Test label editing
RT_START_TEST(LABEL_EDITING)
wxPropertyGrid* pg = pgman->GetGrid();
// Just mostly test that these won't crash
pg->MakeColumnEditable(0, true);
pg->MakeColumnEditable(2, true);
pg->MakeColumnEditable(0, false);
pg->MakeColumnEditable(2, false);
pg->SelectProperty(wxT("Height"));
pg->BeginLabelEdit(0);
pg->BeginLabelEdit(0);
pg->EndLabelEdit(0);
pg->EndLabelEdit(0);
// Recreate grid
CreateGrid( -1, -1 );
pgman = m_pPropGridManager;
}
{
RT_START_TEST(Attributes)