Allow wxSTC to have scrollbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -200,7 +200,9 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id,
|
||||
m_width = WidthDefault( size.x );
|
||||
m_height = HeightDefault( size.y ) ;
|
||||
#ifndef __WXUNIVERSAL__
|
||||
if ( ! IsKindOf( CLASSINFO ( wxControl ) ) && ! IsKindOf( CLASSINFO( wxStatusBar ) ) )
|
||||
// Don't give scrollbars to wxControls unless they ask for them
|
||||
if ( (! IsKindOf(CLASSINFO(wxControl)) && ! IsKindOf(CLASSINFO(wxStatusBar))) ||
|
||||
(IsKindOf(CLASSINFO(wxControl)) && ( style & wxHSCROLL || style & wxVSCROLL)))
|
||||
{
|
||||
MacCreateScrollBars( style ) ;
|
||||
}
|
||||
|
@@ -200,7 +200,9 @@ bool wxWindowMac::Create(wxWindowMac *parent, wxWindowID id,
|
||||
m_width = WidthDefault( size.x );
|
||||
m_height = HeightDefault( size.y ) ;
|
||||
#ifndef __WXUNIVERSAL__
|
||||
if ( ! IsKindOf( CLASSINFO ( wxControl ) ) && ! IsKindOf( CLASSINFO( wxStatusBar ) ) )
|
||||
// Don't give scrollbars to wxControls unless they ask for them
|
||||
if ( (! IsKindOf(CLASSINFO(wxControl)) && ! IsKindOf(CLASSINFO(wxStatusBar))) ||
|
||||
(IsKindOf(CLASSINFO(wxControl)) && ( style & wxHSCROLL || style & wxVSCROLL)))
|
||||
{
|
||||
MacCreateScrollBars( style ) ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user