1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxControl class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CONTROL_H_
13 #define _WX_CONTROL_H_
15 WXDLLIMPEXP_DATA_CORE(extern const char) wxControlNameStr
[];
18 class WXDLLIMPEXP_CORE wxControl
: public wxControlBase
20 DECLARE_ABSTRACT_CLASS(wxControl
)
24 wxControl(wxWindow
*parent
, wxWindowID winid
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
, long style
= 0,
27 const wxValidator
& validator
= wxDefaultValidator
,
28 const wxString
& name
= wxControlNameStr
)
30 Create(parent
, winid
, pos
, size
, style
, validator
, name
);
33 bool Create(wxWindow
*parent
, wxWindowID winid
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
, long style
= 0,
36 const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxControlNameStr
);
41 virtual void Command(wxCommandEvent
& event
) { ProcessCommand(event
); }
43 // implementation from now on
44 // --------------------------
46 // Calls the callback and appropriate event handlers
47 bool ProcessCommand(wxCommandEvent
& event
);
49 void OnKeyDown( wxKeyEvent
&event
) ;