#define EDIT_PARAMETERS 200
#define ABOUT_DEMO 300
+// this seems to be missing, Robert Roebling (?)
+#ifndef MAX_PATH
+#define MAX_PATH 200
+#endif
// Name of the table to be created/opened
const char CONTACT_TABLE_NAME[] = "contacts";
class CeditorDlg;
class CparameterDlg;
-#ifdef __WXGTK__
-const char paramFilename[] = "../database.cfg";
-#else
-const char paramFilename[] = "database.cfg";
-#endif
+const char paramFilename[] = "dbtest.cfg";
/*
char ODBCSource[100+1];
char UserName[25+1];
char Password[25+1];
+ char DirPath[MAX_PATH+1];
} Cparameters;
// Pointers to all widgets on the dialog
wxStaticText *pParamODBCSourceMsg;
- wxListBox *pParamODBCSourceList;
- wxStaticText *pParamUserNameMsg, *pParamPasswordMsg;
- wxTextCtrl *pParamUserNameTxt, *pParamPasswordTxt;
- wxButton *pParamSaveBtn, *pParamCancelBtn;
+ wxListBox *pParamODBCSourceList;
+ wxStaticText *pParamUserNameMsg, *pParamPasswordMsg, *pParamDirPathMsg;
+ wxTextCtrl *pParamUserNameTxt, *pParamPasswordTxt, *pParamDirPathTxt;
+ wxButton *pParamSaveBtn, *pParamCancelBtn;
public:
CparameterDlg(wxWindow *parent);
void OnCloseWindow(wxCloseEvent& event);
+ void OnButton( wxCommandEvent &event );
void OnCommand(wxWindow& win, wxCommandEvent& event);
void OnActivate(bool) {}; // necessary for hot keys
#define PARAMETER_DIALOG_NAME_TEXT 404
#define PARAMETER_DIALOG_PASSWORD_MSG 405
#define PARAMETER_DIALOG_PASSWORD_TEXT 406
-#define PARAMETER_DIALOG_SAVE 407
-#define PARAMETER_DIALOG_CANCEL 408
+#define PARAMETER_DIALOG_DIRPATH_MSG 407
+#define PARAMETER_DIALOG_DIRPATH_TEXT 408
+#define PARAMETER_DIALOG_SAVE 409
+#define PARAMETER_DIALOG_CANCEL 410
// *************************** CqueryDlg ***************************