MacPreControlCreate( parent , id , label , pos , size ,style, validator , name , &bounds , title ) ;
- m_macControl = ::NewControl( parent->GetMacRootWindow() , &bounds , title , false , 0 , 0 , 1,
+ m_macControl = ::NewControl( parent->MacGetRootWindow() , &bounds , title , false , 0 , 0 , 1,
kControlPushButtonProc , (long) this ) ;
wxASSERT_MSG( m_macControl != NULL , "No valid mac control" ) ;
{
wxWindow *parent = GetParent();
wxButton *btnOldDefault = NULL;
- wxPanel *panel = wxDynamicCast(parent, wxPanel);
- if ( panel )
+ if ( parent )
{
- btnOldDefault = wxDynamicCast(panel->GetDefaultItem(),
+ btnOldDefault = wxDynamicCast(parent->GetDefaultItem(),
wxButton);
- panel->SetDefaultItem(this);
+ parent->SetDefaultItem(this);
}
Boolean inData;