fl_demo1.h

来自「Wxpython Implemented on Windows CE, Sou」· C头文件 代码 · 共 73 行

H
73
字号
/////////////////////////////////////////////////////////////////////////////
// Name:        No names yet.
// Purpose:     Contrib. demo
// Author:      Aleksandras Gluchovas
// Modified by: Sebastian Haase (June 21, 2001)
// Created:     04/11/98
// RCS-ID:      $Id: fl_demo1.h,v 1.5 2005/09/23 12:47:19 MR Exp $
// 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"
#include "wx/statline.h"

// Define a new application type
class MyApp: public wxApp
{
public:
    bool OnInit(void);
};

// Define a new frame type
class MyFrame: public wxFrame
{
public:
    wxFrameLayout*  mpLayout;
    wxTextCtrl*     mpClientWnd;

    wxTextCtrl* CreateTextCtrl( const wxString& value );

public:
    MyFrame(wxFrame *frame);
    virtual ~MyFrame();

    bool OnClose(void) { Show(false); return true; }

    void OnLoad( wxCommandEvent& event );
    void OnSave( wxCommandEvent& event );
    void OnExit( wxCommandEvent& event );

    DECLARE_EVENT_TABLE()
};

#if wxUSE_STATLINE
/*
 * Quick example of your own Separator class...
 */
class wxMySeparatorLine : public wxStaticLine
{
public:
    wxMySeparatorLine()
    {}
    wxMySeparatorLine( wxWindow *parent, wxWindowID id)
        : wxStaticLine( parent, id)
    {}

protected:
   virtual void DoSetSize( int x, int y,
                           int width, int height,
                           int sizeFlags = wxSIZE_AUTO);
};
#endif // wxUSE_STATLINE

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?