content clipping becomes a runtime attribute

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-03-31 05:12:46 +00:00
parent 4002a6cc0e
commit 8adc196b0e
6 changed files with 16 additions and 8 deletions

View File

@@ -424,6 +424,9 @@ void wxScrollHelper::SetWindow(wxWindow *win)
void wxScrollHelper::DoSetTargetWindow(wxWindow *target)
{
m_targetWindow = target;
#ifdef __WXMAC__
target->MacSetClipChildren( true ) ;
#endif
// install the event handler which will intercept the events we're
// interested in (but only do it for our real window, not the target window
@@ -1250,6 +1253,9 @@ bool wxGenericScrolledWindow::Create(wxWindow *parent,
const wxString& name)
{
m_targetWindow = this;
#ifdef __WXMAC__
MacSetClipChildren( true ) ;
#endif
bool ok = wxPanel::Create(parent, id, pos, size, style|wxHSCROLL|wxVSCROLL, name);