crashes fixed, trying to remove erradic redraws when layouting windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -290,6 +290,7 @@ void wxAssociateControlWithMacControl(ControlHandle inControl, wxControl *contro
|
|||||||
|
|
||||||
void wxRemoveMacControlAssociation(wxControl *control)
|
void wxRemoveMacControlAssociation(wxControl *control)
|
||||||
{
|
{
|
||||||
|
if ( wxWinMacControlList )
|
||||||
wxWinMacControlList->DeleteObject(control);
|
wxWinMacControlList->DeleteObject(control);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,7 +347,7 @@ void wxControl::MacPostControlCreate()
|
|||||||
ControlHandle container = (ControlHandle) GetParent()->MacGetContainerForEmbedding() ;
|
ControlHandle container = (ControlHandle) GetParent()->MacGetContainerForEmbedding() ;
|
||||||
wxASSERT_MSG( container != NULL , wxT("No valid mac container control") ) ;
|
wxASSERT_MSG( container != NULL , wxT("No valid mac container control") ) ;
|
||||||
::EmbedControl( (ControlHandle) m_macControl , container ) ;
|
::EmbedControl( (ControlHandle) m_macControl , container ) ;
|
||||||
m_macControlIsShown = true ;
|
m_macControlIsShown = MacIsReallyShown() ;
|
||||||
|
|
||||||
wxAssociateControlWithMacControl( (ControlHandle) m_macControl , this ) ;
|
wxAssociateControlWithMacControl( (ControlHandle) m_macControl , this ) ;
|
||||||
if ( wxMacSetupControlBackgroundUPP == NULL )
|
if ( wxMacSetupControlBackgroundUPP == NULL )
|
||||||
@@ -402,6 +403,7 @@ void wxControl::MacPostControlCreate()
|
|||||||
UMASetControlTitle( (ControlHandle) m_macControl , wxStripMenuCodes(m_label) ) ;
|
UMASetControlTitle( (ControlHandle) m_macControl , wxStripMenuCodes(m_label) ) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ( m_macControlIsShown )
|
||||||
UMAShowControl( (ControlHandle) m_macControl ) ;
|
UMAShowControl( (ControlHandle) m_macControl ) ;
|
||||||
|
|
||||||
SetCursor( *wxSTANDARD_CURSOR ) ;
|
SetCursor( *wxSTANDARD_CURSOR ) ;
|
||||||
|
@@ -290,6 +290,7 @@ void wxAssociateControlWithMacControl(ControlHandle inControl, wxControl *contro
|
|||||||
|
|
||||||
void wxRemoveMacControlAssociation(wxControl *control)
|
void wxRemoveMacControlAssociation(wxControl *control)
|
||||||
{
|
{
|
||||||
|
if ( wxWinMacControlList )
|
||||||
wxWinMacControlList->DeleteObject(control);
|
wxWinMacControlList->DeleteObject(control);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,7 +347,7 @@ void wxControl::MacPostControlCreate()
|
|||||||
ControlHandle container = (ControlHandle) GetParent()->MacGetContainerForEmbedding() ;
|
ControlHandle container = (ControlHandle) GetParent()->MacGetContainerForEmbedding() ;
|
||||||
wxASSERT_MSG( container != NULL , wxT("No valid mac container control") ) ;
|
wxASSERT_MSG( container != NULL , wxT("No valid mac container control") ) ;
|
||||||
::EmbedControl( (ControlHandle) m_macControl , container ) ;
|
::EmbedControl( (ControlHandle) m_macControl , container ) ;
|
||||||
m_macControlIsShown = true ;
|
m_macControlIsShown = MacIsReallyShown() ;
|
||||||
|
|
||||||
wxAssociateControlWithMacControl( (ControlHandle) m_macControl , this ) ;
|
wxAssociateControlWithMacControl( (ControlHandle) m_macControl , this ) ;
|
||||||
if ( wxMacSetupControlBackgroundUPP == NULL )
|
if ( wxMacSetupControlBackgroundUPP == NULL )
|
||||||
@@ -402,6 +403,7 @@ void wxControl::MacPostControlCreate()
|
|||||||
UMASetControlTitle( (ControlHandle) m_macControl , wxStripMenuCodes(m_label) ) ;
|
UMASetControlTitle( (ControlHandle) m_macControl , wxStripMenuCodes(m_label) ) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if ( m_macControlIsShown )
|
||||||
UMAShowControl( (ControlHandle) m_macControl ) ;
|
UMAShowControl( (ControlHandle) m_macControl ) ;
|
||||||
|
|
||||||
SetCursor( *wxSTANDARD_CURSOR ) ;
|
SetCursor( *wxSTANDARD_CURSOR ) ;
|
||||||
|
Reference in New Issue
Block a user