]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/forty/playerdg.cpp
Got Penguin sample running under Windows.
[wxWidgets.git] / samples / forty / playerdg.cpp
index aa671d0adcdfce8025c5e15a2d2b693cdbf0eeaf..e55cd0f93dc2fa7f4570b1585f6eeaa6253ebaa0 100644 (file)
@@ -44,7 +44,7 @@ PlayerSelectionDialog::PlayerSelectionDialog(
                                                        ScoreFile* file
                                                        ) :
        wxDialog(parent, -1, "Player Selection",
                                                        ScoreFile* file
                                                        ) :
        wxDialog(parent, -1, "Player Selection",
-                       wxDefaultPosition, wxSize(250, 200),
+                       wxDefaultPosition, wxSize(320, 200),
                        wxDIALOG_MODAL | wxDEFAULT_DIALOG_STYLE),
        m_scoreFile(file)
 {
                        wxDIALOG_MODAL | wxDEFAULT_DIALOG_STYLE),
        m_scoreFile(file)
 {
@@ -59,18 +59,13 @@ PlayerSelectionDialog::PlayerSelectionDialog(
                                                0, 0,
                                                wxLB_SINGLE
                                                );
                                                0, 0,
                                                wxLB_SINGLE
                                                );
-/*
-    Robert Roebling
     
     
-       int numPlayers = 0;
-       wxString* players = 0;
-       m_scoreFile->GetPlayerList(&players, numPlayers);
-       for (int i = 0; i < numPlayers; i++)
+       wxArrayString players;
+       m_scoreFile->GetPlayerList(players);
+       for (unsigned int i = 0; i < players.Count(); i++)
        {
                list->Append(players[i]);
        }
        {
                list->Append(players[i]);
        }
-       delete players;
-*/
 
        m_textField = new wxTextCtrl(this, -1, "", wxDefaultPosition, wxDefaultSize, 0);
 
 
        m_textField = new wxTextCtrl(this, -1, "", wxDefaultPosition, wxDefaultSize, 0);
 
@@ -133,7 +128,7 @@ PlayerSelectionDialog::~PlayerSelectionDialog()
 {
 }
 
 {
 }
 
-void PlayerSelectionDialog::OnSize(wxSizeEvent& event)
+void PlayerSelectionDialog::OnSize(wxSizeEvent& WXUNUSED(event))
 {
        Layout();
 }
 {
        Layout();
 }