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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user