Added wxPropertyGridInterface::SetColumnProportion(); wxPG_SPLITTER_AUTO_CENTER window style now supports column counts higher than two.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -359,6 +359,17 @@ void wxPropertyGridInterface::ClearModifiedStatus()
|
||||
GetPropertyGrid()->RefreshEditor();
|
||||
}
|
||||
|
||||
bool wxPropertyGridInterface::SetColumnProportion( unsigned int column,
|
||||
int proportion )
|
||||
{
|
||||
wxCHECK(m_pState, false);
|
||||
wxPropertyGrid* pg = m_pState->GetGrid();
|
||||
wxCHECK(pg, false);
|
||||
wxCHECK(pg->HasFlag(wxPG_SPLITTER_AUTO_CENTER), false);
|
||||
m_pState->DoSetColumnProportion(column, proportion);
|
||||
return true;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// wxPropertyGridInterface property value setting and getting
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user