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:
@@ -697,7 +697,10 @@ int wxPropertyGridPageState::GetColumnFitWidth(wxClientDC& dc,
|
||||
wxPGProperty* p = pwc->Item(i);
|
||||
if ( !p->IsCategory() )
|
||||
{
|
||||
dc.GetTextExtent( p->GetColumnText(col), &w, &h );
|
||||
const wxPGCell* cell = NULL;
|
||||
wxString text;
|
||||
p->GetDisplayInfo(col, -1, 0, &text, &cell);
|
||||
dc.GetTextExtent(text, &w, &h);
|
||||
if ( col == 0 )
|
||||
w += ( ((int)p->m_depth-1) * pg->m_subgroup_extramargin );
|
||||
|
||||
|
Reference in New Issue
Block a user