]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/fl/fl_demo1.h
Blind fix for Tinderbox build error.
[wxWidgets.git] / contrib / samples / fl / fl_demo1.h
CommitLineData
03206f17
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: No names yet.
3// Purpose: Contrib. demo
4// Author: Aleksandras Gluchovas
5// Modified by: Sebastian Haase (June 21, 2001)
6// Created: 04/11/98
7// RCS-ID: $Id$
8// Copyright: (c) Aleksandras Gluchovas
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __NEW_TEST_G__
13#define __NEW_TEST_G__
14
03206f17
VS
15#define NEW_TEST_SAVE 1101
16#define NEW_TEST_LOAD 1102
17#define NEW_TEST_EXIT 1103
18
19#include "wx/panel.h"
0423ae97 20#include "wx/statline.h"
03206f17
VS
21
22// Define a new application type
23class MyApp: public wxApp
0423ae97 24{
03206f17
VS
25public:
26 bool OnInit(void);
27};
28
29// Define a new frame type
30class MyFrame: public wxFrame
0423ae97 31{
03206f17
VS
32public:
33 wxFrameLayout* mpLayout;
34 wxTextCtrl* mpClientWnd;
0423ae97 35
03206f17 36 wxTextCtrl* CreateTextCtrl( const wxString& value );
0423ae97 37
03206f17
VS
38public:
39 MyFrame(wxFrame *frame);
40 virtual ~MyFrame();
0423ae97 41
c82c42d4 42 bool OnClose(void) { Show(false); return true; }
0423ae97 43
03206f17
VS
44 void OnLoad( wxCommandEvent& event );
45 void OnSave( wxCommandEvent& event );
46 void OnExit( wxCommandEvent& event );
0423ae97 47
03206f17
VS
48 DECLARE_EVENT_TABLE()
49};
50
8833e26c 51#if wxUSE_STATLINE
03206f17
VS
52/*
53 * Quick example of your own Separator class...
54 */
55class wxMySeparatorLine : public wxStaticLine
56{
57public:
0423ae97 58 wxMySeparatorLine()
03206f17 59 {}
0423ae97 60 wxMySeparatorLine( wxWindow *parent, wxWindowID id)
03206f17
VS
61 : wxStaticLine( parent, id)
62 {}
63
64protected:
65 virtual void DoSetSize( int x, int y,
66 int width, int height,
67 int sizeFlags = wxSIZE_AUTO);
68};
8833e26c 69#endif // wxUSE_STATLINE
03206f17
VS
70
71#endif
72