From b85e7dcfac06381ed07f546886bacb73a17895bd Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sat, 11 Oct 2008 16:03:59 +0000 Subject: [PATCH] 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 --- utils/screenshotgen/src/screenshot_main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.45.2