-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUIDialog.cpp
56 lines (41 loc) · 1.92 KB
/
GUIDialog.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
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Feb 17 2007)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif //WX_PRECOMP
#include "GUIDialog.h"
///////////////////////////////////////////////////////////////////////////
BEGIN_EVENT_TABLE( GUIDialog, wxDialog )
EVT_CLOSE( GUIDialog::_wxFB_OnClose )
EVT_BUTTON( idBtnAbout, GUIDialog::_wxFB_OnAbout )
EVT_BUTTON( idBtnQuit, GUIDialog::_wxFB_OnQuit )
END_EVENT_TABLE()
GUIDialog::GUIDialog( wxWindow* parent, int id, wxString title, wxPoint pos, wxSize size, int style ) : wxDialog( parent, id, title, pos, size, style )
{
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
wxBoxSizer* bSizer1;
bSizer1 = new wxBoxSizer( wxHORIZONTAL );
m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("Welcome To\nwxWidgets"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText1->SetFont( wxFont( 20, 74, 90, 90, false, wxT("Arial") ) );
bSizer1->Add( m_staticText1, 0, wxALL|wxEXPAND, 5 );
wxBoxSizer* bSizer2;
bSizer2 = new wxBoxSizer( wxVERTICAL );
BtnAbout = new wxButton( this, idBtnAbout, wxT("&About"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer2->Add( BtnAbout, 0, wxALL, 5 );
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
bSizer2->Add( m_staticline1, 0, wxALL|wxEXPAND, 5 );
BtnQuit = new wxButton( this, idBtnQuit, wxT("&Quit"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer2->Add( BtnQuit, 0, wxALL, 5 );
bSizer1->Add( bSizer2, 1, wxEXPAND, 5 );
this->SetSizer( bSizer1 );
this->Layout();
bSizer1->Fit( this );
}