Use svg files in wizard sample
This commit is contained in:
@@ -37,9 +37,6 @@
|
||||
#include "wx/textctrl.h"
|
||||
#include "wx/wizard.h"
|
||||
|
||||
#include "wiztest.xpm"
|
||||
#include "wiztest2.xpm"
|
||||
|
||||
#include "../sample.xpm"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -122,7 +119,7 @@ class wxValidationPage : public wxWizardPageSimple
|
||||
public:
|
||||
wxValidationPage(wxWizard *parent) : wxWizardPageSimple(parent)
|
||||
{
|
||||
m_bitmap = wxBitmap(wiztest2_xpm);
|
||||
m_bitmap = wxBitmapBundle::FromSVGFile("wiztest2.svg", wxSize(116, 260));
|
||||
|
||||
m_checkbox = new wxCheckBox(this, wxID_ANY, "&Check me");
|
||||
|
||||
@@ -383,7 +380,8 @@ MyWizard::MyWizard(wxFrame *frame, bool useSizer)
|
||||
SetExtraStyle(wxWIZARD_EX_HELPBUTTON);
|
||||
|
||||
Create(frame,wxID_ANY,"Absolutely Useless Wizard",
|
||||
wxBitmap(wiztest_xpm),wxDefaultPosition,
|
||||
wxBitmapBundle::FromSVGFile("wiztest.svg", wxSize(116, 260)),
|
||||
wxDefaultPosition,
|
||||
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
|
||||
SetIcon(wxICON(sample));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user