Add wxCLOSE_BOX to wxFL samples (consider using wxDEFAULT_FRAME_STYLE).
Whitespace/typo fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -21,34 +21,34 @@
|
||||
#define NEW_TEST_EXIT 1103
|
||||
|
||||
#include "wx/panel.h"
|
||||
#include "wx/statline.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()
|
||||
};
|
||||
|
||||
@@ -59,9 +59,9 @@ public:
|
||||
class wxMySeparatorLine : public wxStaticLine
|
||||
{
|
||||
public:
|
||||
wxMySeparatorLine()
|
||||
wxMySeparatorLine()
|
||||
{}
|
||||
wxMySeparatorLine( wxWindow *parent, wxWindowID id)
|
||||
wxMySeparatorLine( wxWindow *parent, wxWindowID id)
|
||||
: wxStaticLine( parent, id)
|
||||
{}
|
||||
|
||||
|
Reference in New Issue
Block a user