// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all <standard< wxWindows headers
#ifndef WX_PRECOMP
- #include <wx/wx.h>
+ #include "wx/wx.h"
- #include <wx/log.h>
+ #include "wx/log.h"
#endif
#include "wx/caret.h"
// ressources
// ----------------------------------------------------------------------------
// the application icon
-#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
+#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__)
#include "mondrian.xpm"
#endif
bool MyApp::OnInit()
{
// create and show the main application window
- MyFrame *frame = new MyFrame("Caret wxWindows sample",
+ MyFrame *frame = new MyFrame(_T("Caret wxWindows sample"),
wxPoint(50, 50), wxSize(450, 340));
frame->Show(TRUE);
// create a menu bar
wxMenu *menuFile = new wxMenu;
- menuFile->Append(Caret_SetBlinkTime, "&Blink time...\tCtrl-B");
- menuFile->Append(Caret_Move, "&Move caret\tCtrl-C");
+ menuFile->Append(Caret_SetBlinkTime, _T("&Blink time...\tCtrl-B"));
+ menuFile->Append(Caret_Move, _T("&Move caret\tCtrl-C"));
menuFile->AppendSeparator();
- menuFile->Append(Caret_About, "&About...\tCtrl-A", "Show about dialog");
+ menuFile->Append(Caret_About, _T("&About...\tCtrl-A"), _T("Show about dialog"));
menuFile->AppendSeparator();
- menuFile->Append(Caret_Quit, "E&xit\tAlt-X", "Quit this program");
+ menuFile->Append(Caret_Quit, _T("E&xit\tAlt-X"), _T("Quit this program"));
// now append the freshly created menu to the menu bar...
wxMenuBar *menuBar = new wxMenuBar;
- menuBar->Append(menuFile, "&File");
+ menuBar->Append(menuFile, _T("&File"));
// ... and attach this menu bar to the frame
SetMenuBar(menuBar);
// create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(2);
- SetStatusText("Welcome to wxWindows!");
+ SetStatusText(_T("Welcome to wxWindows!"));
}