- m_button = new wxButton(this, ButtonPage_Button, label,
- wxDefaultPosition, wxDefaultSize,
- flags);
+#if wxUSE_COMMANDLINKBUTTON
+ m_cmdLnkButton = NULL;
+
+ if ( m_chkCommandLink->GetValue() )
+ {
+ m_cmdLnkButton = new wxCommandLinkButton(this, ButtonPage_Button,
+ label,
+ m_textNote->GetValue(),
+ wxDefaultPosition,
+ wxDefaultSize,
+ flags);
+ m_button = m_cmdLnkButton;
+ }
+ else
+#endif // wxUSE_COMMANDLINKBUTTON
+ {
+ m_button = new wxButton(this, ButtonPage_Button, label,
+ wxDefaultPosition, wxDefaultSize,
+ flags);
+ }