implementing wxALWAYS_SHOW_SB from 1744665
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2611,7 +2611,7 @@ void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible,
|
||||
{
|
||||
if ( m_hScrollBar )
|
||||
{
|
||||
showScroller = ((range != 0) && (range > thumbVisible));
|
||||
showScroller = HasFlag( wxALWAYS_SHOW_SB ) || ((range != 0) && (range > thumbVisible));
|
||||
if ( m_hScrollBar->IsShown() != showScroller )
|
||||
{
|
||||
m_hScrollBar->Show( showScroller );
|
||||
@@ -2625,7 +2625,7 @@ void wxWindowMac::SetScrollbar(int orient, int pos, int thumbVisible,
|
||||
{
|
||||
if ( m_vScrollBar )
|
||||
{
|
||||
showScroller = ((range != 0) && (range > thumbVisible));
|
||||
showScroller = HasFlag( wxALWAYS_SHOW_SB ) || ((range != 0) && (range > thumbVisible));
|
||||
if ( m_vScrollBar->IsShown() != showScroller )
|
||||
{
|
||||
m_vScrollBar->Show( showScroller ) ;
|
||||
|
Reference in New Issue
Block a user