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