📄 infodlg.cpp
字号:
//---------------------------------------------------------------------------
//
// Name: InfoDlg.cpp
// Author: ejoyc
// Created: 2008-6-29 1:58:19
// Description: InfoDlg class implementation
//
//---------------------------------------------------------------------------
#include "InfoDlg.h"
BEGIN_EVENT_TABLE(InfoDlg,wxDialog)
EVT_CLOSE(InfoDlg::OnClose)
END_EVENT_TABLE()
InfoDlg::InfoDlg(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxDialog(parent, id, title, position, size, style)
{
CreateGUIControls();
}
InfoDlg::~InfoDlg()
{
}
void InfoDlg::CreateGUIControls()
{
WxBoxSizer1 = new wxBoxSizer(wxHORIZONTAL);
this->SetSizer(WxBoxSizer1);
this->SetAutoLayout(true);
WxMemo1 = new wxTextCtrl(this, ID_WXMEMO1, wxT(""), wxPoint(5,5), wxSize(445,386), wxTE_MULTILINE, wxDefaultValidator, wxT("WxMemo1"));
WxMemo1->SetMaxLength(0);
WxMemo1->AppendText(wxT("项目名称:俄罗斯方块\n"));
WxMemo1->AppendText(wxT("开发人员:ejoyc\n"));
WxMemo1->AppendText(wxT("开发时间:2008/6/22~2008/6/26\n"));
WxMemo1->AppendText(wxT("电子邮件:ejoyc163.com\n"));
WxMemo1->AppendText(wxT("项目简介:该项目是完全使用开源的跨平台开发库wxWidgets开发的,\n"));
WxMemo1->AppendText(wxT(" 根据ejoyc的意愿,这个项目也是开源的——任何人都可以以\n"));
WxMemo1->AppendText(wxT(" 任何形式处理它。\n"));
WxMemo1->SetFocus();
WxMemo1->SetInsertionPointEnd();
WxMemo1->SetFont(wxFont(9, wxSWISS, wxNORMAL,wxNORMAL, false, wxT("宋体")));
WxBoxSizer1->Add(WxMemo1,0,wxALIGN_CENTER | wxALL,5);
SetTitle(wxT("Infomation"));
SetIcon(wxNullIcon);
GetSizer()->Layout();
GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
Center();
}
void InfoDlg::OnClose(wxCloseEvent& /*event*/)
{
Destroy();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -