]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/control.h
"wxGDIObject * => &" related changes (see mail to the list)
[wxWidgets.git] / include / wx / gtk1 / control.h
... / ...
CommitLineData
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
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
27class wxControl;
28
29//-----------------------------------------------------------------------------
30// wxControl
31//-----------------------------------------------------------------------------
32
33class wxControl: public wxWindow
34{
35DECLARE_DYNAMIC_CLASS(wxControl)
36
37public:
38 wxControl();
39 wxControl( wxWindow *parent, wxWindowID id,
40 const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
41 long style = 0, const wxString &name = wxPanelNameStr );
42
43 virtual void Command( wxCommandEvent &event );
44
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
50protected:
51 wxString m_label;
52 char m_chAccel; // enabled to avoid breaking binary compatibility later on
53};
54
55#endif // __GTKCONTROLH__