/////////////////////////////////////////////////////////////////////////////
// Name: validate.h
-// Purpose: wxWindows validation sample
+// Purpose: wxWidgets validation sample
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-# pragma interface
-#endif
-
#include "wx/app.h"
#include "wx/combobox.h"
#include "wx/dialog.h"
class MyFrame : public wxFrame
{
public:
- MyFrame(wxFrame *frame, const char *title, int x, int y, int w, int h);
+ MyFrame(wxFrame *frame, const wxString&title, int x, int y, int w, int h);
void OnQuit(wxCommandEvent& event);
void OnTestDialog(wxCommandEvent& event);
int m_radiobox_choice;
};
-#define VALIDATE_DIALOG_ID 200
-
-#define VALIDATE_TEST_DIALOG 2
-#define VALIDATE_TOGGLE_BELL 3
+enum {
+ VALIDATE_DIALOG_ID = wxID_HIGHEST,
-#define VALIDATE_TEXT 101
-#define VALIDATE_LIST 102
-#define VALIDATE_CHECK 103
-#define VALIDATE_COMBO 105
-#define VALIDATE_RADIO 106
+ VALIDATE_TEST_DIALOG,
+ VALIDATE_TOGGLE_BELL,
+ VALIDATE_TEXT,
+ VALIDATE_LIST,
+ VALIDATE_CHECK,
+ VALIDATE_COMBO,
+ VALIDATE_RADIO
+};