]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/button.h
wxDialog::Show is virtual as elsewhere. Native PalmOS progress dialog.
[wxWidgets.git] / include / wx / mac / carbon / button.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.h
3// Purpose: wxButton class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUTTON_H_
13#define _WX_BUTTON_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "button.h"
17#endif
18
19#include "wx/control.h"
20#include "wx/gdicmn.h"
21
22WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
23
24// Pushbutton
25class WXDLLEXPORT wxButton: public wxButtonBase
26{
27 DECLARE_DYNAMIC_CLASS(wxButton)
28 public:
29 inline wxButton() {}
5f7bcb48
VS
30 inline wxButton(wxWindow *parent, wxWindowID id,
31 const wxString& label = wxEmptyString,
8cf73271
SC
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize, long style = 0,
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxButtonNameStr)
36 {
37 Create(parent, id, label, pos, size, style, validator, name);
38 }
39
5f7bcb48
VS
40 bool Create(wxWindow *parent, wxWindowID id,
41 const wxString& label = wxEmptyString,
8cf73271
SC
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize, long style = 0,
44 const wxValidator& validator = wxDefaultValidator,
45 const wxString& name = wxButtonNameStr);
401e3b6e 46
336a6aba 47 virtual wxInt32 MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ;
8cf73271
SC
48 static wxSize GetDefaultSize();
49
50 virtual void SetDefault();
51 virtual void Command(wxCommandEvent& event);
52protected:
53 virtual wxSize DoGetBestSize() const ;
54};
55
56#endif
57 // _WX_BUTTON_H_