DragonNest/Client/EtCutSceneTool/IPropertyDelegate.cpp
2024-12-20 16:56:44 +08:00

25 lines
1.1 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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();
}