}
// TODO : test whether parent gets disabled
+ bool formerModal = s_macIsInModalLoop ;
s_macIsInModalLoop = true ;
while ( IsModalShowing() )
wxTheApp->MacDoOneEvent() ;
}
- s_macIsInModalLoop = false ;
+ s_macIsInModalLoop = formerModal ;
// TODO probably reenable the parent window if any
if ( UMAGetAppearanceVersion() >= 0x0110 )
{
-#if UMA_USE_8_6
+ if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress )
+ {
SetControlViewSize( m_macControl , m_pageSize ) ;
-#endif
+ }
}
Refresh() ;
}
return;
PrepareDC(dc);
-// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
+ dc.Clear() ;
int x = 0 ;
int y = 0 ;
{
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) ;
- m_vScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
+ m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
}
}
}
if ( GetParent() && m_backgroundColour != GetParent()->GetBackgroundColour() )
eraseBackground = true ;
- SetClip( updatergn ) ;
+ SetClip( ownUpdateRgn ) ;
if ( m_macEraseOnRedraw ) {
if ( eraseBackground )
{
}
// TODO : test whether parent gets disabled
+ bool formerModal = s_macIsInModalLoop ;
s_macIsInModalLoop = true ;
while ( IsModalShowing() )
wxTheApp->MacDoOneEvent() ;
}
- s_macIsInModalLoop = false ;
+ s_macIsInModalLoop = formerModal ;
// TODO probably reenable the parent window if any
if ( UMAGetAppearanceVersion() >= 0x0110 )
{
-#if UMA_USE_8_6
+ if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress )
+ {
SetControlViewSize( m_macControl , m_pageSize ) ;
-#endif
+ }
}
Refresh() ;
}
return;
PrepareDC(dc);
-// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
+ dc.Clear() ;
int x = 0 ;
int y = 0 ;
{
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) ;
- m_vScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
+ m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
}
}
}
if ( GetParent() && m_backgroundColour != GetParent()->GetBackgroundColour() )
eraseBackground = true ;
- SetClip( updatergn ) ;
+ SetClip( ownUpdateRgn ) ;
if ( m_macEraseOnRedraw ) {
if ( eraseBackground )
{