X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbe0af5b15f8b8e95ed45abc2140fb3a1fac3c87..aeafc354935512ddba84502bc60ca3b6246c14ce:/samples/db/dbtest.h diff --git a/samples/db/dbtest.h b/samples/db/dbtest.h index d36cd14dec..516204e389 100644 --- a/samples/db/dbtest.h +++ b/samples/db/dbtest.h @@ -26,7 +26,7 @@ enum DialogModes {mView,mCreate,mEdit,mSearch}; // Name of the table to be created/opened -const char CONTACT_TABLE_NAME[] = "CONTACTS"; +const char CONTACT_TABLE_NAME[] = "contacts"; // Nuber of columns in the above table const int CONTACT_NO_COLS = 12; // 0-11 @@ -166,6 +166,7 @@ class CeditorDlg : public wxPanel CeditorDlg(wxWindow *parent); bool OnClose(void); + void OnButton( wxCommandEvent &event ); void OnCommand(wxWindow& win, wxCommandEvent& event); void OnActivate(bool) {}; // necessary for hot keys @@ -177,6 +178,8 @@ class CeditorDlg : public wxPanel bool GetNextRec(); bool GetPrevRec(); bool GetRec(char *whereStr); + +DECLARE_EVENT_TABLE() }; // CeditorDlg #define EDITOR_DIALOG 199 @@ -336,6 +339,7 @@ class CqueryDlg : public wxDialog CqueryDlg(wxWindow *parent, wxDB *pDb, char *tblName[], char *pWhereArg); + void OnButton( wxCommandEvent &event ); void OnCommand(wxWindow& win, wxCommandEvent& event); bool OnClose(); void OnActivate(bool) {}; // necessary for hot keys @@ -346,6 +350,7 @@ class CqueryDlg : public wxDialog void ProcessCountBtn(); bool ValidateWhereClause(); +DECLARE_EVENT_TABLE() }; // CqueryDlg #define QUERY_DIALOG 300