From 185c4e8cbc2aebe5c6e0d3fd1e8b83bc56e63b1e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 3 Jul 2025 01:04:40 +0200 Subject: [PATCH] Show path from wxDirPickerCtrl in its event handler too Similar to the parent commit, but for wxFilePickerCtrl. --- samples/widgets/dirpicker.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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()); }