-
Notifications
You must be signed in to change notification settings - Fork 0
/
FinishWizard.cpp
69 lines (58 loc) · 2.02 KB
/
FinishWizard.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "FinishWizard.h"
//(*InternalHeaders(FinishWizard)
#include <wx/bitmap.h>
#include <wx/intl.h>
#include <wx/image.h>
#include <wx/string.h>
//*)
//(*IdInit(FinishWizard)
const long FinishWizard::ID_STATICTEXT1 = wxNewId();
//*)
#include "Images/Wizard.xpm"
BEGIN_EVENT_TABLE(FinishWizard,wxWizardPageSimple)
//(*EventTable(FinishWizard)
//*)
END_EVENT_TABLE()
FinishWizard::FinishWizard(wxWizard* parent, wxWizardPageSimple* prev, wxWizardPageSimple* next)
{
//(*Initialize(FinishWizard)
wxStaticBitmap* StaticBitmap1;
wxStaticText* StaticText1;
wxBoxSizer* BoxSizer2;
wxBoxSizer* BoxSizer1;
Create(parent, prev, next);
SetBackgroundColour( wxColour( 255, 255, 255));
BoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
StaticBitmap1 = new wxStaticBitmap(this, wxID_ANY, wxBitmap(Wizard_xpm), wxDefaultPosition, wxDefaultSize, 0, _T("wxID_ANY"));
BoxSizer1->Add(StaticBitmap1, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
BoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
StaticText1 = new wxStaticText(this, ID_STATICTEXT1, _("\nYou have successfully completed the Inno Setup Script\nWizard.\n\nTo close wizard and generate the new script file, click\nFinish."), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT1"));
BoxSizer2->Add(StaticText1, 0, wxTOP|wxLEFT|wxALIGN_TOP|wxALIGN_CENTER_HORIZONTAL, 5);
BoxSizer1->Add(BoxSizer2, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
SetSizer(BoxSizer1);
BoxSizer1->Fit(this);
BoxSizer1->SetSizeHints(this);
Connect(wxEVT_ERASE_BACKGROUND,(wxObjectEventFunction)&FinishWizard::OnEraseBackground);
//*)
m_First = NULL;
}
FinishWizard::~FinishWizard()
{
//(*Destroy(FinishWizard)
//*)
}
void FinishWizard::OnEraseBackground(wxEraseEvent& event)
{
if( m_First == NULL)
{
m_Normal = m_First = GetPrev();
if( m_First != NULL)
while( m_First->GetPrev() != NULL)
m_First = m_First->GetPrev();
}
if( m_First->GetNext() == this)
SetPrev( m_First);
else
SetPrev( m_Normal);
event.Skip();
}