-
Notifications
You must be signed in to change notification settings - Fork 1
/
LevelDialog.cpp
46 lines (39 loc) · 1.39 KB
/
LevelDialog.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
#include "LevelDialog.h"
//(*InternalHeaders(LevelDialog)
#include <wx/button.h>
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*IdInit(LevelDialog)
const long LevelDialog::ID_SPINCTRLDOUBLE = wxNewId();
//*)
BEGIN_EVENT_TABLE(LevelDialog,wxDialog)
//(*EventTable(LevelDialog)
//*)
END_EVENT_TABLE()
LevelDialog::LevelDialog(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
//(*Initialize(LevelDialog)
wxBoxSizer* BoxSizer1;
wxStdDialogButtonSizer* StdDialogButtonSizer1;
Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
SetClientSize(wxDefaultSize);
Move(wxDefaultPosition);
BoxSizer1 = new wxBoxSizer(wxVERTICAL);
SpinCtrl = new wxSpinCtrlDouble(this, ID_SPINCTRLDOUBLE, _T("0"), wxDefaultPosition, wxDefaultSize, 0, 0, 100, 0, 0.01, _T("ID_SPINCTRLDOUBLE"));
SpinCtrl->SetValue(_T("0"));
BoxSizer1->Add(SpinCtrl, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
StdDialogButtonSizer1 = new wxStdDialogButtonSizer();
StdDialogButtonSizer1->AddButton(new wxButton(this, wxID_OK, wxEmptyString));
StdDialogButtonSizer1->AddButton(new wxButton(this, wxID_CANCEL, wxEmptyString));
StdDialogButtonSizer1->Realize();
BoxSizer1->Add(StdDialogButtonSizer1, 0, wxALL|wxEXPAND, 5);
SetSizer(BoxSizer1);
BoxSizer1->SetSizeHints(this);
//*)
}
LevelDialog::~LevelDialog()
{
//(*Destroy(LevelDialog)
//*)
}