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:
@@ -148,6 +148,9 @@ public:
|
|||||||
// set the items font (should be of the same height for all items)
|
// set the items font (should be of the same height for all items)
|
||||||
void SetItemFont(const wxTreeItemId& item, const wxFont& font);
|
void SetItemFont(const wxTreeItemId& item, const wxFont& font);
|
||||||
|
|
||||||
|
// set the window font
|
||||||
|
virtual bool SetFont( const wxFont &font );
|
||||||
|
|
||||||
// item status inquiries
|
// item status inquiries
|
||||||
// ---------------------
|
// ---------------------
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
#elif defined(__WXMOTIF__)
|
#elif defined(__WXMOTIF__)
|
||||||
#include "wx/motif/palette.h"
|
#include "wx/motif/palette.h"
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
#include "wx/gtk/palette.h"
|
#include "wx/generic/paletteg.h"
|
||||||
#elif defined(__WXQT__)
|
#elif defined(__WXQT__)
|
||||||
#include "wx/qt/palette.h"
|
#include "wx/qt/palette.h"
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
|
@@ -818,6 +818,21 @@ void wxGenericTreeCtrl::SetItemFont(const wxTreeItemId& item, const wxFont& font
|
|||||||
RefreshLine(pItem);
|
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
|
// item status inquiries
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user