Fixed wxPropertyGridManager::CreatePropertyGrid(), corrected documentation about its use
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -607,8 +607,12 @@ protected:
|
|||||||
// Subclassing helpers
|
// Subclassing helpers
|
||||||
//
|
//
|
||||||
|
|
||||||
/** Creates property grid for the manager. Override to use subclassed
|
/**
|
||||||
wxPropertyGrid.
|
Creates property grid for the manager. Reimplement in derived class to
|
||||||
|
use subclassed wxPropertyGrid. However, if you you do this then you
|
||||||
|
must also use the two-step construction (ie. default constructor and
|
||||||
|
Create() instead of constructor with arguments) when creating the
|
||||||
|
manager.
|
||||||
*/
|
*/
|
||||||
virtual wxPropertyGrid* CreatePropertyGrid() const;
|
virtual wxPropertyGrid* CreatePropertyGrid() const;
|
||||||
|
|
||||||
|
@@ -463,8 +463,11 @@ protected:
|
|||||||
//
|
//
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates property grid for the manager.
|
Creates property grid for the manager. Reimplement in derived class to
|
||||||
Override to use subclassed wxPropertyGrid.
|
use subclassed wxPropertyGrid. However, if you you do this then you
|
||||||
|
must also use the two-step construction (ie. default constructor and
|
||||||
|
Create() instead of constructor with arguments) when creating the
|
||||||
|
manager.
|
||||||
*/
|
*/
|
||||||
virtual wxPropertyGrid* CreatePropertyGrid() const;
|
virtual wxPropertyGrid* CreatePropertyGrid() const;
|
||||||
};
|
};
|
||||||
|
@@ -281,6 +281,8 @@ bool wxPropertyGridManager::Create( wxWindow *parent,
|
|||||||
long style,
|
long style,
|
||||||
const wxString& name )
|
const wxString& name )
|
||||||
{
|
{
|
||||||
|
if ( !m_pPropGrid )
|
||||||
|
m_pPropGrid = CreatePropertyGrid();
|
||||||
|
|
||||||
bool res = wxPanel::Create( parent, id, pos, size,
|
bool res = wxPanel::Create( parent, id, pos, size,
|
||||||
(style&0xFFFF0000)|wxWANTS_CHARS,
|
(style&0xFFFF0000)|wxWANTS_CHARS,
|
||||||
@@ -298,8 +300,7 @@ bool wxPropertyGridManager::Create( wxWindow *parent,
|
|||||||
void wxPropertyGridManager::Init1()
|
void wxPropertyGridManager::Init1()
|
||||||
{
|
{
|
||||||
|
|
||||||
//m_pPropGrid = NULL;
|
m_pPropGrid = NULL;
|
||||||
m_pPropGrid = CreatePropertyGrid();
|
|
||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
m_pToolbar = NULL;
|
m_pToolbar = NULL;
|
||||||
|
Reference in New Issue
Block a user