+ wxString helpstring;
+
+ if ( id != -1 )
+ {
+ wxToolBarToolBase *tool = FindById(id);
+ if ( tool )
+ helpstring = tool->GetLongHelp();
+ }
+
+ // set the status text anyhow, even if the string is empty: this ensures
+ // that it is cleared when the mouse leaves the toolbar or enters a tool
+ // without help
+ frame->SetStatusText(helpstring);