]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/control.h
Added size hints to dialog,
[wxWidgets.git] / include / wx / gtk1 / 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 #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 wxControlBase
33 {
34 public:
35 wxControl();
36 wxControl( wxWindow *parent,
37 wxWindowID id,
38 const wxPoint &pos = wxDefaultPosition,
39 const wxSize &size = wxDefaultSize,
40 long style = 0,
41 const wxString &name = wxPanelNameStr );
42
43 // this function will filter out '&' characters and will put the accelerator
44 // char (the one immediately after '&') into m_chAccel (TODO not yet)
45 virtual void SetLabel( const wxString &label );
46 virtual wxString GetLabel() const;
47
48 protected:
49 wxString m_label;
50 char m_chAccel; // enabled to avoid breaking binary compatibility later on
51
52 private:
53 DECLARE_DYNAMIC_CLASS(wxControl)
54 };
55
56 #endif // __GTKCONTROLH__