]>
git.saurik.com Git - wxWidgets.git/blob - src/generic/commandlinkbuttong.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/generic/commandlinkbuttong.cpp
3 // Purpose: wxGenericCommandLinkButton
4 // Author: Rickard Westerlund
7 // Copyright: (c) 2010 wxWidgets team
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ----------------------------------------------------------------------------
13 // ----------------------------------------------------------------------------
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #if wxUSE_COMMANDLINKBUTTON
24 #include "wx/commandlinkbutton.h"
25 #include "wx/artprov.h"
27 #if wxUSE_EXTENDED_RTTI
28 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxCommandLinkButton
, wxButton
, "wx/commandlinkbutton.h")
30 wxIMPLEMENT_DYNAMIC_CLASS(wxCommandLinkButton
, wxButton
)
31 #endif // wxUSE_EXTENDED_RTTI
33 // ----------------------------------------------------------------------------
34 // Generic command link button
35 // ----------------------------------------------------------------------------
37 bool wxGenericCommandLinkButton::Create(wxWindow
*parent
,
39 const wxString
& mainLabel
,
44 const wxValidator
& validator
,
47 if ( !wxButton::Create(parent
,
49 mainLabel
+ '\n' + note
,
57 if ( !HasNativeBitmap() )
64 void wxGenericCommandLinkButton::SetDefaultBitmap()
66 SetBitmap(wxArtProvider::GetBitmap(wxART_GO_FORWARD
, wxART_BUTTON
));
69 #endif // wxUSE_COMMANDLINKBUTTON