]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/validate/validate.cpp
added (de)select all
[wxWidgets.git] / samples / validate / validate.cpp
index b7bde3e173c25cee872471f66286143c10ad8727..688a457b6c3aafe77ce1e90c7568c0d4525ba759 100644 (file)
@@ -41,7 +41,7 @@ MyData        g_data;
 bool MyApp::OnInit(void)
 {
   // Create the main frame window
-  MyFrame *frame = new MyFrame(NULL, "Validation Test", 50, 50, 300, 250);
+  MyFrame *frame = new MyFrame((wxFrame *) NULL, (char *) "Validation Test", 50, 50, 300, 250);
 
   // Give it an icon
 #ifdef __WXMSW__
@@ -82,7 +82,7 @@ void MyFrame::OnQuit(wxCommandEvent& event)
 
 void MyFrame::OnTestDialog(wxCommandEvent& event)
 {
-       MyDialog dialog(this, "Validation test dialog", wxPoint(100, 100), wxSize(340, 200));
+       MyDialog dialog(this, "Validation test dialog", wxPoint(100, 100), wxSize(340, 170));
 
        dialog.ShowModal();
 }
@@ -95,7 +95,7 @@ MyDialog::MyDialog(wxWindow *parent, const wxString& title, const wxPoint& pos,
   wxButton *but2 = new wxButton(this, wxID_CANCEL, "Cancel", wxPoint(250, 60), wxSize(80, 30));
 
   wxTextCtrl *txt1 = new wxTextCtrl(this, VALIDATE_TEXT, "",
-    wxPoint(10, 10), wxSize(100, -1), 0, wxTextValidator(wxFILTER_ALPHA, &g_data.m_string));
+    wxPoint(10, 10), wxSize(120, -1), 0, wxTextValidator(wxFILTER_ALPHA, &g_data.m_string));
 
 //  SetBackgroundColour(wxColour(0,0,255));