gtransm/gui/design/basepanel.cxx

22 lines
578 B
C++
Raw Normal View History

2025-04-02 10:36:48 +08:00
#include "basepanel.h"
CBasePanel::CBasePanel(wxWindow* parent)
{
}
void CBasePanel::Init()
{
auto* topSizer = new wxBoxSizer(wxVERTICAL);
auto* szL1 = new wxBoxSizer(wxHORIZONTAL);
auto* lbIp = new wxStaticText(this, wxID_ANY, _("ServerIP:"));
edIp_ = new wxTextCtrl(this, wxID_ANY, _(""));
auto* lbPort = new wxStaticText(this, wxID_ANY, _("Port:"));
edPort_ = new wxTextCtrl(this, wxID_ANY, _("Port"));
szL1->Add(lbIp, 0, wxALL, 5);
szL1->Add(edIp_, 0, wxALL, 5);
szL1->Add(lbPort, 0, wxALL, 5);
szL1->Add(edPort_, 0, wxALL, 5);
}