Added layout constraints call to wxNotebook
Renamed key_down events to match MSW equivalents Invened activated events to tree and list ctrl Added patches to text ctrl from georg git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,6 +65,7 @@ BEGIN_EVENT_TABLE(MyTreeCtrl, wxTreeCtrl)
|
||||
EVT_TREE_SEL_CHANGED(TreeTest_Ctrl, MyTreeCtrl::OnSelChanged)
|
||||
EVT_TREE_SEL_CHANGING(TreeTest_Ctrl, MyTreeCtrl::OnSelChanging)
|
||||
EVT_TREE_KEY_DOWN(TreeTest_Ctrl, MyTreeCtrl::OnTreeKeyDown)
|
||||
EVT_TREE_ITEM_ACTIVATED(TreeTest_Ctrl, MyTreeCtrl::OnItemActivated)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_APP(MyApp)
|
||||
@@ -318,6 +319,11 @@ void MyTreeCtrl::OnItemCollapsing(wxTreeEvent& event)
|
||||
}
|
||||
|
||||
void MyTreeCtrl::OnTreeKeyDown(wxTreeEvent&WXUNUSED(event))
|
||||
{
|
||||
wxLogMessage("OnTreeKeyDown");
|
||||
}
|
||||
|
||||
void MyTreeCtrl::OnItemActivated(wxTreeEvent&WXUNUSED(event))
|
||||
{
|
||||
// show some info about this item
|
||||
wxTreeItemId itemId = GetSelection();
|
||||
@@ -328,7 +334,7 @@ void MyTreeCtrl::OnTreeKeyDown(wxTreeEvent&WXUNUSED(event))
|
||||
item->ShowInfo(this);
|
||||
}
|
||||
|
||||
wxLogMessage("OnTreeKeyDown");
|
||||
wxLogMessage("OnItemActivated");
|
||||
}
|
||||
|
||||
static inline const char *Bool2String(bool b)
|
||||
|
Reference in New Issue
Block a user