Reworked wxPGCell. It is now reference counted, and therefore much more user friendly, and is used internally as basis for most property colour values instead of separate row text and bg colours.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -772,6 +772,28 @@ bool wxPropertyGridInterface::SetPropertyMaxLength( wxPGPropArg id, int maxLen )
|
||||
return true;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
void wxPropertyGridInterface::SetPropertyCell( wxPGPropArg id,
|
||||
int column,
|
||||
const wxString& text,
|
||||
const wxBitmap& bitmap,
|
||||
const wxColour& fgCol,
|
||||
const wxColour& bgCol )
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG()
|
||||
|
||||
wxPGCell& cell = p->GetCell(column);
|
||||
if ( text.length() && text != wxPG_LABEL )
|
||||
cell.SetText(text);
|
||||
if ( bitmap.IsOk() )
|
||||
cell.SetBitmap(bitmap);
|
||||
if ( fgCol != wxNullColour )
|
||||
cell.SetFgCol(fgCol);
|
||||
if ( bgCol != wxNullColour )
|
||||
cell.SetBgCol(bgCol);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// GetPropertyValueAsXXX methods
|
||||
|
||||
|
Reference in New Issue
Block a user