1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/control.h
3 // Purpose: wxControl class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_CONTROL_H_
12 #define _WX_CONTROL_H_
14 WXDLLIMPEXP_DATA_CORE(extern const char) wxControlNameStr
[];
17 class WXDLLIMPEXP_CORE wxControl
: public wxControlBase
19 DECLARE_ABSTRACT_CLASS(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
)
29 Create(parent
, winid
, pos
, size
, style
, validator
, name
);
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
);
39 virtual void Command(wxCommandEvent
& event
) { ProcessCommand(event
); }
41 // implementation from now on
42 // --------------------------
44 // Calls the callback and appropriate event handlers
45 bool ProcessCommand(wxCommandEvent
& event
);
47 void OnKeyDown( wxKeyEvent
&event
) ;