]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxFileDialog::SetDirectory test
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Sep 2002 19:24:17 +0000 (19:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Sep 2002 19:24:17 +0000 (19:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.cpp

index c347fda919846997f99d4e6db1d6a87528ae55ef..059006ed3cd9e670d6ecb23a5482e889fc3de787 100644 (file)
@@ -460,6 +460,8 @@ void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) )
                     _T("C++ files (*.h;*.cpp)|*.h;*.cpp")
                  );
 
                     _T("C++ files (*.h;*.cpp)|*.h;*.cpp")
                  );
 
+    dialog.SetDirectory(wxGetHomeDir());
+
     if (dialog.ShowModal() == wxID_OK)
     {
         wxString info;
     if (dialog.ShowModal() == wxID_OK)
     {
         wxString info;
@@ -708,11 +710,14 @@ void MyFrame::ShowBusyInfo(wxCommandEvent& WXUNUSED(event))
 
     wxBusyInfo info("Working, please wait...", this);
 
 
     wxBusyInfo info("Working, please wait...", this);
 
-    for ( int i = 0; i < 30; i++ )
+    for ( int i = 0; i < 18; i++ )
     {
     {
-        wxUsleep(100);
+        //wxUsleep(100);
         wxTheApp->Yield();
     }
         wxTheApp->Yield();
     }
+
+    wxSleep(2);
+    //wxWakeUpIdle();
 }
 
 #endif // wxUSE_BUSYINFO
 }
 
 #endif // wxUSE_BUSYINFO