]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/choicdgg.cpp
Removed #pragma implementation "appbase.h" which caused duplicate symbols
[wxWidgets.git] / src / generic / choicdgg.cpp
index 608fec4009ea445f66df652810f72b9e82587c9e..e33b7c61fb240796348ada25c29239d70726baef 100644 (file)
@@ -48,7 +48,7 @@ wxString wxGetSingleChoice( const wxString& message, const wxString& caption, in
     if ( dialog.ShowModal() == wxID_OK )
         return dialog.GetStringSelection();
     else
-        return _T("");
+        return wxT("");
 }
 
 // Overloaded for backward compatibility
@@ -234,7 +234,7 @@ bool wxSingleChoiceDialog::Create( wxWindow *WXUNUSED(parent),
 {
     m_selection = 0;
     m_clientData = NULL;
-    m_stringSelection = _T("");
+    m_stringSelection = wxT("");
 
     m_dialogStyle = style;
 
@@ -264,10 +264,11 @@ bool wxSingleChoiceDialog::Create( wxWindow *WXUNUSED(parent),
     // 4) buttons
     topsizer->Add( CreateButtonSizer( wxOK|wxCANCEL ), 0, wxCENTRE | wxALL, 10 );
 
+    SetAutoLayout( TRUE );
+    SetSizer( topsizer );
+    
     topsizer->SetSizeHints( this );
     topsizer->Fit( this );
-    SetSizer( topsizer );
-    SetAutoLayout( TRUE );
 
     Centre( wxBOTH );