- // Make a panel with a textctrl in it
- m_panel = new wxPanel(this, -1, wxPoint(0, 0), GetClientSize());
- m_text = new wxTextCtrl(m_panel, -1,
- _("Welcome to wxSocket demo: Client\n"
- "Client ready\n"),
- wxPoint(0, 0), m_panel->GetClientSize(),
+ // Make a textctrl for logging
+ m_text = new wxTextCtrl(this, -1,
+ _("Welcome to wxSocket demo: Client\nClient ready\n"),
+ wxDefaultPosition, wxDefaultSize,