void AddStdKeys();
private:
- DECLARE_EVENT_TABLE();
+ DECLARE_EVENT_TABLE()
};
// ----------------------------------------------------------------------------
void OnInfo (wxCommandEvent& event);
- DECLARE_EVENT_TABLE();
+ DECLARE_EVENT_TABLE()
private:
RegTreeCtrl *m_treeCtrl;
if ( isEmpty ) {
// this is for the case when our last child was just deleted
- m_pTree->Collapse(Id());
+ wxTreeItemId theId(Id()); // Temp variable seems necessary for BC++
+ m_pTree->Collapse(theId);
// we won't be expanded any more
- m_pTree->SetItemHasChildren(Id(), FALSE);
+ m_pTree->SetItemHasChildren(theId, FALSE);
}
return TRUE;
if ( !IsKey() )
return;
- bool wasExpanded = m_pTree->IsExpanded(Id());
+ wxTreeItemId theId(Id()); // Temp variable seems necessary for BC++
+ bool wasExpanded = m_pTree->IsExpanded(theId);
if ( wasExpanded )
- m_pTree->Collapse(Id());
+ m_pTree->Collapse(theId);
OnCollapse();
- m_pTree->SetItemHasChildren(Id());
+ m_pTree->SetItemHasChildren(theId);
if ( wasExpanded ) {
- m_pTree->Expand(Id());
+ m_pTree->Expand(theId);
OnExpand();
}
}
}
if ( ok ) {
- m_pTree->Delete(child->Id());
+ wxTreeItemId theId(child->Id()); // Temp variable seems necessary for BC++
+ m_pTree->Delete(theId);
Refresh();
}
long lId = m_aChildren[n]->Id();
// no, wxTreeCtrl will do it
//delete m_aChildren[n];
- m_pTree->Delete(lId);
+ wxTreeItemId theId(lId); // Temp variable seems necessary for BC++
+ m_pTree->Delete(theId);
}
m_aChildren.Empty();