added wxFileDialog::SetDirectory test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-09-07 19:24:17 +00:00
parent fb817e4c71
commit 5b636c67e2

View File

@@ -460,6 +460,8 @@ void MyFrame::FileOpen(wxCommandEvent& WXUNUSED(event) )
_T("C++ files (*.h;*.cpp)|*.h;*.cpp")
);
dialog.SetDirectory(wxGetHomeDir());
if (dialog.ShowModal() == wxID_OK)
{
wxString info;
@@ -708,11 +710,14 @@ void MyFrame::ShowBusyInfo(wxCommandEvent& WXUNUSED(event))
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();
}
wxSleep(2);
//wxWakeUpIdle();
}
#endif // wxUSE_BUSYINFO