git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28703
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool FortyApp::OnInit()
{
bool largecards = false;
bool FortyApp::OnInit()
{
bool largecards = false;
FortyFrame::Help(wxCommandEvent& event)
{
#if wxUSE_HTML
FortyFrame::Help(wxCommandEvent& event)
{
#if wxUSE_HTML
- if (wxFileExists(wxT("about.htm")))
+ wxString htmlFile = wxGetApp().GetDir() + wxFILE_SEP_PATH + wxT("about.htm");
+ if (wxFileExists(htmlFile))
{
FortyAboutDialog dialog(this, wxID_ANY, wxT("Forty Thieves Instructions"));
if (dialog.ShowModal() == wxID_OK)
{
FortyAboutDialog dialog(this, wxID_ANY, wxT("Forty Thieves Instructions"));
if (dialog.ShowModal() == wxID_OK)
{
#if wxUSE_HTML
wxString htmlText;
{
#if wxUSE_HTML
wxString htmlText;
- wxString htmlFile(wxT("about.htm"));
+ wxString htmlFile = wxGetApp().GetDir() + wxFILE_SEP_PATH + wxT("about.htm");
- //if (!wxGetApp().GetMemoryTextResource(wxT("about.htm"), htmlText))
-// wxSetWorkingDirectory(wxGetApp().GetAppDir());
-// wxString htmlFile(wxGetApp().GetFullAppPath(wxT("about.htm")));
-
wxTextFile file(htmlFile);
if (file.Exists())
{
wxTextFile file(htmlFile);
if (file.Exists())
{
-#if 0
- wxString verString;
- verString.Printf("%.2f", stVERSION_NUMBER);
- htmlText.Replace(wxT("$VERSION$"), verString);
-#endif
htmlText.Replace(wxT("$DATE$"), _T(__DATE__));
wxSize htmlSize(400, 290);
htmlText.Replace(wxT("$DATE$"), _T(__DATE__));
wxSize htmlSize(400, 290);
static const wxColour& BackgroundColour();
static const wxColour& TextColour();
static const wxBrush& BackgroundBrush();
static const wxColour& BackgroundColour();
static const wxColour& TextColour();
static const wxBrush& BackgroundBrush();
+ const wxString& GetDir() const { return m_dir; }
private:
static wxColour* m_backgroundColour;
static wxColour* m_textColour;
static wxBrush* m_backgroundBrush;
private:
static wxColour* m_backgroundColour;
static wxColour* m_textColour;
static wxBrush* m_backgroundBrush;
class FortyCanvas;
class FortyFrame: public wxFrame
{
class FortyCanvas;
class FortyFrame: public wxFrame
{