]>
git.saurik.com Git - wxWidgets.git/blob - samples/xrc/derivdlg.h
1 //-----------------------------------------------------------------------------
3 // Purpose: XML resources sample: A derived dialog
4 // Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
6 // Copyright: (c) Robert O'Connor and Vaclav Slavik
7 // Licence: wxWindows licence
8 //-----------------------------------------------------------------------------
10 //-----------------------------------------------------------------------------
11 // Begin single inclusion of this .h file condition
12 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 #include "wx/dialog.h"
23 //-----------------------------------------------------------------------------
24 // Class definition: PreferencesDialog
25 //-----------------------------------------------------------------------------
28 class PreferencesDialog
: public wxDialog
35 \param parent The parent window. Simple constructor.
37 PreferencesDialog( wxWindow
* parent
);
40 ~PreferencesDialog(){};
44 // Stuff to do when "My Button" gets clicked
45 void OnMyButtonClicked( wxCommandEvent
&event
);
47 // Stuff to do when a "My Checkbox" gets updated
48 // (drawn, or it changes its value)
49 void OnUpdateUIMyCheckbox( wxUpdateUIEvent
&event
);
51 // Override base class functions of a wxDialog.
52 void OnOK( wxCommandEvent
&event
);
54 // Any class wishing to process wxWidgets events must use this macro
59 //-----------------------------------------------------------------------------
60 // End single inclusion of this .h file condition
61 //-----------------------------------------------------------------------------