Skip to content

Commit

Permalink
testing updated tree control expanding and collapsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Oct 8, 2023
1 parent cf514ed commit 475e2c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/casewin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ void CaseWindow::OnTechTree(wxDataViewEvent&)

void CaseWindow::OnTreeActivated(wxDataViewEvent& evt)
{
wxString here = "yes";
evt.Veto();
}

Expand Down
9 changes: 6 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3021,6 +3021,8 @@ void ConfigDialog::UpdateFinTree()

void ConfigDialog::OnTreeActivated(wxDataViewEvent &evt)
{
// when does this happen
wxString here = "yes";
evt.Veto();
}

Expand All @@ -3033,12 +3035,13 @@ void ConfigDialog::OnFinTreeDoubleClick(wxDataViewEvent &evt)
}


void ConfigDialog::OnTechTree(wxDataViewEvent &)
void ConfigDialog::OnTechTree(wxDataViewEvent &evt)
{
if (m_pTech->IsContainer(m_pTech->GetCurrentItem()))
{
m_pTech->Expand(m_pTech->GetCurrentItem());
m_techname = "";
// m_pTech->Expand(m_pTech->GetCurrentItem());
// m_techname = "";
// evt.Veto();
return;
}
wxString title = m_pTech->GetItemText(m_pTech->GetCurrentItem());
Expand Down

0 comments on commit 475e2c7

Please sign in to comment.