#include "forty.h"
#include "card.h"
#include "scoredg.h"
+#include "forty.xpm"
#if wxUSE_HTML
#include "wx/textfile.h"
{
if (!m_textColour)
{
- m_textColour = new wxColour(_T("BLACK"));
+ m_textColour = new wxColour(*wxBLACK);
}
return *m_textColour;
#ifdef __WXMSW__
SetIcon(wxIcon(_T("CardsIcon")));
#else
-#ifdef GTK_TBD
- SetIcon(wxIcon(Cards_bits, Cards_width, Cards_height));
-#endif
+ SetIcon(wxIcon(forty_xpm));
#endif
// Make a menu bar
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
topsizer->Add( m_canvas, 1, wxEXPAND | wxALL, 0);
SetSizer( topsizer );
- topsizer->SetSizeHints( this );
#if wxUSE_STATUSBAR
CreateStatusBar();
#endif // wxUSE_STATUSBAR
+
+ topsizer->SetSizeHints( this );
}
void FortyFrame::OnCloseWindow(wxCloseEvent& event)
// stAboutDialog
//----------------------------------------------------------------------------
-BEGIN_EVENT_TABLE(FortyAboutDialog,wxDialog)
- EVT_BUTTON(wxID_CLOSE, wxDialog::OnOK)
-END_EVENT_TABLE()
-
FortyAboutDialog::FortyAboutDialog( wxWindow *parent, wxWindowID id, const wxString &title,
const wxPoint &position, const wxSize& size, long style ) :
wxDialog( parent, id, title, position, size, style )
wxButton *item2 = new wxButton( parent, wxID_CLOSE );
item2->SetDefault();
item2->SetFocus();
+ SetAffirmativeId(wxID_CLOSE);
item0->Add( item2, 0, wxALIGN_RIGHT|wxALL, 5 );
return true;
}
-