]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/panelg.h
wxEventType alterations.
[wxWidgets.git] / include / wx / generic / panelg.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: panelg.h
3// Purpose: wxPanel: similar to wxWindows but is coloured as for a dialog
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c)
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __PANELH_G__
13#define __PANELH_G__
14
15#ifdef __GNUG__
16#pragma interface "panelg.h"
17#endif
18
19#include "wx/window.h"
20
21WXDLLEXPORT_DATA(extern const char*) wxPanelNameStr;
22
23// Dialog boxes
24class WXDLLEXPORT wxPanel: public wxWindow
25{
26 DECLARE_DYNAMIC_CLASS(wxPanel)
27public:
28
29 wxPanel(void);
30
31 // Old-style constructor
32 inline wxPanel(wxWindow *parent,
33 const int x = -1, const int y= -1, const int width = 500, const int height = 500,
34 const long style = wxTAB_TRAVERSAL | wxNO_BORDER,
35 const wxString& name = wxPanelNameStr)
36 {
37 Create(parent, -1, wxPoint(x, y), wxSize(width, height), style, name);
38 }
39
40 // Constructor
41 inline wxPanel(wxWindow *parent, const wxWindowID id,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 const long style = wxTAB_TRAVERSAL | wxNO_BORDER,
45 const wxString& name = wxPanelNameStr)
46 {
47 Create(parent, id, pos, size, style, name);
48 }
49
50 bool Create(wxWindow *parent, const wxWindowID id,
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 const long style = wxTAB_TRAVERSAL | wxNO_BORDER,
54 const wxString& name = wxPanelNameStr);
55
56 void OnPaint(wxPaintEvent& event);
57
58 // Sends an OnInitDialog event, which in turns transfers data to
59 // to the dialog via validators.
60 virtual void InitDialog(void);
61
62 // Responds to colour changes
63 void OnSysColourChanged(wxSysColourChangedEvent& event);
64
65DECLARE_EVENT_TABLE()
66};
67
68#endif
69 // __PANELH_G__