From 8ce88dfa24ff9bbb4d0d48eb4d4da9b83bf8fa02 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Nov 2000 13:00:12 +0000 Subject: [PATCH] changed lbox font to be more readable git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/exec/exec.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samples/exec/exec.cpp b/samples/exec/exec.cpp index 5b1794ba83..b540460720 100644 --- a/samples/exec/exec.cpp +++ b/samples/exec/exec.cpp @@ -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) -- 2.45.2