1998-12-04 02:43:56 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: test.h
|
|
|
|
// Purpose: wxToolBar sample
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 23/07/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart and Robert Roebling
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "wx/minifram.h"
|
|
|
|
|
|
|
|
// Define a new application
|
|
|
|
class MyApp: public wxApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool OnInit(void);
|
|
|
|
bool InitToolbar(wxToolBar* toolBar);
|
|
|
|
};
|
|
|
|
|
1999-05-31 13:04:50 -04:00
|
|
|
// Define a new mini frame
|
|
|
|
class MyMiniFrame: public wxMiniFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MyMiniFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample",
|
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
|
|
|
void OnReparent(wxCommandEvent& event);
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
1998-12-04 02:43:56 -05:00
|
|
|
// Define a new frame
|
1999-05-31 13:04:50 -04:00
|
|
|
class MyMainFrame: public wxFrame
|
1998-12-04 02:43:56 -05:00
|
|
|
{
|
|
|
|
public:
|
1999-05-31 13:04:50 -04:00
|
|
|
MyMainFrame(wxFrame *parent, wxWindowID id = -1, const wxString& title = "wxToolBar Sample",
|
1998-12-04 02:43:56 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize );
|
|
|
|
|
|
|
|
void OnCloseWindow(wxCloseEvent& event);
|
1999-05-31 13:04:50 -04:00
|
|
|
void OnReparent(wxCommandEvent& event);
|
1998-12-04 02:43:56 -05:00
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
1999-05-31 13:04:50 -04:00
|
|
|
#define ID_TOOLBAR 500
|
|
|
|
#define ID_REPARENT 501
|
1998-12-04 02:43:56 -05:00
|
|
|
|