void TreeCtrlTestCase::ItemClick()
{
#if wxUSE_UIACTIONSIMULATOR
- EventCounter activated(m_tree, wxEVT_COMMAND_TREE_ITEM_ACTIVATED);
- EventCounter rclick(m_tree, wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK);
+ EventCounter activated(m_tree, wxEVT_TREE_ITEM_ACTIVATED);
+ EventCounter rclick(m_tree, wxEVT_TREE_ITEM_RIGHT_CLICK);
wxUIActionSimulator sim;
void TreeCtrlTestCase::DeleteItem()
{
- EventCounter deleteitem(m_tree, wxEVT_COMMAND_TREE_DELETE_ITEM);
+ EventCounter deleteitem(m_tree, wxEVT_TREE_DELETE_ITEM);
wxTreeItemId todelete = m_tree->AppendItem(m_root, "deleteme");
m_tree->Delete(todelete);
void TreeCtrlTestCase::LabelEdit()
{
- EventCounter beginedit(m_tree, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT);
- EventCounter endedit(m_tree, wxEVT_COMMAND_TREE_END_LABEL_EDIT);
+ EventCounter beginedit(m_tree, wxEVT_TREE_BEGIN_LABEL_EDIT);
+ EventCounter endedit(m_tree, wxEVT_TREE_END_LABEL_EDIT);
wxUIActionSimulator sim;
void TreeCtrlTestCase::KeyDown()
{
- EventCounter keydown(m_tree, wxEVT_COMMAND_TREE_KEY_DOWN);
+ EventCounter keydown(m_tree, wxEVT_TREE_KEY_DOWN);
wxUIActionSimulator sim;
{
m_tree->CollapseAll();
- EventCounter collapsed(m_tree, wxEVT_COMMAND_TREE_ITEM_COLLAPSED);
- EventCounter collapsing(m_tree, wxEVT_COMMAND_TREE_ITEM_COLLAPSING);
- EventCounter expanded(m_tree, wxEVT_COMMAND_TREE_ITEM_EXPANDED);
- EventCounter expanding(m_tree, wxEVT_COMMAND_TREE_ITEM_EXPANDING);
+ EventCounter collapsed(m_tree, wxEVT_TREE_ITEM_COLLAPSED);
+ EventCounter collapsing(m_tree, wxEVT_TREE_ITEM_COLLAPSING);
+ EventCounter expanded(m_tree, wxEVT_TREE_ITEM_EXPANDED);
+ EventCounter expanding(m_tree, wxEVT_TREE_ITEM_EXPANDING);
wxUIActionSimulator sim;
m_tree->ExpandAll();
m_tree->UnselectAll();
- EventCounter changed(m_tree, wxEVT_COMMAND_TREE_SEL_CHANGED);
- EventCounter changing(m_tree, wxEVT_COMMAND_TREE_SEL_CHANGING);
+ EventCounter changed(m_tree, wxEVT_TREE_SEL_CHANGED);
+ EventCounter changing(m_tree, wxEVT_TREE_SEL_CHANGING);
wxUIActionSimulator sim;
wxRect poschild1, poschild2;
m_tree->GetBoundingRect(m_child1, poschild1, true);
- m_tree->GetBoundingRect(m_child1, poschild2, true);
+ m_tree->GetBoundingRect(m_child2, poschild2, true);
// We move in slightly so we are not on the edge
wxPoint point1 = m_tree->ClientToScreen(poschild1.GetPosition()) + wxPoint(4, 4);
void TreeCtrlTestCase::Menu()
{
- EventCounter menu(m_tree, wxEVT_COMMAND_TREE_ITEM_MENU);
+ EventCounter menu(m_tree, wxEVT_TREE_ITEM_MENU);
wxUIActionSimulator sim;
wxRect pos;