]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/exec/exec.cpp
wxFileSelector should have file name only, not path, passed to 3rd arg
[wxWidgets.git] / samples / exec / exec.cpp
index 5b1794ba83719ec4542e7d6f5d71b974dae2845f..b540460720c5355c3d04c3ffd05f09e7bc2c3990 100644 (file)
@@ -39,6 +39,7 @@
     #include "wx/msgdlg.h"
     #include "wx/textdlg.h"
     #include "wx/listbox.h"
+    #include "wx/filedlg.h"
 #endif
 
 #include "wx/txtstrm.h"
@@ -307,6 +308,10 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
 
     // create the listbox in which we will show misc messages as they come
     m_lbox = new wxListBox(this, -1);
+    wxFont font(12, wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL,
+                wxFONTWEIGHT_NORMAL);
+    if ( font.Ok() )
+        m_lbox->SetFont(font);
 
 #if wxUSE_STATUSBAR
     // create a status bar just for fun (by default with 1 pane only)