]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/wxsocket/client.cpp
no message
[wxWidgets.git] / samples / wxsocket / client.cpp
index 4d27104c2be51f2c44db7f546bbbc72b7cea0680..7f1131330a76acda15db80f763daea5c14c6c1da 100644 (file)
@@ -106,7 +106,6 @@ bool MyApp::OnInit(void)
   socket_menu->Append(SKDEMO_CONNECT, "Open session");
   socket_menu->AppendSeparator();
   socket_menu->Append(SKDEMO_TEST1, "Start test 1");
-  socket_menu->Append(SKDEMO_TEST2, "Start test 2");
   socket_menu->AppendSeparator();
   socket_menu->Append(SKDEMO_CLOSE, "Close session");
   socket_menu->AppendSeparator();
@@ -123,7 +122,7 @@ bool MyApp::OnInit(void)
   frame->Show(TRUE);
   
   // Return the main frame window
-  return true;
+  return TRUE;
 }
 
 /*
@@ -266,8 +265,8 @@ void MyFrame::OnExecTest1(wxCommandEvent& WXUNUSED(evt))
 
 void MyFrame::OnExecUrlTest(wxCommandEvent& WXUNUSED(evt))
 {
-  wxString urlname = wxGetTextFromUser("Enter the address of the wxSocket Sample Server",
-                                     "Connect ...", "localhost");
+  wxString urlname = wxGetTextFromUser("Enter an URL to get",
+                                     "URL:", "http://localhost");
 
   wxURL url(urlname);
   wxInputStream *datas = url.GetInputStream();
@@ -275,7 +274,7 @@ void MyFrame::OnExecUrlTest(wxCommandEvent& WXUNUSED(evt))
   if (!datas)
     wxMessageBox("Error in getting data from the URL.", "Alert !");
   else {
-    wxMessageBox("Success !!", "OK !");
+    wxMessageBox("Success !! Click on OK to see the text.", "OK");
     delete datas;
   }
 }