1998-09-18 06:19:10 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-07-25 10:31:55 -04:00
|
|
|
// Name: wx/motif/button.h
|
1998-09-18 06:19:10 -04:00
|
|
|
// Purpose: wxButton class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-09-18 06:19:10 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_BUTTON_H_
|
|
|
|
#define _WX_BUTTON_H_
|
|
|
|
|
|
|
|
// Pushbutton
|
2003-03-10 16:39:01 -05:00
|
|
|
class WXDLLEXPORT wxButton: public wxButtonBase
|
1998-09-18 06:19:10 -04:00
|
|
|
{
|
1999-07-23 17:03:02 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxButton)
|
2006-07-25 10:31:55 -04:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
public:
|
|
|
|
wxButton() { }
|
|
|
|
wxButton(wxWindow *parent,
|
2002-02-05 11:34:33 -05:00
|
|
|
wxWindowID id,
|
2004-08-30 10:42:51 -04:00
|
|
|
const wxString& label = wxEmptyString,
|
2002-02-05 11:34:33 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr)
|
1999-07-23 17:03:02 -04:00
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, validator, name);
|
|
|
|
}
|
2006-07-25 10:31:55 -04:00
|
|
|
|
2004-08-30 10:42:51 -04:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
|
|
|
const wxString& label = wxEmptyString,
|
2002-02-05 11:34:33 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxButtonNameStr);
|
2006-07-25 10:31:55 -04:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
virtual void SetDefault();
|
|
|
|
virtual void Command(wxCommandEvent& event);
|
2006-07-25 10:31:55 -04:00
|
|
|
|
1999-08-02 00:19:49 -04:00
|
|
|
static wxSize GetDefaultSize();
|
2006-07-25 10:31:55 -04:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
// Implementation
|
2006-07-25 09:53:55 -04:00
|
|
|
protected:
|
|
|
|
|
2003-03-02 05:09:25 -05:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
2006-07-25 09:53:55 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
2005-08-28 03:51:59 -04:00
|
|
|
virtual wxSize GetMinSize() const;
|
2004-05-02 04:14:39 -04:00
|
|
|
wxSize OldGetBestSize() const;
|
2005-08-28 03:51:59 -04:00
|
|
|
wxSize OldGetMinSize() const;
|
2003-03-02 05:09:25 -05:00
|
|
|
void SetDefaultShadowThicknessAndResize();
|
1998-09-18 06:19:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2002-02-05 11:34:33 -05:00
|
|
|
// _WX_BUTTON_H_
|