DragonNest/Client/EtCutSceneTool/IPropertyDelegate.cpp

26 lines
513 B
C++
Raw Normal View History

2024-12-19 09:48:26 +08:00
#include "stdafx.h"
#include "IPropertyDelegate.h"
IPropertyDelegate::IPropertyDelegate( wxWindow* pParent, int id ) : m_pPropGrid( NULL )
{
m_pPropGrid = new wxPropertyGrid( pParent, id, wxDefaultPosition, wxDefaultSize,
wxPG_BOLD_MODIFIED | wxPG_TOOLTIPS | wxTAB_TRAVERSAL | wxEXPAND );
}
IPropertyDelegate::~IPropertyDelegate(void)
{
m_pPropGrid->Clear();
}
void IPropertyDelegate::Show( bool bShow )
{
m_pPropGrid->Show( bShow );
m_pPropGrid->Enable( true );
if( bShow )
OnShow();
}