Use accessor functions to modify wxPG internal flags.
Use wxPropertyGrid::SetInternalFlag and ClearInternalFlag functions to set/clear appropriate internal flags instead of doing direct modifications on the member variable.
This commit is contained in:
@@ -575,7 +575,7 @@ void wxPropertyGridManager::Init2( int style )
|
||||
|
||||
m_pPropGrid->SetId(useId);
|
||||
|
||||
m_pPropGrid->m_iFlags |= wxPG_FL_IN_MANAGER;
|
||||
m_pPropGrid->SetInternalFlag(wxPG_FL_IN_MANAGER);
|
||||
|
||||
m_pState = m_pPropGrid->m_pState;
|
||||
|
||||
@@ -1632,7 +1632,7 @@ void wxPropertyGridManager::RecreateControls()
|
||||
if ( m_windowStyle & wxPG_DESCRIPTION )
|
||||
{
|
||||
// Has help box.
|
||||
m_pPropGrid->m_iFlags |= (wxPG_FL_NOSTATUSBARHELP);
|
||||
m_pPropGrid->SetInternalFlag(wxPG_FL_NOSTATUSBARHELP);
|
||||
|
||||
if ( !m_pTxtHelpCaption )
|
||||
{
|
||||
@@ -1661,7 +1661,7 @@ void wxPropertyGridManager::RecreateControls()
|
||||
else
|
||||
{
|
||||
// No help box.
|
||||
m_pPropGrid->m_iFlags &= ~(wxPG_FL_NOSTATUSBARHELP);
|
||||
m_pPropGrid->ClearInternalFlag(wxPG_FL_NOSTATUSBARHELP);
|
||||
|
||||
if ( m_pTxtHelpCaption )
|
||||
m_pTxtHelpCaption->Destroy();
|
||||
|
Reference in New Issue
Block a user