]> git.saurik.com Git - wxWidgets.git/blame - samples/validate/validate.h
Initial checkin of the wxFrame support added by Aleks G.
[wxWidgets.git] / samples / validate / validate.h
CommitLineData
457814b5
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: validate.h
3// Purpose: wxWindows validation sample
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart and Markus Holzem
a994f81b 9// Licence: wxWindows license
457814b5
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13// #pragma interface
14#endif
15
16// Define a new application type
a994f81b
VZ
17class MyApp : public wxApp
18{
19public:
20 bool OnInit();
457814b5
JS
21};
22
23// Define a new frame type
a994f81b
VZ
24class MyFrame : public wxFrame
25{
26public:
27 MyFrame(wxFrame *frame, const char *title, int x, int y, int w, int h);
28
457814b5
JS
29 void OnQuit(wxCommandEvent& event);
30 void OnTestDialog(wxCommandEvent& event);
a994f81b 31 void OnSilent(wxCommandEvent& event);
457814b5 32
a994f81b 33 DECLARE_EVENT_TABLE()
457814b5
JS
34};
35
a994f81b 36class MyDialog : public wxDialog
457814b5
JS
37{
38public:
39 MyDialog(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size,
a994f81b 40 const long style = wxDEFAULT_DIALOG_STYLE);
457814b5
JS
41};
42
43class MyData
44{
a994f81b 45public:
457814b5
JS
46 wxString m_string;
47
48 MyData() { m_string = "My string"; }
49};
50
51#define VALIDATE_DIALOG_ID 200
52
53#define VALIDATE_TEST_DIALOG 2
a994f81b 54#define VALIDATE_SILENT 3
457814b5
JS
55#define VALIDATE_TEXT 101
56