Tried to fix some socket things. Wasn't enough.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-12-29 17:18:41 +00:00
parent 2b9bd418c5
commit db13126198
4 changed files with 73 additions and 44 deletions

View File

@@ -69,13 +69,13 @@ public:
};
// ID for the menu quit command
const SKDEMO_QUIT = 101;
const SKDEMO_CONNECT = 102;
const SKDEMO_TEST1 = 103;
const SKDEMO_TEST2 = 104;
const SKDEMO_CLOSE = 105;
const SKDEMO_TEST3 = 106;
const ID_TEST_CLOSE = 107;
const int SKDEMO_QUIT = 101;
const int SKDEMO_CONNECT = 102;
const int SKDEMO_TEST1 = 103;
const int SKDEMO_TEST2 = 104;
const int SKDEMO_CLOSE = 105;
const int SKDEMO_TEST3 = 106;
const int ID_TEST_CLOSE = 107;
IMPLEMENT_APP(MyApp)
@@ -219,12 +219,12 @@ void MyFrame::OnExecTest1(wxCommandEvent& WXUNUSED(evt))
if (!sock->IsConnected())
return;
wxDialog *dlgbox = new wxDialog(this, -1, "Test 1", wxDefaultPosition, wxSize(410, 270));
wxDialog *dlgbox = new wxDialog(this, -1, "Test 1", wxDefaultPosition, wxSize(414, 250));
wxTextCtrl *text_win = new wxTextCtrl(dlgbox, -1, "",
wxPoint(0, 0), wxSize(400, 200),
wxTE_MULTILINE);
(void)new wxButton(dlgbox, ID_TEST_CLOSE, "Close",
wxPoint(100, 210), wxSize(100, 40));
wxPoint(100, 210), wxSize(100, -1));
char *buf, *buf2;
dlgbox->Layout();
@@ -232,6 +232,8 @@ void MyFrame::OnExecTest1(wxCommandEvent& WXUNUSED(evt))
text_win->WriteText("Initializing test 1 ...\n");
wxYield();
/* Init */
buf = copystring("Salut ! Salut ! Salut ! Salut Toto\n");
buf2 = new char[strlen(buf)+1];