Made wxBitmap derive from wxGDIObject, Removed #ifdefs around destrctors for GDI lists (wxBrushList etc), Created wxEVT_COMMAND_SPINCTRL_UPDATE with obvious usage. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
56 lines
1.3 KiB
C++
56 lines
1.3 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: busyinfo.cpp
|
|
// Purpose: Information window when app is busy
|
|
// Author: Vaclav Slavik
|
|
// Copyright: (c) 1999 Vaclav Slavik
|
|
// Licence: wxWindows Licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation "busyinfo.h"
|
|
#endif
|
|
|
|
#include "wx/wxprec.h"
|
|
|
|
#ifdef __BORDLANDC__
|
|
#pragma hdrstop
|
|
#endif
|
|
|
|
#if wxUSE_BUSYINFO
|
|
|
|
#include "wx/busyinfo.h"
|
|
#include "wx/stattext.h"
|
|
#include "wx/panel.h"
|
|
#include "wx/utils.h"
|
|
|
|
|
|
wxInfoFrame::wxInfoFrame(wxWindow *parent, const wxString& message)
|
|
: wxFrame(parent, -1, wxT(""), wxPoint(0, 0), wxSize(400, 80), wxTHICK_FRAME | wxSIMPLE_BORDER | wxFRAME_TOOL_WINDOW)
|
|
{
|
|
wxPanel *p = new wxPanel( this );
|
|
wxStaticText *s = new wxStaticText( p, -1, message, wxPoint(20, 20), wxSize(360, 40), wxALIGN_CENTER );
|
|
Centre(wxBOTH);
|
|
p->SetCursor(*wxHOURGLASS_CURSOR);
|
|
s->SetCursor(*wxHOURGLASS_CURSOR);
|
|
}
|
|
|
|
wxBusyInfo::wxBusyInfo(const wxString& message) : wxObject()
|
|
{
|
|
m_InfoFrame = new wxInfoFrame( (wxWindow*) NULL, message);
|
|
m_InfoFrame->Show(TRUE);
|
|
wxYield();
|
|
m_InfoFrame->Refresh();
|
|
wxYield();
|
|
}
|
|
|
|
wxBusyInfo::~wxBusyInfo()
|
|
{
|
|
m_InfoFrame->Show(FALSE);
|
|
m_InfoFrame->Close();
|
|
wxYield();
|
|
}
|
|
|
|
#endif
|
|
// wxUSE_BUSYINFO
|
|
|