e306597309
MM_... -> wxMM_... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: validate.h
|
|
// Purpose: wxWindows validation sample
|
|
// Author: Julian Smart
|
|
// Modified by:
|
|
// Created: 04/01/98
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) Julian Smart and Markus Holzem
|
|
// Licence: wxWindows license
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifdef __GNUG__
|
|
// #pragma interface
|
|
#endif
|
|
|
|
// Define a new application type
|
|
class MyApp: public wxApp
|
|
{ public:
|
|
bool OnInit(void);
|
|
};
|
|
|
|
// Define a new frame type
|
|
class MyFrame: public wxFrame
|
|
{ public:
|
|
MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
|
|
|
|
public:
|
|
void OnQuit(wxCommandEvent& event);
|
|
void OnTestDialog(wxCommandEvent& event);
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
class MyDialog: public wxDialog
|
|
{
|
|
public:
|
|
MyDialog(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size,
|
|
const long style = wxDEFAULT_DIALOG_STYLE);
|
|
};
|
|
|
|
class MyData
|
|
{
|
|
public:
|
|
wxString m_string;
|
|
|
|
MyData() { m_string = "My string"; }
|
|
};
|
|
|
|
#define VALIDATE_DIALOG_ID 200
|
|
|
|
#define VALIDATE_TEST_DIALOG 2
|
|
#define VALIDATE_TEXT 101
|
|
|