1998-09-12 13:33:59 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: typetest.h
|
|
|
|
// Purpose: Types wxWindows sample
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/01/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "typetest.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WX_TYPETEST_H_
|
|
|
|
#define _WX_TYPETEST_H_
|
|
|
|
|
|
|
|
// Define a new application type
|
|
|
|
class MyApp: public wxApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool OnInit(void);
|
|
|
|
|
|
|
|
void DoDateDemo(wxCommandEvent& event);
|
|
|
|
void DoTimeDemo(wxCommandEvent& event);
|
|
|
|
void DoVariantDemo(wxCommandEvent& event);
|
1999-06-10 18:29:46 -04:00
|
|
|
void DoByteOrderDemo(wxCommandEvent& event);
|
1998-09-12 13:33:59 -04:00
|
|
|
|
|
|
|
wxTextCtrl* GetTextCtrl() const { return m_textCtrl; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxTextCtrl* m_textCtrl;
|
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(MyApp)
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
|
|
|
DECLARE_APP(MyApp)
|
|
|
|
|
|
|
|
// Define a new frame type
|
|
|
|
class MyFrame: public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MyFrame(wxFrame *parent, const wxString& title,
|
|
|
|
const wxPoint& pos, const wxSize& size);
|
|
|
|
|
|
|
|
public:
|
|
|
|
void OnQuit(wxCommandEvent& event);
|
|
|
|
void OnAbout(wxCommandEvent& event);
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// ID for the menu commands
|
|
|
|
#define TYPES_QUIT wxID_EXIT
|
|
|
|
#define TYPES_TEXT 101
|
|
|
|
#define TYPES_ABOUT 102
|
|
|
|
|
|
|
|
#define TYPES_DATE 103
|
|
|
|
#define TYPES_TIME 104
|
|
|
|
#define TYPES_VARIANT 105
|
1999-06-10 18:29:46 -04:00
|
|
|
#define TYPES_BYTEORDER 106
|
1998-09-12 13:33:59 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_TYPETEST_H_
|
|
|
|
|