]> git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/dlguser.h
Handle Cancel button in userdlg
[wxWidgets.git] / demos / dbbrowse / dlguser.h
1 //---------------------------------------------------------------------------
2 // Name: DlgUser.h,cpp
3 // Purpose: Dialog mit Variable Gestaltung durch DlgUser.wxr
4 // Author: Mark Johnson, mj10777@gmx.net
5 // Modified by: 19991105.mj10777
6 // Created: 19991105
7 // Copyright: (c) Mark Johnson
8 // Licence: wxWindows license
9 // RCS-ID: $Id$
10 //---------------------------------------------------------------------------
11 // DlgUser
12 //---------------------------------------------------------------------------
13 #define ID_DIALOG_DSN 100
14 #define ID_DSN 101
15 #define ID_USER 102
16 #define ID_PASSWORD 103
17 #define ID_TEXT 104
18 //---------------------------------------------------------------------------
19 //---------------------------------------------------------------------------
20 class DlgUser: public wxDialog
21 {
22 public:
23 // bool canceled;
24 wxString s_DSN, s_User, s_Password;
25 // wxTextCtrl *tc_User, *tc_Password;
26 wxStaticText *m_Label1, *m_Label2;
27 wxTextCtrl *m_UserName, *m_Password;
28 wxButton *m_OK, *m_Cancel;
29
30 //---------------------------------------------------------------------------
31 DlgUser(wxWindow *parent, const wxString& title);
32 void OnInit();
33 void OnOk(wxCommandEvent& event);
34 // void OnCancel(wxCommandEvent& event);
35 //---------------------------------------------------------------------------
36 DECLARE_EVENT_TABLE()
37 };
38 //---------------------------------------------------------------------------