]> git.saurik.com Git - wxWidgets.git/blame - include/wx/button.h
Forbid setting hints for multi-line text controls.
[wxWidgets.git] / include / wx / button.h
CommitLineData
1e6feb95
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/button.h
3// Purpose: wxButtonBase class
4// Author: Vadim Zetlin
5// Modified by:
6// Created: 15.08.00
7// RCS-ID: $Id$
8// Copyright: (c) Vadim Zetlin
65571936 9// Licence: wxWindows licence
1e6feb95
VZ
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_BUTTON_H_BASE_
13#define _WX_BUTTON_H_BASE_
c801d85f 14
997176a3
VZ
15#include "wx/defs.h"
16
0b4f47a3
DS
17#if wxUSE_BUTTON
18
b4354db1 19#include "wx/anybutton.h"
1e6feb95 20
53a2db12 21extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[];
1e6feb95
VZ
22
23// ----------------------------------------------------------------------------
24// wxButton: a push button
25// ----------------------------------------------------------------------------
26
b4354db1 27class WXDLLIMPEXP_CORE wxButtonBase : public wxAnyButton
1e6feb95
VZ
28{
29public:
6463b9f5 30 wxButtonBase() { }
fc7a2a60 31
f2d7fdf7
VZ
32 // show the authentication needed symbol on the button: this is currently
33 // only implemented on Windows Vista and newer (on which it shows the UAC
34 // shield symbol)
35 void SetAuthNeeded(bool show = true) { DoSetAuthNeeded(show); }
36 bool GetAuthNeeded() const { return DoGetAuthNeeded(); }
37
94aff5ff
VZ
38 // make this button the default button in its top level window
39 //
40 // returns the old default item (possibly NULL)
41 virtual wxWindow *SetDefault();
1e6feb95
VZ
42
43 // returns the default button size for this platform
44 static wxSize GetDefaultSize();
fc7a2a60 45
233f10bf 46protected:
c0c133e1 47 wxDECLARE_NO_COPY_CLASS(wxButtonBase);
1e6feb95
VZ
48};
49
50#if defined(__WXUNIVERSAL__)
51 #include "wx/univ/button.h"
52#elif defined(__WXMSW__)
53 #include "wx/msw/button.h"
2049ba38 54#elif defined(__WXMOTIF__)
1e6feb95 55 #include "wx/motif/button.h"
1be7a35c 56#elif defined(__WXGTK20__)
1e6feb95 57 #include "wx/gtk/button.h"
1be7a35c
MR
58#elif defined(__WXGTK__)
59 #include "wx/gtk1/button.h"
34138703 60#elif defined(__WXMAC__)
ef0e9220 61 #include "wx/osx/button.h"
e64df9bc
DE
62#elif defined(__WXCOCOA__)
63 #include "wx/cocoa/button.h"
1777b9bb 64#elif defined(__WXPM__)
1e6feb95 65 #include "wx/os2/button.h"
c801d85f
KB
66#endif
67
1e6feb95
VZ
68#endif // wxUSE_BUTTON
69
b4354db1 70#endif // _WX_BUTTON_H_BASE_