Corrected include/wx/palette.h; added wxGenericTreeCtrl::SetFont

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2001-04-24 16:38:02 +00:00
parent 2c1c448a24
commit 3da2715fb8
3 changed files with 19 additions and 1 deletions

View File

@ -148,6 +148,9 @@ public:
// set the items font (should be of the same height for all items)
void SetItemFont(const wxTreeItemId& item, const wxFont& font);
// set the window font
virtual bool SetFont( const wxFont &font );
// item status inquiries
// ---------------------

View File

@ -6,7 +6,7 @@
#elif defined(__WXMOTIF__)
#include "wx/motif/palette.h"
#elif defined(__WXGTK__)
#include "wx/gtk/palette.h"
#include "wx/generic/paletteg.h"
#elif defined(__WXQT__)
#include "wx/qt/palette.h"
#elif defined(__WXMAC__)

View File

@ -818,6 +818,21 @@ void wxGenericTreeCtrl::SetItemFont(const wxTreeItemId& item, const wxFont& font
RefreshLine(pItem);
}
bool wxGenericTreeCtrl::SetFont( const wxFont &font )
{
wxScrolledWindow::SetFont(font);
m_normalFont = font ;
m_boldFont = wxFont( m_normalFont.GetPointSize(),
m_normalFont.GetFamily(),
m_normalFont.GetStyle(),
wxBOLD,
m_normalFont.GetUnderlined());
return TRUE;
}
// -----------------------------------------------------------------------------
// item status inquiries
// -----------------------------------------------------------------------------