]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/fl/fl_demo1.h
efbebdb8bc0dd30a76fba7ed0df6b2074fb8c3c5
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 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "fl_demo1.h"
19 #define NEW_TEST_SAVE 1101
20 #define NEW_TEST_LOAD 1102
21 #define NEW_TEST_EXIT 1103
24 #include "wx/statline.h"
26 // Define a new application type
27 class MyApp
: public wxApp
33 // Define a new frame type
34 class MyFrame
: public wxFrame
37 wxFrameLayout
* mpLayout
;
38 wxTextCtrl
* mpClientWnd
;
40 wxTextCtrl
* CreateTextCtrl( const wxString
& value
);
43 MyFrame(wxFrame
*frame
);
46 bool OnClose(void) { Show(false); return true; }
48 void OnLoad( wxCommandEvent
& event
);
49 void OnSave( wxCommandEvent
& event
);
50 void OnExit( wxCommandEvent
& event
);
57 * Quick example of your own Separator class...
59 class wxMySeparatorLine
: public wxStaticLine
64 wxMySeparatorLine( wxWindow
*parent
, wxWindowID id
)
65 : wxStaticLine( parent
, id
)
69 virtual void DoSetSize( int x
, int y
,
70 int width
, int height
,
71 int sizeFlags
= wxSIZE_AUTO
);
73 #endif // wxUSE_STATLINE