scrollbar fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
06f3c649c9
commit
a49afa93ca
@ -215,6 +215,7 @@ void wxDialog::DoShowModal()
|
||||
}
|
||||
// TODO : test whether parent gets disabled
|
||||
|
||||
bool formerModal = s_macIsInModalLoop ;
|
||||
s_macIsInModalLoop = true ;
|
||||
|
||||
while ( IsModalShowing() )
|
||||
@ -225,7 +226,7 @@ void wxDialog::DoShowModal()
|
||||
wxTheApp->MacDoOneEvent() ;
|
||||
}
|
||||
|
||||
s_macIsInModalLoop = false ;
|
||||
s_macIsInModalLoop = formerModal ;
|
||||
|
||||
// TODO probably reenable the parent window if any
|
||||
|
||||
|
@ -82,9 +82,10 @@ void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageS
|
||||
|
||||
if ( UMAGetAppearanceVersion() >= 0x0110 )
|
||||
{
|
||||
#if UMA_USE_8_6
|
||||
if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress )
|
||||
{
|
||||
SetControlViewSize( m_macControl , m_pageSize ) ;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Refresh() ;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ void wxStaticText::OnDraw( wxDC &dc )
|
||||
return;
|
||||
|
||||
PrepareDC(dc);
|
||||
// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
|
||||
dc.Clear() ;
|
||||
|
||||
int x = 0 ;
|
||||
int y = 0 ;
|
||||
|
@ -1277,7 +1277,7 @@ void wxWindow::SetScrollbar(int orient, int pos, int thumbVisible,
|
||||
{
|
||||
if ( !m_hScrollBar->IsShown() )
|
||||
m_hScrollBar->Show(true) ;
|
||||
m_hScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
|
||||
m_hScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1294,7 +1294,7 @@ void wxWindow::SetScrollbar(int orient, int pos, int thumbVisible,
|
||||
{
|
||||
if ( !m_vScrollBar->IsShown() )
|
||||
m_vScrollBar->Show(true) ;
|
||||
m_vScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
|
||||
m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1866,7 +1866,7 @@ void wxWindow::MacRedraw( RgnHandle updatergn , long time)
|
||||
|
||||
if ( GetParent() && m_backgroundColour != GetParent()->GetBackgroundColour() )
|
||||
eraseBackground = true ;
|
||||
SetClip( updatergn ) ;
|
||||
SetClip( ownUpdateRgn ) ;
|
||||
if ( m_macEraseOnRedraw ) {
|
||||
if ( eraseBackground )
|
||||
{
|
||||
|
@ -215,6 +215,7 @@ void wxDialog::DoShowModal()
|
||||
}
|
||||
// TODO : test whether parent gets disabled
|
||||
|
||||
bool formerModal = s_macIsInModalLoop ;
|
||||
s_macIsInModalLoop = true ;
|
||||
|
||||
while ( IsModalShowing() )
|
||||
@ -225,7 +226,7 @@ void wxDialog::DoShowModal()
|
||||
wxTheApp->MacDoOneEvent() ;
|
||||
}
|
||||
|
||||
s_macIsInModalLoop = false ;
|
||||
s_macIsInModalLoop = formerModal ;
|
||||
|
||||
// TODO probably reenable the parent window if any
|
||||
|
||||
|
@ -82,9 +82,10 @@ void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageS
|
||||
|
||||
if ( UMAGetAppearanceVersion() >= 0x0110 )
|
||||
{
|
||||
#if UMA_USE_8_6
|
||||
if ( SetControlViewSize != (void*) kUnresolvedCFragSymbolAddress )
|
||||
{
|
||||
SetControlViewSize( m_macControl , m_pageSize ) ;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Refresh() ;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ void wxStaticText::OnDraw( wxDC &dc )
|
||||
return;
|
||||
|
||||
PrepareDC(dc);
|
||||
// dc.Clear() ; this eventually draws in the wrong background colour (appearance panels)
|
||||
dc.Clear() ;
|
||||
|
||||
int x = 0 ;
|
||||
int y = 0 ;
|
||||
|
@ -1277,7 +1277,7 @@ void wxWindow::SetScrollbar(int orient, int pos, int thumbVisible,
|
||||
{
|
||||
if ( !m_hScrollBar->IsShown() )
|
||||
m_hScrollBar->Show(true) ;
|
||||
m_hScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
|
||||
m_hScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1294,7 +1294,7 @@ void wxWindow::SetScrollbar(int orient, int pos, int thumbVisible,
|
||||
{
|
||||
if ( !m_vScrollBar->IsShown() )
|
||||
m_vScrollBar->Show(true) ;
|
||||
m_vScrollBar->SetScrollbar( pos , thumbVisible , range , refresh ) ;
|
||||
m_vScrollBar->SetScrollbar( pos , thumbVisible , range , thumbVisible , refresh ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1866,7 +1866,7 @@ void wxWindow::MacRedraw( RgnHandle updatergn , long time)
|
||||
|
||||
if ( GetParent() && m_backgroundColour != GetParent()->GetBackgroundColour() )
|
||||
eraseBackground = true ;
|
||||
SetClip( updatergn ) ;
|
||||
SetClip( ownUpdateRgn ) ;
|
||||
if ( m_macEraseOnRedraw ) {
|
||||
if ( eraseBackground )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user