From 8e9d1b836561f8bc4bc17928305d7ece8079c895 Mon Sep 17 00:00:00 2001 From: Steven Janzou Date: Mon, 9 Oct 2023 04:03:27 -0600 Subject: [PATCH] event testing for container selection --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 5240492ea6..f248113616 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2740,6 +2740,8 @@ enum { ID_TechTree = wxID_HIGHEST+98, ID_FinTree }; BEGIN_EVENT_TABLE(ConfigDialog, wxDialog) EVT_DATAVIEW_ITEM_START_EDITING(ID_TechTree, ConfigDialog::OnTreeActivated) +EVT_DATAVIEW_ITEM_EDITING_STARTED(ID_TechTree, ConfigDialog::OnTreeActivated) +EVT_DATAVIEW_ITEM_EDITING_DONE(ID_TechTree, ConfigDialog::OnTreeActivated) EVT_DATAVIEW_ITEM_START_EDITING(ID_FinTree, ConfigDialog::OnFinTreeDoubleClick) EVT_DATAVIEW_ITEM_ACTIVATED(ID_TechTree, ConfigDialog::OnTreeActivated) EVT_DATAVIEW_ITEM_ACTIVATED(ID_FinTree, ConfigDialog::OnFinTreeDoubleClick) @@ -3022,7 +3024,7 @@ void ConfigDialog::UpdateFinTree() void ConfigDialog::OnTreeActivated(wxDataViewEvent &evt) { // when does this happen - wxString here = "yes"; + wxMessageBox("Activated"); evt.Veto(); }