]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/panelg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/panelg.h
3 // Purpose: wxPanel: a container for child controls
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GENERIC_PANELG_H_
13 #define _WX_GENERIC_PANELG_H_
15 #include "wx/bitmap.h"
17 class WXDLLIMPEXP_CORE wxPanel
: public wxPanelBase
23 wxPanel(wxWindow
*parent
,
24 wxWindowID winid
= wxID_ANY
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
27 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
,
28 const wxString
& name
= wxPanelNameStr
)
30 Create(parent
, winid
, pos
, size
, style
, name
);
33 #ifdef WXWIN_COMPATIBILITY_2_8
34 wxDEPRECATED_CONSTRUCTOR(
35 wxPanel(wxWindow
*parent
,
36 int x
, int y
, int width
, int height
,
37 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
,
38 const wxString
& name
= wxPanelNameStr
)
40 Create(parent
, wxID_ANY
, wxPoint(x
, y
), wxSize(width
, height
), style
, name
);
43 #endif // WXWIN_COMPATIBILITY_2_8
46 virtual void DoSetBackgroundBitmap(const wxBitmap
& bmp
);
49 // Event handler for erasing the background which is only used when we have
50 // a valid background bitmap.
51 void OnEraseBackground(wxEraseEvent
& event
);
54 // The bitmap used for painting the background if valid.
57 wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel
);
60 #endif // _WX_GENERIC_PANELG_H_