]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/fl/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__
15 #define NEW_TEST_SAVE 1101
16 #define NEW_TEST_LOAD 1102
17 #define NEW_TEST_EXIT 1103
20 #include "wx/statline.h"
22 // Define a new application type
23 class MyApp
: public wxApp
29 // Define a new frame type
30 class MyFrame
: public wxFrame
33 wxFrameLayout
* mpLayout
;
34 wxTextCtrl
* mpClientWnd
;
36 wxTextCtrl
* CreateTextCtrl( const wxString
& value
);
39 MyFrame(wxFrame
*frame
);
42 bool OnClose(void) { Show(false); return true; }
44 void OnLoad( wxCommandEvent
& event
);
45 void OnSave( wxCommandEvent
& event
);
46 void OnExit( wxCommandEvent
& event
);
53 * Quick example of your own Separator class...
55 class wxMySeparatorLine
: public wxStaticLine
60 wxMySeparatorLine( wxWindow
*parent
, wxWindowID id
)
61 : wxStaticLine( parent
, id
)
65 virtual void DoSetSize( int x
, int y
,
66 int width
, int height
,
67 int sizeFlags
= wxSIZE_AUTO
);
69 #endif // wxUSE_STATLINE