//////////////////////////////////////////////////////////////////////////////
-// File: app.cpp
+// File: stctest.cpp
// Purpose: STC test application
// Maintainer: Otto Wyss
// Created: 2003-09-01
#include <wx/notebook.h> // notebook support
#include <wx/settings.h> // system settings
#include <wx/string.h> // strings support
+#include <wx/image.h> // images support
//! application headers
#include "defsext.h" // Additional definitions
//============================================================================
#define APP_NAME _T("STC-Test")
-#define APP_DESCR _("See http://wxguide.sourceforge.net/indexedit.html")
+#define APP_DESCR _("See http://wxguide.sourceforge.net/")
#define APP_MAINT _T("Otto Wyss")
#define APP_VENDOR _T("wxWindows")
bool App::OnInit () {
wxInitAllImageHandlers();
-
+
// set application and vendor name
SetAppName (APP_NAME);
SetVendorName (APP_VENDOR);
END_EVENT_TABLE ()
AppFrame::AppFrame (const wxString &title)
- : wxFrame ((wxFrame *)NULL, -1, title, wxDefaultPosition, wxSize(600,400),
+ : wxFrame ((wxFrame *)NULL, -1, title, wxDefaultPosition, wxSize(750,550),
wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE) {
// intitialize important variables
m_edit = new Edit (this, -1);
m_edit->SetFocus();
+ FileOpen (_T("stctest.cpp"));
}
AppFrame::~AppFrame () {
}
}
}
+ m_edit->SetFilename (wxEmptyString);
+ m_edit->ClearAll();
+ m_edit->SetSavePoint();
}
// properties event handlers
long style)
: wxDialog (parent, -1, wxEmptyString,
wxDefaultPosition, wxDefaultSize,
- wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) {
+ style | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) {
// set timer if any
m_timer = NULL;
SetSizerAndFit (totalpane);
- CenterOnScreen();
+ CenterOnScreen();
ShowModal();
}
//----------------------------------------------------------------------------
// event handlers
-void AppAbout::OnTimerEvent (wxTimerEvent &event) {
+void AppAbout::OnTimerEvent (wxTimerEvent &WXUNUSED(event)) {
if (m_timer) delete m_timer;
m_timer = NULL;
EndModal (wxID_OK);