]>
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 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxCommandLinkButton
, wxButton
, "wx/commandlinkbutton.h")
29 // ----------------------------------------------------------------------------
30 // Generic command link button
31 // ----------------------------------------------------------------------------
33 bool wxGenericCommandLinkButton::Create(wxWindow
*parent
,
35 const wxString
& mainLabel
,
40 const wxValidator
& validator
,
43 if ( !wxButton::Create(parent
,
45 mainLabel
+ '\n' + note
,
53 if ( !HasNativeBitmap() )
60 void wxGenericCommandLinkButton::SetDefaultBitmap()
62 SetBitmap(wxArtProvider::GetBitmap(wxART_GO_FORWARD
, wxART_BUTTON
));
65 #endif // wxUSE_COMMANDLINKBUTTON