}
m_controlHandle = NULL ;
}
- m_control = NULL;
#if wxMAC_USE_NATIVE_TOOLBAR
if ( m_toolbarItemRef )
Rect toolrect = { 0, 0, toolSize.y, toolSize.x };
ControlRef controlHandle = NULL;
OSStatus err = 0;
- tool->Attach( this );
#if wxMAC_USE_NATIVE_TOOLBAR
wxString label = tool->GetLabel();
wxSize sz = ((wxToolBarTool*)tool)->GetSize();
- tool->Detach();
-
#if wxMAC_USE_NATIVE_TOOLBAR
CFIndex removeIndex = tool->GetIndex();
#endif
}
}
#endif
- switch ( tool->GetStyle() )
- {
- case wxTOOL_STYLE_CONTROL:
- if ( tool->GetControl() )
- tool->GetControl()->Destroy();
- break;
- case wxTOOL_STYLE_BUTTON:
- case wxTOOL_STYLE_SEPARATOR:
- // nothing special
- break;
-
- default:
- break;
- }
tool->ClearControl();
// and finally reposition all the controls after this one