Call RecreateControls() if relevant window style flag was toggled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -505,9 +505,18 @@ void wxPropertyGridManager::Thaw()
|
|||||||
|
|
||||||
void wxPropertyGridManager::SetWindowStyleFlag( long style )
|
void wxPropertyGridManager::SetWindowStyleFlag( long style )
|
||||||
{
|
{
|
||||||
|
int oldWindowStyle = GetWindowStyleFlag();
|
||||||
|
|
||||||
wxWindow::SetWindowStyleFlag( style );
|
wxWindow::SetWindowStyleFlag( style );
|
||||||
m_pPropGrid->SetWindowStyleFlag( (m_pPropGrid->GetWindowStyleFlag()&~(wxPG_MAN_PASS_FLAGS_MASK)) |
|
m_pPropGrid->SetWindowStyleFlag( (m_pPropGrid->GetWindowStyleFlag()&~(wxPG_MAN_PASS_FLAGS_MASK)) |
|
||||||
(style&wxPG_MAN_PASS_FLAGS_MASK) );
|
(style&wxPG_MAN_PASS_FLAGS_MASK) );
|
||||||
|
|
||||||
|
// Need to re-position windows?
|
||||||
|
if ( (oldWindowStyle & (wxPG_TOOLBAR|wxPG_DESCRIPTION)) !=
|
||||||
|
(style & (wxPG_TOOLBAR|wxPG_DESCRIPTION)) )
|
||||||
|
{
|
||||||
|
RecreateControls();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user