Add wxListCtrl::Get/SetItemFont, patch 1236820 Francesco Montorsi
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1092,6 +1092,24 @@ wxColour wxListCtrl::GetItemBackgroundColour( long item ) const
|
||||
return col;
|
||||
}
|
||||
|
||||
void wxListCtrl::SetItemFont( long item, const wxFont &f )
|
||||
{
|
||||
wxListItem info;
|
||||
info.m_itemId = item;
|
||||
info.SetFont( f );
|
||||
SetItem( info );
|
||||
}
|
||||
|
||||
wxFont wxListCtrl::GetItemFont( long item ) const
|
||||
{
|
||||
wxFont f;
|
||||
wxListItemInternalData *data = wxGetInternalData(this, item);
|
||||
if ( data && data->attr )
|
||||
f = data->attr->GetFont();
|
||||
|
||||
return f;
|
||||
}
|
||||
|
||||
// Gets the number of selected items in the list control
|
||||
int wxListCtrl::GetSelectedItemCount() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user