From: Francesco Montorsi Date: Sat, 11 Oct 2008 16:03:59 +0000 (+0000) Subject: init the file and dir pickers with dummy files/folders X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b85e7dcfac06381ed07f546886bacb73a17895bd init the file and dir pickers with dummy files/folders git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/screenshotgen/src/screenshot_main.cpp b/utils/screenshotgen/src/screenshot_main.cpp index 165f714414..0d9185147f 100644 --- a/utils/screenshotgen/src/screenshot_main.cpp +++ b/utils/screenshotgen/src/screenshot_main.cpp @@ -114,6 +114,18 @@ void ScreenshotFrame::InitFBControls() m_listCtrl1->SetItem(index, 1, wxString::Format("%d", index)); } + // Init file and dir pickers + wxString file, dir; +#if defined(__WXMSW__) + file = "C:\\Windows\\explorer.exe"; + dir = "C:\\Windows"; +#else + file = "/bin/bash"; + dir = "/home"; +#endif + m_filePicker1->SetPath(file); + m_dirPicker1->SetPath(dir); + // Check the first item in wxCheckListBox m_checkList1->Check(0);