]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/control.h
Doc corrections
[wxWidgets.git] / include / wx / gtk / control.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: control.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __GTKCONTROLH__
12 #define __GTKCONTROLH__
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "wx/defs.h"
19 #include "wx/object.h"
20 #include "wx/list.h"
21 #include "wx/window.h"
22
23 //-----------------------------------------------------------------------------
24 // classes
25 //-----------------------------------------------------------------------------
26
27 class wxControl;
28
29 //-----------------------------------------------------------------------------
30 // wxControl
31 //-----------------------------------------------------------------------------
32
33 class wxControl: public wxWindow
34 {
35 DECLARE_DYNAMIC_CLASS(wxControl)
36
37 public:
38 wxControl();
39 wxControl( wxWindow *parent, wxWindowID id,
40 const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
41 long style = 0, const wxString &name = wxPanelNameStr );
42
43 virtual void Command( wxCommandEvent &event );
44
45 // this function will filter out '&' characters and will put the accelerator
46 // char (the one immediately after '&') into m_chAccel (@@ not yet)
47 virtual void SetLabel( const wxString &label );
48 virtual wxString GetLabel() const;
49
50 protected:
51 wxString m_label;
52 char m_chAccel; // enabled to avoid breaking binary compatibility later on
53 };
54
55 #endif // __GTKCONTROLH__