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