]>
git.saurik.com Git - wxWidgets.git/blob - samples/xrc/derivdlg.h
b1bf861f90e58f8dc7d972857689a73e8d4a9383
1 //-----------------------------------------------------------------------------
3 // Purpose: XML resources sample: A derived dialog
4 // Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
5 // Copyright: (c) Robert O'Connor and Vaclav Slavik
6 // Licence: wxWindows licence
7 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
10 // Begin single inclusion of this .h file condition
11 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
20 #include "wx/dialog.h"
22 //-----------------------------------------------------------------------------
23 // Class definition: PreferencesDialog
24 //-----------------------------------------------------------------------------
27 class PreferencesDialog
: public wxDialog
34 \param parent The parent window. Simple constructor.
36 PreferencesDialog( wxWindow
* parent
);
39 ~PreferencesDialog(){};
43 // Stuff to do when "My Button" gets clicked
44 void OnMyButtonClicked( wxCommandEvent
&event
);
46 // Stuff to do when a "My Checkbox" gets updated
47 // (drawn, or it changes its value)
48 void OnUpdateUIMyCheckbox( wxUpdateUIEvent
&event
);
50 // Override base class functions of a wxDialog.
51 void OnOK( wxCommandEvent
&event
);
53 // Any class wishing to process wxWidgets events must use this macro
58 //-----------------------------------------------------------------------------
59 // End single inclusion of this .h file condition
60 //-----------------------------------------------------------------------------