projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug with the caret positioning after SetValue() introduced by the last commit
[wxWidgets.git]
/
samples
/
validate
/
validate.h
diff --git
a/samples/validate/validate.h
b/samples/validate/validate.h
index 5b761fd32151567adf7484164de988c831d1dc44..cdb560303c83c1ab7410a1c64cea70312a6f5795 100644
(file)
--- a/
samples/validate/validate.h
+++ b/
samples/validate/validate.h
@@
-6,7
+6,7
@@
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart and Markus Holzem
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart and Markus Holzem
-// Licence: wxWindows license
+// Licence:
wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
@@
-14,34
+14,35
@@
#endif
// Define a new application type
#endif
// Define a new application type
-class MyApp: public wxApp
-{ public:
- bool OnInit(void);
+class MyApp : public wxApp
+{
+public:
+ bool OnInit();
};
// Define a new frame type
};
// Define a new frame type
-class MyFrame: public wxFrame
-{
public:
- MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
-
- public:
+class MyFrame
: public wxFrame
+{
+public:
+ MyFrame(wxFrame *frame, const char *title, int x, int y, int w, int h);
+
void OnQuit(wxCommandEvent& event);
void OnTestDialog(wxCommandEvent& event);
void OnQuit(wxCommandEvent& event);
void OnTestDialog(wxCommandEvent& event);
+ void OnSilent(wxCommandEvent& event);
- DECLARE_EVENT_TABLE()
-
+ DECLARE_EVENT_TABLE()
};
};
-class MyDialog: public wxDialog
+class MyDialog
: public wxDialog
{
public:
MyDialog(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size,
{
public:
MyDialog(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size,
- const long style = wxDEFAULT_DIALOG_STYLE);
+
const long style = wxDEFAULT_DIALOG_STYLE);
};
class MyData
{
};
class MyData
{
-
public:
+public:
wxString m_string;
MyData() { m_string = "My string"; }
wxString m_string;
MyData() { m_string = "My string"; }
@@
-50,5
+51,6
@@
class MyData
#define VALIDATE_DIALOG_ID 200
#define VALIDATE_TEST_DIALOG 2
#define VALIDATE_DIALOG_ID 200
#define VALIDATE_TEST_DIALOG 2
+#define VALIDATE_SILENT 3
#define VALIDATE_TEXT 101
#define VALIDATE_TEXT 101