git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10286
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
// TODO : test whether parent gets disabled
}
// TODO : test whether parent gets disabled
+ bool formerModal = s_macIsInModalLoop ;
s_macIsInModalLoop = true ;
while ( IsModalShowing() )
s_macIsInModalLoop = true ;
while ( IsModalShowing() )
wxTheApp->MacDoOneEvent() ;
}
wxTheApp->MacDoOneEvent() ;
}
- s_macIsInModalLoop = false ;
+ s_macIsInModalLoop = formerModal ;
// TODO probably reenable the parent window if any
// TODO probably reenable the parent window if any
if ( UMAGetAppearanceVersion() >= 0x0110 )
{
if ( UMAGetAppearanceVersion() >= 0x0110 )
{
+ if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress )
+ {
SetControlViewSize( m_macControl , m_pageSize ) ;
SetControlViewSize( m_macControl , m_pageSize ) ;
-// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
{
if ( !m_hScrollBar->IsShown() )
m_hScrollBar->Show(true) ;
{
if ( !m_hScrollBar->IsShown() )
m_hScrollBar->Show(true) ;
- m_hScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
+ m_hScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
{
if ( !m_vScrollBar->IsShown() )
m_vScrollBar->Show(true) ;
{
if ( !m_vScrollBar->IsShown() )
m_vScrollBar->Show(true) ;
- m_vScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
+ m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
if ( GetParent() && m_backgroundColour != GetParent()->GetBackgroundColour() )
eraseBackground = true ;
if ( GetParent() && m_backgroundColour != GetParent()->GetBackgroundColour() )
eraseBackground = true ;
+ SetClip( ownUpdateRgn ) ;
if ( m_macEraseOnRedraw ) {
if ( eraseBackground )
{
if ( m_macEraseOnRedraw ) {
if ( eraseBackground )
{
}
// TODO : test whether parent gets disabled
}
// TODO : test whether parent gets disabled
+ bool formerModal = s_macIsInModalLoop ;
s_macIsInModalLoop = true ;
while ( IsModalShowing() )
s_macIsInModalLoop = true ;
while ( IsModalShowing() )
wxTheApp->MacDoOneEvent() ;
}
wxTheApp->MacDoOneEvent() ;
}
- s_macIsInModalLoop = false ;
+ s_macIsInModalLoop = formerModal ;
// TODO probably reenable the parent window if any
// TODO probably reenable the parent window if any
if ( UMAGetAppearanceVersion() >= 0x0110 )
{
if ( UMAGetAppearanceVersion() >= 0x0110 )
{
+ if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress )
+ {
SetControlViewSize( m_macControl , m_pageSize ) ;
SetControlViewSize( m_macControl , m_pageSize ) ;
-// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
{
if ( !m_hScrollBar->IsShown() )
m_hScrollBar->Show(true) ;
{
if ( !m_hScrollBar->IsShown() )
m_hScrollBar->Show(true) ;
- m_hScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
+ m_hScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
{
if ( !m_vScrollBar->IsShown() )
m_vScrollBar->Show(true) ;
{
if ( !m_vScrollBar->IsShown() )
m_vScrollBar->Show(true) ;
- m_vScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
+ m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
if ( GetParent() && m_backgroundColour != GetParent()->GetBackgroundColour() )
eraseBackground = true ;
if ( GetParent() && m_backgroundColour != GetParent()->GetBackgroundColour() )
eraseBackground = true ;
+ SetClip( ownUpdateRgn ) ;
if ( m_macEraseOnRedraw ) {
if ( eraseBackground )
{
if ( m_macEraseOnRedraw ) {
if ( eraseBackground )
{