// for all others, include the necessary headers
#ifndef WX_PRECOMP
+ #include "wx/app.h"
#include "wx/log.h"
#include "wx/button.h"
#include "wx/textctrl.h"
#endif
+#include "wx/artprov.h"
#include "wx/sizer.h"
#include "widgets.h"
wxTextCtrl *m_textLabel;
private:
- DECLARE_EVENT_TABLE();
- DECLARE_WIDGETS_PAGE(ButtonWidgetsPage);
+ DECLARE_EVENT_TABLE()
+ DECLARE_WIDGETS_PAGE(ButtonWidgetsPage)
};
// ----------------------------------------------------------------------------
sizerRight->Add(0, 0, 1, wxCENTRE);
sizerRight->Add(m_button, 1, wxCENTRE);
sizerRight->Add(0, 0, 1, wxCENTRE);
- sizerRight->SetMinSize(250, 0);
+ sizerRight->SetMinSize(150, 0);
m_sizerButton = sizerRight; // save it to modify it later
// the 3 panes panes compose the window
size_t count = m_sizerButton->GetChildren().GetCount();
for ( size_t n = 0; n < count; n++ )
{
- m_sizerButton->Remove(0);
+ m_sizerButton->Remove( 0 );
}
delete m_button;
switch ( m_radioHAlign->GetSelection() )
{
case ButtonHAlign_Left:
- flags |= wxALIGN_LEFT;
+ flags |= wxBU_LEFT;
break;
default:
// fall through
case ButtonHAlign_Centre:
- flags |= wxALIGN_CENTRE_HORIZONTAL;
break;
case ButtonHAlign_Right:
- flags |= wxALIGN_RIGHT;
+ flags |= wxBU_RIGHT;
break;
}
switch ( m_radioVAlign->GetSelection() )
{
case ButtonVAlign_Top:
- flags |= wxALIGN_TOP;
+ flags |= wxBU_TOP;
break;
default:
break;
case ButtonVAlign_Bottom:
- flags |= wxALIGN_BOTTOM;
+ flags |= wxBU_BOTTOM;
break;
}
#ifdef __WXUNIVERSAL__
if ( m_chkImage->GetValue() )
{
- m_button->SetImageLabel(wxTheApp->GetStdIcon(wxICON_INFORMATION));
+ m_button->SetImageLabel(wxArtProvider::GetIcon(wxART_INFORMATION));
}
#endif // wxUniv