// Purpose: implements mac carbon wxSearchCtrl
// Author: Vince Harron
// Created: 2006-02-19
-// RCS-ID: $Id: srchctrl.cpp 54820 2008-07-29 20:04:11Z SC $
+// RCS-ID: $Id$
// Copyright: Vince Harron
-// License: wxWindows licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx.h".
wxSearchWidgetImpl* wxSearchCtrl::GetSearchPeer() const
{
- return dynamic_cast<wxSearchWidgetImpl*> (m_peer);
+ return dynamic_cast<wxSearchWidgetImpl*> (GetPeer());
}
wxSearchCtrl::~wxSearchCtrl()
const wxValidator& validator,
const wxString& name)
{
- m_macIsUserPane = false ;
+ DontCreatePeer();
m_editable = true ;
if ( ! (style & wxNO_BORDER) )
}
- m_peer = wxWidgetImpl::CreateSearchControl( this, GetParent(), GetId(), value, pos, size, style, GetExtraStyle() );
+ SetPeer(wxWidgetImpl::CreateSearchControl( this, GetParent(), GetId(), value, pos, size, style, GetExtraStyle() ));
MacPostControlCreate(pos, size) ;