/////////////////////////////////////////////////////////////////////////////
// Name: render.cpp
-// Purpose: Render wxWindows sample
+// Purpose: Render wxWidgets sample
// Author: Vadim Zeitlin
// Modified by:
// Created: 04.08.03
// RCS-ID: $Id$
-// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
+// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/frame.h"
+ #include "wx/dc.h"
+ #include "wx/dcclient.h"
+ #include "wx/panel.h"
+ #include "wx/menu.h"
+ #include "wx/textdlg.h"
+ #include "wx/log.h"
+ #include "wx/msgdlg.h"
#endif
#include "wx/apptrait.h"
{
virtual wxRendererNative *CreateRenderer()
{
- // it will be deleted on program shutdown by wxWindows itself
+ // it will be deleted on program shutdown by wxWidgets itself
return new MyRenderer;
}
};
private:
wxPanel *m_panel;
- // any class wishing to process wxWindows events must use this macro
+ // any class wishing to process wxWidgets events must use this macro
DECLARE_EVENT_TABLE()
};
};
// ----------------------------------------------------------------------------
-// event tables and other macros for wxWindows
+// event tables and other macros for wxWidgets
// ----------------------------------------------------------------------------
-// the event tables connect the wxWindows events with the functions (event
+// the event tables connect the wxWidgets events with the functions (event
// handlers) which process them. It can be also done at run-time, but for the
// simple menu events like this the static method is much simpler.
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Render_About, MyFrame::OnAbout)
END_EVENT_TABLE()
-// Create a new application object: this macro will allow wxWindows to create
+// Create a new application object: this macro will allow wxWidgets to create
// the application object during program execution (it's better than using a
// static object for many reasons) and also implements the accessor function
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
MyFrame::MyFrame()
: wxFrame(NULL,
-1,
- _T("Render wxWindows Sample"),
+ _T("Render wxWidgets Sample"),
wxPoint(50, 50),
wxSize(450, 340))
{
#if wxUSE_STATUSBAR
// create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(2);
- SetStatusText(_T("Welcome to wxWindows!"));
+ SetStatusText(_T("Welcome to wxWidgets!"));
#endif // wxUSE_STATUSBAR
Show();
wxString name = wxGetTextFromUser
(
_T("Name of the renderer to load:"),
- _T("Render wxWindows Sample"),
+ _T("Render wxWidgets Sample"),
s_name,
this
);
{
wxMessageBox(_T("Render sample shows how to use custom renderers.\n")
_T("\n")
- _T("© 2003 Vadim Zeitlin"),
- _T("About Render wxWindows Sample"),
+ _T("(c) 2003 Vadim Zeitlin"),
+ _T("About Render wxWidgets Sample"),
wxOK | wxICON_INFORMATION, this);
}