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:
Robin Dunn
2002-07-06 06:46:24 +00:00
parent 4fcf77bc06
commit 14c9cbdb1e
2 changed files with 276 additions and 272 deletions

View File

@@ -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 ) ;
}

View File

@@ -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 ) ;
}