Skip to content

Commit

Permalink
event testing for container selection
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Oct 9, 2023
1 parent 65bf8b2 commit 8e9d1b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -3022,7 +3024,7 @@ void ConfigDialog::UpdateFinTree()
void ConfigDialog::OnTreeActivated(wxDataViewEvent &evt)
{
// when does this happen
wxString here = "yes";
wxMessageBox("Activated");
evt.Veto();
}

Expand Down

0 comments on commit 8e9d1b8

Please sign in to comment.