2003-08-03 14:29:53 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: No names yet.
|
|
|
|
// Purpose: Contrib. demo
|
|
|
|
// Author: Aleksandras Gluchovas
|
|
|
|
// Modified by: Sebastian Haase (June 21, 2001)
|
|
|
|
// Created: 04/11/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Aleksandras Gluchovas
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __NEW_TEST_G__
|
|
|
|
#define __NEW_TEST_G__
|
|
|
|
|
|
|
|
#define NEW_TEST_SAVE 1101
|
|
|
|
#define NEW_TEST_LOAD 1102
|
|
|
|
#define NEW_TEST_EXIT 1103
|
|
|
|
|
|
|
|
#include "wx/panel.h"
|
2005-07-22 12:43:04 -04:00
|
|
|
#include "wx/statline.h"
|
2003-08-03 14:29:53 -04:00
|
|
|
|
|
|
|
// Define a new application type
|
|
|
|
class MyApp: public wxApp
|
2005-07-22 12:43:04 -04:00
|
|
|
{
|
2003-08-03 14:29:53 -04:00
|
|
|
public:
|
|
|
|
bool OnInit(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
// Define a new frame type
|
|
|
|
class MyFrame: public wxFrame
|
2005-07-22 12:43:04 -04:00
|
|
|
{
|
2003-08-03 14:29:53 -04:00
|
|
|
public:
|
|
|
|
wxFrameLayout* mpLayout;
|
|
|
|
wxTextCtrl* mpClientWnd;
|
2005-07-22 12:43:04 -04:00
|
|
|
|
2003-08-03 14:29:53 -04:00
|
|
|
wxTextCtrl* CreateTextCtrl( const wxString& value );
|
2005-07-22 12:43:04 -04:00
|
|
|
|
2003-08-03 14:29:53 -04:00
|
|
|
public:
|
|
|
|
MyFrame(wxFrame *frame);
|
|
|
|
virtual ~MyFrame();
|
2005-07-22 12:43:04 -04:00
|
|
|
|
2004-06-07 12:02:23 -04:00
|
|
|
bool OnClose(void) { Show(false); return true; }
|
2005-07-22 12:43:04 -04:00
|
|
|
|
2003-08-03 14:29:53 -04:00
|
|
|
void OnLoad( wxCommandEvent& event );
|
|
|
|
void OnSave( wxCommandEvent& event );
|
|
|
|
void OnExit( wxCommandEvent& event );
|
2005-07-22 12:43:04 -04:00
|
|
|
|
2003-08-03 14:29:53 -04:00
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
2004-07-22 14:47:17 -04:00
|
|
|
#if wxUSE_STATLINE
|
2003-08-03 14:29:53 -04:00
|
|
|
/*
|
|
|
|
* Quick example of your own Separator class...
|
|
|
|
*/
|
|
|
|
class wxMySeparatorLine : public wxStaticLine
|
|
|
|
{
|
|
|
|
public:
|
2005-07-22 12:43:04 -04:00
|
|
|
wxMySeparatorLine()
|
2003-08-03 14:29:53 -04:00
|
|
|
{}
|
2005-07-22 12:43:04 -04:00
|
|
|
wxMySeparatorLine( wxWindow *parent, wxWindowID id)
|
2003-08-03 14:29:53 -04:00
|
|
|
: wxStaticLine( parent, id)
|
|
|
|
{}
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void DoSetSize( int x, int y,
|
|
|
|
int width, int height,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
|
|
|
};
|
2004-07-22 14:47:17 -04:00
|
|
|
#endif // wxUSE_STATLINE
|
2003-08-03 14:29:53 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|