2009-01-17 05:43:43 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-19 20:14:35 -04:00
|
|
|
// Name: wx/osx/control.h
|
2009-01-17 05:43:43 -05:00
|
|
|
// Purpose: wxControl class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// Copyright: (c) Stefan Csomor
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_CONTROL_H_
|
|
|
|
#define _WX_CONTROL_H_
|
|
|
|
|
|
|
|
WXDLLIMPEXP_DATA_CORE(extern const char) wxControlNameStr[];
|
|
|
|
|
|
|
|
// General item class
|
|
|
|
class WXDLLIMPEXP_CORE wxControl : public wxControlBase
|
|
|
|
{
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_ABSTRACT_CLASS(wxControl);
|
2009-01-17 05:43:43 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
wxControl();
|
|
|
|
wxControl(wxWindow *parent, wxWindowID winid,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
2019-10-22 06:34:29 -04:00
|
|
|
const wxString& name = wxASCII_STR(wxControlNameStr))
|
2009-01-17 05:43:43 -05:00
|
|
|
{
|
|
|
|
Create(parent, winid, pos, size, style, validator, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxWindowID winid,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
2019-10-22 06:34:29 -04:00
|
|
|
const wxString& name = wxASCII_STR(wxControlNameStr));
|
2009-01-17 05:43:43 -05:00
|
|
|
|
|
|
|
// Simulates an event
|
2019-04-05 14:08:53 -04:00
|
|
|
virtual void Command(wxCommandEvent& event) wxOVERRIDE { ProcessCommand(event); }
|
2009-01-17 05:43:43 -05:00
|
|
|
|
|
|
|
// implementation from now on
|
|
|
|
// --------------------------
|
|
|
|
|
|
|
|
// Calls the callback and appropriate event handlers
|
|
|
|
bool ProcessCommand(wxCommandEvent& event);
|
|
|
|
|
|
|
|
void OnKeyDown( wxKeyEvent &event ) ;
|
|
|
|
};
|
|
|
|
|
2008-06-11 12:30:48 -04:00
|
|
|
#endif
|
2009-01-17 05:43:43 -05:00
|
|
|
// _WX_CONTROL_H_
|