// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
m_windowVariant = parent->GetWindowVariant() ;
+ m_hScrollBarAlwaysShown =
+ m_vScrollBarAlwaysShown = HasFlag(wxALWAYS_SHOW_SB);
+
if ( m_peer != kOSXNoWidgetImpl )
{
SetPeer(wxWidgetImpl::CreateUserPane( this, parent, id, pos, size , style, GetExtraStyle() ));
#endif
if (x)
- *x = ww;
+ {
+ // we shouldn't return invalid width
+ if ( ww < 0 )
+ ww = 0;
+
+ *x = ww;
+ }
+
if (y)
- *y = hh;
+ {
+ // we shouldn't return invalid height
+ if ( hh < 0 )
+ hh = 0;
+
+ *y = hh;
+ }
}
bool wxWindowMac::SetCursor(const wxCursor& cursor)
return false;
}
+void *wxWindowMac::OSXGetViewOrWindow() const
+{
+ return GetHandle();
+}
+
wxInt32 wxWindowMac::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF event )
{
#if wxOSX_USE_COCOA_OR_CARBON