]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/fl/fl_demo1.h
Removed very out of date files in docs/msw
[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
15#if defined(__GNUG__) && !defined(__APPLE__)
16#pragma interface "fl_demo1.h"
17#endif
18
19#define NEW_TEST_SAVE 1101
20#define NEW_TEST_LOAD 1102
21#define NEW_TEST_EXIT 1103
22
23#include "wx/panel.h"
24#include "wx/statline.h"
25
26// Define a new application type
27class MyApp: public wxApp
28{
29public:
30 bool OnInit(void);
31};
32
33// Define a new frame type
34class MyFrame: public wxFrame
35{
36public:
37 wxFrameLayout* mpLayout;
38 wxTextCtrl* mpClientWnd;
39
40 wxTextCtrl* CreateTextCtrl( const wxString& value );
41
42public:
43 MyFrame(wxFrame *frame);
44 virtual ~MyFrame();
45
c82c42d4 46 bool OnClose(void) { Show(false); return true; }
03206f17
VS
47
48 void OnLoad( wxCommandEvent& event );
49 void OnSave( wxCommandEvent& event );
50 void OnExit( wxCommandEvent& event );
51
52 DECLARE_EVENT_TABLE()
53};
54
8833e26c 55#if wxUSE_STATLINE
03206f17
VS
56/*
57 * Quick example of your own Separator class...
58 */
59class wxMySeparatorLine : public wxStaticLine
60{
61public:
62 wxMySeparatorLine()
63 {}
64 wxMySeparatorLine( wxWindow *parent, wxWindowID id)
65 : wxStaticLine( parent, id)
66 {}
67
68protected:
69 virtual void DoSetSize( int x, int y,
70 int width, int height,
71 int sizeFlags = wxSIZE_AUTO);
72};
8833e26c 73#endif // wxUSE_STATLINE
03206f17
VS
74
75#endif
76