]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/panelg.h
added AppendText method, now used by operator <<
[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
b292e2f5 23
06b57134 24class WXDLLEXPORT wxPanel : public wxWindow
c801d85f 25{
c801d85f 26public:
e163f7bb 27 wxPanel();
c801d85f 28
e163f7bb
VZ
29 // Old-style constructor (no default values for coordinates to avoid ambiguity
30 // with the new one)
06b57134
VZ
31 wxPanel(wxWindow *parent,
32 int x, int y, int width, int height,
33 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
34 const wxString& name = wxPanelNameStr)
c801d85f
KB
35 {
36 Create(parent, -1, wxPoint(x, y), wxSize(width, height), style, name);
37 }
38
39 // Constructor
06b57134
VZ
40 wxPanel(wxWindow *parent,
41 wxWindowID id = -1,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
45 const wxString& name = wxPanelNameStr)
c801d85f
KB
46 {
47 Create(parent, id, pos, size, style, name);
48 }
49
debe6624 50 bool Create(wxWindow *parent, wxWindowID id,
e163f7bb
VZ
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 long style = wxTAB_TRAVERSAL | wxNO_BORDER,
54 const wxString& name = wxPanelNameStr);
c801d85f
KB
55
56 // Sends an OnInitDialog event, which in turns transfers data to
57 // to the dialog via validators.
e163f7bb 58 virtual void InitDialog();
c801d85f 59
e163f7bb 60 // Responds to colour changes
c801d85f 61 void OnSysColourChanged(wxSysColourChangedEvent& event);
b292e2f5 62
e163f7bb
VZ
63 // Process a keyboard navigation message (Tab traversal)
64 void OnNavigationKey(wxNavigationKeyEvent& event);
c801d85f 65
06b57134
VZ
66 // override base class virtuals
67 // we don't want focus for ourselves
68 virtual bool AcceptsFocus() const { return FALSE; }
69
70private:
71 DECLARE_DYNAMIC_CLASS(wxPanel)
72 DECLARE_EVENT_TABLE()
c801d85f
KB
73};
74
75#endif
76 // __PANELH_G__