]>
git.saurik.com Git - wxWidgets.git/blob - samples/validate/validate.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWindows validation sample
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
16 // Define a new application type
17 class MyApp
: public wxApp
22 // Define a new frame type
23 class MyFrame
: public wxFrame
25 MyFrame(wxFrame
*frame
, char *title
, int x
, int y
, int w
, int h
);
28 void OnQuit(wxCommandEvent
& event
);
29 void OnTestDialog(wxCommandEvent
& event
);
35 class MyDialog
: public wxDialog
38 MyDialog(wxWindow
*parent
, const wxString
& title
, const wxPoint
& pos
, const wxSize
& size
,
39 const long style
= wxDEFAULT_DIALOG_STYLE
);
47 MyData() { m_string
= "My string"; }
50 #define VALIDATE_DIALOG_ID 200
52 #define VALIDATE_TEST_DIALOG 2
53 #define VALIDATE_TEXT 101