]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/control.h
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 WXDLLEXPORT_DATA(extern const wxChar
) wxControlNameStr
[];
18 class WXDLLEXPORT wxControl
: public wxControlBase
20 DECLARE_ABSTRACT_CLASS(wxControl
)
24 wxControl(wxWindow
*parent
, wxWindowID id
,
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
, id
, pos
, size
, style
, validator
, name
);
33 bool Create(wxWindow
*parent
, wxWindowID id
,
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
) ;