2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: button.h
|
|
|
|
// Purpose: wxButton class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Stefan Csomor
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_BUTTON_H_
|
|
|
|
#define _WX_BUTTON_H_
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
#include "wx/gdicmn.h"
|
|
|
|
|
2006-01-16 09:59:55 -05:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
// Pushbutton
|
|
|
|
class WXDLLEXPORT wxButton: public wxButtonBase
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxButton)
|
|
|
|
public:
|
|
|
|
inline wxButton() {}
|
2004-08-30 10:42:51 -04:00
|
|
|
inline wxButton(wxWindow *parent, wxWindowID id,
|
|
|
|
const wxString& label = wxEmptyString,
|
2004-03-23 12:35:05 -05:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2004-08-30 10:42:51 -04:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
|
|
|
const wxString& label = wxEmptyString,
|
2004-03-23 12:35:05 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr);
|
2004-08-15 11:56:56 -04:00
|
|
|
|
2004-04-13 01:28:25 -04:00
|
|
|
virtual wxInt32 MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
|
2004-03-23 12:35:05 -05:00
|
|
|
static wxSize GetDefaultSize();
|
|
|
|
|
|
|
|
virtual void SetDefault();
|
|
|
|
virtual void Command(wxCommandEvent& event);
|
|
|
|
protected:
|
|
|
|
virtual wxSize DoGetBestSize() const ;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_BUTTON_H_
|