]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/control.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKCONTROLH__
11 #define __GTKCONTROLH__
18 #include "wx/object.h"
20 #include "wx/window.h"
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 extern const wxChar
* wxControlNameStr
;
34 class wxControl
: public wxControlBase
38 wxControl(wxWindow
*parent
, wxWindowID id
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
, long style
= 0,
42 const wxValidator
& validator
= wxDefaultValidator
,
44 const wxString
& name
= wxControlNameStr
)
46 Create(parent
, id
, pos
, size
, style
,
53 bool Create(wxWindow
*parent
, wxWindowID id
,
54 const wxPoint
& pos
= wxDefaultPosition
,
55 const wxSize
& size
= wxDefaultSize
, long style
= 0,
57 const wxValidator
& validator
= wxDefaultValidator
,
59 const wxString
& name
= wxControlNameStr
);
61 // this function will filter out '&' characters and will put the accelerator
62 // char (the one immediately after '&') into m_chAccel (TODO not yet)
63 virtual void SetLabel( const wxString
&label
);
64 virtual wxString
GetLabel() const;
67 virtual wxSize
DoGetBestSize() const;
70 char m_chAccel
; // enabled to avoid breaking binary compatibility later on
73 DECLARE_DYNAMIC_CLASS(wxControl
)
76 #endif // __GTKCONTROLH__