+#endif
+ wxToolBarToolBase * const tool =
+ m_toolbar->AddTool
+ (
+ GetID(),
+ GetText(wxT("label")),
+ GetBitmap(wxT("bitmap"), wxART_TOOLBAR, m_toolSize),
+ GetBitmap(wxT("bitmap2"), wxART_TOOLBAR, m_toolSize),
+ kind,
+ GetText(wxT("tooltip")),
+ GetText(wxT("longhelp"))
+ );
+
+ if ( GetBool(wxT("disabled")) )
+ m_toolbar->EnableTool(GetID(), false);
+
+ if ( GetBool(wxS("checked")) )
+ {
+ if ( kind == wxITEM_NORMAL )
+ {
+ ReportParamError
+ (
+ "checked",
+ "only <radio> nor <toggle> tools can be checked"
+ );
+ }
+ else
+ {
+ m_toolbar->ToggleTool(GetID(), true);
+ }
+ }
+
+#if wxUSE_MENUS
+ if ( menu )
+ tool->SetDropdownMenu(menu);
+#endif
+