]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/control.h
use wxString, not wxChar*, in wxDataFormat ctor and SetId() method
[wxWidgets.git] / include / wx / mac / carbon / control.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: control.h
3// Purpose: wxControl class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CONTROL_H_
13#define _WX_CONTROL_H_
14
63ec432b 15WXDLLEXPORT_DATA(extern const wxChar) wxControlNameStr[];
8cf73271
SC
16
17// General item class
18class WXDLLEXPORT wxControl : public wxControlBase
19{
20 DECLARE_ABSTRACT_CLASS(wxControl)
21
22public:
23 wxControl();
7af76fc1 24 wxControl(wxWindow *parent, wxWindowID winid,
8cf73271
SC
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize, long style = 0,
27 const wxValidator& validator = wxDefaultValidator,
28 const wxString& name = wxControlNameStr)
29 {
7af76fc1 30 Create(parent, winid, pos, size, style, validator, name);
8cf73271
SC
31 }
32
7af76fc1 33 bool Create(wxWindow *parent, wxWindowID winid,
8cf73271
SC
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize, long style = 0,
36 const wxValidator& validator = wxDefaultValidator,
37 const wxString& name = wxControlNameStr);
38 virtual ~wxControl();
39
40 // Simulates an event
41 virtual void Command(wxCommandEvent& event) { ProcessCommand(event); }
42
43 // implementation from now on
44 // --------------------------
45
46 // Calls the callback and appropriate event handlers
47 bool ProcessCommand(wxCommandEvent& event);
8cf73271 48
4f305456 49 void OnKeyDown( wxKeyEvent &event ) ;
8cf73271
SC
50};
51
8cf73271
SC
52#endif
53 // _WX_CONTROL_H_