Added validation support
Fixed a few minor things in wxGrid Fixed bug in SetClippingregion Disabled SetDefault again Fixed bug in AddChild, SetSize et al. Add PROCESS_ENTER and wxEVT_TEXT_CHANGE Renamed OnOk -> OnOK Added a few compatibilty functions Added code to make iinterception of events possible and work git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user