Added Description Box Height to saveable/restoreable editable state

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-10-04 10:59:06 +00:00
parent a5d567622f
commit 6280517046
5 changed files with 85 additions and 5 deletions

View File

@@ -1396,6 +1396,29 @@ void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
// -----------------------------------------------------------------------
bool wxPropertyGridManager::SetEditableStateItem( const wxString& name, wxVariant value )
{
if ( name == wxS("descboxheight") )
{
SetDescBoxHeight(value.GetLong(), true);
return true;
}
return false;
}
// -----------------------------------------------------------------------
wxVariant wxPropertyGridManager::GetEditableStateItem( const wxString& name ) const
{
if ( name == wxS("descboxheight") )
{
return (long) GetDescBoxHeight();
}
return wxNullVariant;
}
// -----------------------------------------------------------------------
void wxPropertyGridManager::SetDescription( const wxString& label, const wxString& content )
{
if ( m_pTxtHelpCaption )