+void wxToolBar::OnIdle( wxIdleEvent &WXUNUSED(ievent) )
+{
+ wxEvtHandler* evtHandler = GetEventHandler();
+
+ wxNode* node = m_tools.First();
+ while (node)
+ {
+ wxToolBarTool* tool = (wxToolBarTool*) node->Data();
+
+ wxUpdateUIEvent event( tool->m_index );
+ event.SetEventObject(this);
+
+ if (evtHandler->ProcessEvent( event ))
+ {
+ if (event.GetSetEnabled())
+ EnableTool(tool->m_index, event.GetEnabled());
+ if (event.GetSetChecked())
+ ToggleTool(tool->m_index, event.GetChecked());
+/*
+ if (event.GetSetText())
+ // Set tooltip?
+*/
+ }