void OnCheckBox(wxCommandEvent& event);
void OnRadioBox(wxCommandEvent& event);
void OnSelChanged(wxTreeEvent& event);
+ void OnFileActivated(wxTreeEvent& event);
// reset the control parameters
void Reset();
EVT_BUTTON(DirCtrlPage_SetPath, DirCtrlWidgetsPage::OnButtonSetPath)
EVT_CHECKBOX(wxID_ANY, DirCtrlWidgetsPage::OnCheckBox)
EVT_RADIOBOX(wxID_ANY, DirCtrlWidgetsPage::OnRadioBox)
- EVT_DIRCTRL_CHANGED(DirCtrlPage_Ctrl, DirCtrlWidgetsPage::OnSelChanged)
+ EVT_DIRCTRL_SELECTIONCHANGED(DirCtrlPage_Ctrl, DirCtrlWidgetsPage::OnSelChanged)
+ EVT_DIRCTRL_FILEACTIVATED(DirCtrlPage_Ctrl, DirCtrlWidgetsPage::OnFileActivated)
END_EVENT_TABLE()
// ============================================================================
event.Skip();
}
+void DirCtrlWidgetsPage::OnFileActivated(wxTreeEvent& event)
+{
+ if ( m_dirCtrl )
+ {
+ wxLogMessage("File activated \"%s\"",
+ m_dirCtrl->GetPath(event.GetItem()));
+ }
+
+ event.Skip();
+}
+
#endif // wxUSE_DIRDLG