]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/fl/fl_demo1/fl_demo1.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Contrib. demo
4 // Author: Aleksandras Gluchovas
5 // Modified by: Sebastian Haase (June 21, 2001)
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __NEW_TEST_G__
13 #define __NEW_TEST_G__
16 #pragma interface "fl_demo1.h"
19 #define NEW_TEST_SAVE 1101
20 #define NEW_TEST_LOAD 1102
21 #define NEW_TEST_EXIT 1103
25 // Define a new application type
26 class MyApp
: public wxApp
32 // Define a new frame type
33 class MyFrame
: public wxFrame
36 wxFrameLayout
* mpLayout
;
37 wxTextCtrl
* mpClientWnd
;
39 wxTextCtrl
* CreateTextCtrl( const wxString
& value
);
42 MyFrame(wxFrame
*frame
);
45 bool OnClose(void) { Show(FALSE
); return TRUE
; }
47 void OnLoad( wxCommandEvent
& event
);
48 void OnSave( wxCommandEvent
& event
);
49 void OnExit( wxCommandEvent
& event
);