]>
git.saurik.com Git - wxWidgets.git/blob - src/generic/busyinfo.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Information window when app is busy
4 // Author: Vaclav Slavik
5 // Copyright: (c) 1999 Vaclav Slavik
6 // Licence: wxWindows Licence
7 /////////////////////////////////////////////////////////////////////////////
10 #pragma implementation "busyinfo.h"
13 #include "wx/wxprec.h"
21 #include "wx/busyinfo.h"
22 #include "wx/stattext.h"
27 wxInfoFrame::wxInfoFrame(wxWindow
*parent
, const wxString
& message
)
28 : wxFrame(parent
, -1, "", wxPoint(0, 0), wxSize(400, 80), wxTHICK_FRAME
| wxSIMPLE_BORDER
| wxFRAME_TOOL_WINDOW
)
30 wxPanel
*p
= new wxPanel( this );
31 wxStaticText
*s
= new wxStaticText( p
, -1, message
, wxPoint(20, 20), wxSize(360, 40), wxALIGN_CENTER
);
33 p
->SetCursor(*wxHOURGLASS_CURSOR
);
34 s
->SetCursor(*wxHOURGLASS_CURSOR
);
37 wxBusyInfo::wxBusyInfo(const wxString
& message
) : wxObject()
39 m_InfoFrame
= new wxInfoFrame( (wxWindow
*) NULL
, message
);
40 m_InfoFrame
->Show(TRUE
);
42 m_InfoFrame
->Refresh();
46 wxBusyInfo::~wxBusyInfo()
48 m_InfoFrame
->Show(FALSE
);