// Purpose: Part of the widgets sample showing wxGenericDirCtrl
// Author: Wlodzimierz 'ABX' Skiba
// Created: 4 Oct 2006
-// Id: $Id$
// Copyright: (c) 2006 wxWindows team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
void OnCheckBox(wxCommandEvent& event);
void OnRadioBox(wxCommandEvent& event);
void OnSelChanged(wxTreeEvent& event);
+ void OnFileActivated(wxTreeEvent& event);
// reset the control parameters
void Reset();
EVT_CHECKBOX(wxID_ANY, DirCtrlWidgetsPage::OnCheckBox)
EVT_RADIOBOX(wxID_ANY, DirCtrlWidgetsPage::OnRadioBox)
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