]>
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 | ||
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 | { | |
2a4f4a27 | 35 | DECLARE_DYNAMIC_CLASS(wxControl) |
c801d85f | 36 | |
2a4f4a27 | 37 | public: |
2a4f4a27 VZ |
38 | wxControl(); |
39 | wxControl( wxWindow *parent, wxWindowID id, | |
c801d85f | 40 | const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, |
debe6624 | 41 | long style = 0, const wxString &name = wxPanelNameStr ); |
2a4f4a27 | 42 | |
2a4f4a27 VZ |
43 | virtual void Command( wxCommandEvent &event ); |
44 | ||
2a4f4a27 VZ |
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; | |
d3904ceb | 52 | char m_chAccel; // enabled to avoid breaking binary compatibility later on |
c801d85f KB |
53 | }; |
54 | ||
55 | #endif // __GTKCONTROLH__ |