#include "wx/layout.h"
#include "wx/dialog.h"
#include "wx/scrolbar.h"
-#include "wx/scrolwin.h"
#include "wx/statbox.h"
#include "wx/button.h"
#include "wx/settings.h"
#include "wx/log.h"
#include "wx/geometry.h"
#include "wx/textctrl.h"
-#include "wx/laywin.h"
-#include "wx/splitter.h"
#include "wx/toolbar.h"
#include "wx/dc.h"
if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
return FALSE;
- parent->AddChild(this);
-
m_windowVariant = parent->GetWindowVariant() ;
if ( m_macIsUserPane )
wxASSERT_MSG( m_peer != NULL && m_peer->Ok() , wxT("No valid mac control") ) ;
m_peer->SetReference( (long) this ) ;
+ GetParent()->AddChild(this);
MacInstallEventHandler( (WXWidget) m_peer->GetControlRef() );
return FALSE;
// TODO use visibilityChanged Carbon Event for OSX
- bool former = MacIsReallyShown() ;
+ if ( m_peer )
+ {
+ bool former = MacIsReallyShown() ;
- m_peer->SetVisibility( show , true ) ;
- if ( former != MacIsReallyShown() )
- MacPropagateVisibilityChanged() ;
+ m_peer->SetVisibility( show , true ) ;
+ if ( former != MacIsReallyShown() )
+ MacPropagateVisibilityChanged() ;
+ }
return TRUE;
}
}
// Get the window with the focus
-wxWindowMac *wxWindowBase::FindFocus()
+wxWindowMac *wxWindowBase::DoFindFocus()
{
ControlRef control ;
GetKeyboardFocus( GetUserFocusWindow() , &control ) ;
void wxWindowMac::Update()
{
#if TARGET_API_MAC_OSX
- WindowRef window = (WindowRef)MacGetTopLevelWindowRef() ;
+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_3
+ WindowRef window = (WindowRef)MacGetTopLevelWindowRef() ;
+
// for composited windows this also triggers a redraw of all
// invalid views in the window
if( UMAGetSystemVersion() >= 0x1030 )
MacRootWindowToWindow( &x , &y ) ;
if ( !includeOuterStructures || (
- parent->IsKindOf( CLASSINFO( wxScrolledWindow ) ) ||
- parent->IsKindOf( CLASSINFO( wxSashLayoutWindow ) ) ||
- ( parent->GetParent() && parent->GetParent()->IsKindOf( CLASSINFO( wxSplitterWindow ) ) )
+ parent->MacClipChildren() ||
+ ( parent->GetParent() && parent->GetParent()->MacClipGrandChildren() )
) )
{
SetRectRgn( tempRgn ,