434c95e1a1
Allow customizing wxBusyInfo window by passing wxBusyInfoFlags containing information about the icon, title, colours and frame transparency to use. Update the sample to show such "rich" busy info. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/generic/busyinfo.h
|
|
// Purpose: Information window (when app is busy)
|
|
// Author: Vaclav Slavik
|
|
// Copyright: (c) 1999 Vaclav Slavik
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_BUSYINFO_H_
|
|
#define _WX_BUSYINFO_H_
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#if wxUSE_BUSYINFO
|
|
|
|
#include "wx/object.h"
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxFrame;
|
|
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
|
|
|
//--------------------------------------------------------------------------------
|
|
// wxBusyInfo
|
|
// Displays progress information
|
|
// Can be used in exactly same way as wxBusyCursor
|
|
//--------------------------------------------------------------------------------
|
|
|
|
class WXDLLIMPEXP_CORE wxBusyInfo : public wxObject
|
|
{
|
|
public:
|
|
wxBusyInfo(const wxBusyInfoFlags& flags)
|
|
{
|
|
Init(flags);
|
|
}
|
|
|
|
wxBusyInfo(const wxString& message, wxWindow *parent = NULL)
|
|
{
|
|
Init(wxBusyInfoFlags().Parent(parent).Label(message));
|
|
}
|
|
|
|
virtual ~wxBusyInfo();
|
|
|
|
private:
|
|
void Init(const wxBusyInfoFlags& flags);
|
|
|
|
wxFrame *m_InfoFrame;
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxBusyInfo);
|
|
};
|
|
|
|
#endif // wxUSE_BUSYINFO
|
|
#endif // _WX_BUSYINFO_H_
|