- // set up for the test
- m_list->InsertColumn(0, "Column 0", wxLIST_FORMAT_LEFT, 60);
- m_list->InsertColumn(1, "Column 1", wxLIST_FORMAT_LEFT, 50);
- m_list->InsertColumn(2, "Column 2", wxLIST_FORMAT_LEFT, 40);
-
- m_list->InsertItem(0, "Item 0");
- m_list->SetItem(0, 1, "first column");
- m_list->SetItem(0, 1, "second column");
-
- // do test
- wxRect r;
- WX_ASSERT_FAILS_WITH_ASSERT( m_list->GetItemRect(1, r) );
- CPPUNIT_ASSERT( m_list->GetItemRect(0, r) );
- CPPUNIT_ASSERT_EQUAL( 150, r.GetWidth() );
+ EventCounter colclick(m_list, wxEVT_COMMAND_LIST_COL_CLICK);
+ EventCounter colrclick(m_list, wxEVT_COMMAND_LIST_COL_RIGHT_CLICK);