diff --git a/samples/widgets/dirpicker.cpp b/samples/widgets/dirpicker.cpp index 6494fe3ba8..dd15437716 100644 --- a/samples/widgets/dirpicker.cpp +++ b/samples/widgets/dirpicker.cpp @@ -249,6 +249,12 @@ void DirPickerWidgetsPage::OnButtonReset(wxCommandEvent& WXUNUSED(event)) void DirPickerWidgetsPage::OnDirChange(wxFileDirPickerEvent& event) { + wxLogMessage("The directory changed to '%s' (the control has '%s')." + "The current working directory is '%s'", + event.GetPath(), + m_dirPicker->GetDirName().GetFullPath(), + wxGetCwd()); + wxLogMessage("The directory changed to '%s' ! The current working directory is '%s'", event.GetPath(), wxGetCwd()); }