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:
parent
2c1c448a24
commit
3da2715fb8
@ -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
|
||||
// ---------------------
|
||||
|
||||
|
@ -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__)
|
||||
|
@ -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
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user