]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/control.h
The rounded corners look really dumb at this size.
[wxWidgets.git] / include / wx / osx / control.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/control.h
3 // Purpose: wxControl class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_CONTROL_H_
12 #define _WX_CONTROL_H_
13
14 WXDLLIMPEXP_DATA_CORE(extern const char) wxControlNameStr[];
15
16 // General item class
17 class WXDLLIMPEXP_CORE wxControl : public wxControlBase
18 {
19 DECLARE_ABSTRACT_CLASS(wxControl)
20
21 public:
22 wxControl();
23 wxControl(wxWindow *parent, wxWindowID winid,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize, long style = 0,
26 const wxValidator& validator = wxDefaultValidator,
27 const wxString& name = wxControlNameStr)
28 {
29 Create(parent, winid, pos, size, style, validator, name);
30 }
31
32 bool Create(wxWindow *parent, wxWindowID winid,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize, long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxControlNameStr);
37
38 // Simulates an event
39 virtual void Command(wxCommandEvent& event) { ProcessCommand(event); }
40
41 // implementation from now on
42 // --------------------------
43
44 // Calls the callback and appropriate event handlers
45 bool ProcessCommand(wxCommandEvent& event);
46
47 void OnKeyDown( wxKeyEvent &event ) ;
48 };
49
50 #endif
51 // _WX_CONTROL_H_