mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-21 13:26:08 +08:00
Show path from wxDirPickerCtrl in its event handler too
Similar to the parent commit, but for wxFilePickerCtrl.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user