]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/control.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / osx / control.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/control.h
6762286d
SC
3// Purpose: wxControl class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
6762286d
SC
7// Copyright: (c) Stefan Csomor
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_CONTROL_H_
12#define _WX_CONTROL_H_
13
14WXDLLIMPEXP_DATA_CORE(extern const char) wxControlNameStr[];
15
16// General item class
17class WXDLLIMPEXP_CORE wxControl : public wxControlBase
18{
19 DECLARE_ABSTRACT_CLASS(wxControl)
20
21public:
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);
6762286d
SC
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
5c6eb3a8 50#endif
6762286d 51 // _WX_CONTROL_H_