/////////////////////////////////////////////////////////////////////////////
// Name: test.cpp
// Purpose: wxHtml testing example
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: test.cpp
// Purpose: wxHtml testing example
/////////////////////////////////////////////////////////////////////////////
// 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)
// 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)
// the application object during program execution (it's better than using a
// static object for many reasons) and also declares the accessor function
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
// the application object during program execution (it's better than using a
// static object for many reasons) and also declares the accessor function
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
- MyFrame *frame = new MyFrame("HTML Help Sample",
- wxPoint(50, 50), wxSize(150, 50));
+ MyFrame *frame = new MyFrame(_("HTML Help Sample"),
+ wxDefaultPosition, wxDefaultSize);
// Show it and tell the application that it's our main window
// @@@ what does it do exactly, in fact? is it necessary here?
// Show it and tell the application that it's our main window
// @@@ what does it do exactly, in fact? is it necessary here?
- : wxFrame((wxFrame *)NULL, -1, title, pos, size),
+ : wxFrame((wxFrame *)NULL, wxID_ANY, title, pos, size),
- menuFile->Append(Minimal_Help, "&Help");
- menuFile->Append(Minimal_Quit, "E&xit");
+ menuFile->Append(Minimal_Help, _("&Help"));
+ menuFile->Append(Minimal_Quit, _("E&xit"));
-#ifdef __WXMAC__
- ret = help.AddBook(":helpfiles:testing.hhp");
-#else
- help.SetTempDir(".");
- ret = help.AddBook("helpfiles/testing.hhp");
-#endif
+ help.SetTempDir(wxT("."));
+ ret = help.AddBook(wxFileName(wxT("helpfiles/testing.hhp"), wxPATH_UNIX));
- wxMessageBox("Failed adding book helpfiles/testing.hhp");
-#ifdef __WXMAC__
- ret = help.AddBook(":helpfiles:another.hhp");
-#else
- ret = help.AddBook("helpfiles/another.hhp");
-#endif
+ wxMessageBox(wxT("Failed adding book helpfiles/testing.hhp"));
+ ret = help.AddBook(wxFileName(wxT("helpfiles/another.hhp"), wxPATH_UNIX));
// Close the help frame; this will cause the config data to
// get written.
if ( help.GetFrame() ) // returns NULL if no help frame active
// Close the help frame; this will cause the config data to
// get written.
if ( help.GetFrame() ) // returns NULL if no help frame active