git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42419
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
return m_genericImpl->GetItem(info);
if (m_dbImpl)
return m_genericImpl->GetItem(info);
if (m_dbImpl)
- m_dbImpl->MacGetColumnInfo(info.m_itemId, info.m_col, info);
+ {
+ if (!IsVirtual())
+ m_dbImpl->MacGetColumnInfo(info.m_itemId, info.m_col, info);
+ else
+ {
+ info.SetText( OnGetItemText(info.m_itemId, info.m_col) );
+ info.SetImage( OnGetItemColumnImage(info.m_itemId, info.m_col) );
+ wxListItemAttr* attrs = OnGetItemAttr( info.m_itemId );
+ if (attrs)
+ {
+ info.SetFont( attrs->GetFont() );
+ info.SetBackgroundColour( attrs->GetBackgroundColour() );
+ info.SetTextColour( attrs->GetTextColour() );
+ }
+ }
+ }
bool success = true;
return success;
}
bool success = true;
return success;
}