From 4e4688beb1a0a77a86ed80a9d5313e73f1bd1225 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 18 Jun 2004 08:00:51 +0000 Subject: [PATCH] minor visual improvements to wxTipDialog git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/tipdlg.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/generic/tipdlg.cpp b/src/generic/tipdlg.cpp index f9c2870942..7454236ba2 100644 --- a/src/generic/tipdlg.cpp +++ b/src/generic/tipdlg.cpp @@ -217,14 +217,13 @@ wxTipDialog::wxTipDialog(wxWindow *parent, wxButton *btnNext = new wxButton(this, wxID_NEXT_TIP, _("&Next Tip")); - wxStaticText *text = new wxStaticText(this, wxID_ANY, _("Did you know..."), wxDefaultPosition, wxSize(wxDefaultSize.x,30) ); -#if defined(__WXMSW__) || defined(__WXPM__) - text->SetFont(wxFont(16, wxSWISS, wxNORMAL, wxBOLD)); -#else - text->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxBOLD)); -#endif -// -// text->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE)); + wxStaticText *text = new wxStaticText(this, wxID_ANY, _("Did you know...")); + + wxFont font = text->GetFont(); + font.SetPointSize(int(1.6 * font.GetPointSize())); + font.SetWeight(wxFONTWEIGHT_BOLD); + + text->SetFont(font); m_text = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(200, 160), @@ -235,8 +234,6 @@ wxTipDialog::wxTipDialog(wxWindow *parent, wxSUNKEN_BORDER); #if defined(__WXMSW__) m_text->SetFont(wxFont(12, wxSWISS, wxNORMAL, wxNORMAL)); -#else - m_text->SetFont(wxFont(14, wxSWISS, wxNORMAL, wxNORMAL)); #endif //#if defined(__WXPM__) -- 2.45.2