Changeset 204


Ignore:
Timestamp:
05/15/2009 12:52:19 PM (3 years ago)
Author:
guyru
Message:

Center window on startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/openyahtzee.cpp

    r180 r204  
    1 // $Header$ 
    21/*************************************************************************** 
    3  *   Copyright (C) 2006 by Guy Rutenberg   * 
     2 *   Copyright (C) 2006-2009 by Guy Rutenberg   * 
    43 *   guyrutenberg@gmail.com   * 
    54 *                                                                         * 
     
    1918 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             * 
    2019 ***************************************************************************/ 
    21  
    2220 
    2321// This is the main source file for the project. It includes the creation of the main window 
     
    4846}; 
    4947 
    50  
    51  
    5248        // Implements MyApp& GetApp() 
    53         DECLARE_APP(MyApp) /*just to satisfy kdevelop*/; 
     49        DECLARE_APP(MyApp) 
    5450        // Give wxWidgets the means to create a MyApp object 
    55         IMPLEMENT_APP(MyApp) /*just to satisfy kdevelop*/; 
     51        IMPLEMENT_APP(MyApp) 
    5652        // Initialize the application 
    5753 
     
    6460        main_frame::MainFrame *frame = new main_frame::MainFrame(wxT("Open Yahtzee"), wxDefaultSize, wxDEFAULT_FRAME_STYLE & (~wxRESIZE_BORDER)); 
    6561         
    66         //Show it 
     62        //Center the frame and show it 
     63        frame->Centre(true); 
    6764        frame->Show(true);       
    6865        return true; 
Note: See TracChangeset for help on using the changeset viewer.