1999-01-01 16:05:26 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: button.h
|
|
|
|
// Purpose: wxButton class
|
|
|
|
// Author: AUTHOR
|
|
|
|
// Modified by:
|
|
|
|
// Created: ??/??/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) AUTHOR
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_BUTTON_H_
|
|
|
|
#define _WX_BUTTON_H_
|
|
|
|
|
2002-08-31 11:29:13 +00:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
1999-01-01 16:05:26 +00:00
|
|
|
#pragma interface "button.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
#include "wx/gdicmn.h"
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
|
|
|
|
|
|
|
|
// Pushbutton
|
2001-06-28 06:24:17 +00:00
|
|
|
class WXDLLEXPORT wxButton: public wxButtonBase
|
1999-01-01 16:05:26 +00:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxButton)
|
|
|
|
public:
|
|
|
|
inline wxButton() {}
|
|
|
|
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, validator, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr);
|
|
|
|
|
2002-01-04 17:13:39 +00:00
|
|
|
virtual void MacHandleControlClick( WXWidget control , short controlpart ) ;
|
1999-11-09 15:24:52 +00:00
|
|
|
static wxSize GetDefaultSize();
|
|
|
|
|
1999-01-01 16:05:26 +00:00
|
|
|
virtual void SetDefault();
|
|
|
|
virtual void Command(wxCommandEvent& event);
|
1999-11-09 15:24:52 +00:00
|
|
|
protected:
|
2000-01-13 07:57:22 +00:00
|
|
|
virtual wxSize DoGetBestSize() const ;
|
1999-01-01 16:05:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_BUTTON_H_
|