Lines Matching defs:control
32 #include "wx/control.h"
198 wxToolBarToolBase *wxToolBarBase::AddControl(wxControl *control)
200 return InsertControl(GetToolsCount(), control);
203 wxToolBarToolBase *wxToolBarBase::InsertControl(size_t pos, wxControl *control)
205 wxCHECK_MSG( control, (wxToolBarToolBase *)NULL,
206 _T("toolbar: can't insert NULL control") );
208 wxCHECK_MSG( control->GetParent() == this, (wxToolBarToolBase *)NULL,
209 _T("control must have toolbar as parent") );
214 wxToolBarToolBase *tool = CreateTool(control);
235 wxControl * const control = tool->GetControl();
237 if ( !control )
239 wxFAIL_MSG( _T("NULL control in toolbar?") );
241 else if ( control->GetId() == id )
244 return control;