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