1. added wxGTK::wxToolBar::SetToolShortHelp() and test for it in sample

2. fix a crash if SetSelection is called too early in wxTextCtrl
3. patch for mouse position in wxTreeCtrl events


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-11-24 17:07:12 +00:00
parent 38cfbffa15
commit a1f79c1e00
10 changed files with 70 additions and 12 deletions

View File

@@ -506,6 +506,18 @@ void wxToolBar::SetToolSeparation( int separation )
m_toolSeparation = separation;
}
void wxToolBar::SetToolShortHelp( int id, const wxString& helpString )
{
wxToolBarTool *tool = (wxToolBarTool *)FindById(id);
if ( tool )
{
(void)tool->SetShortHelp(helpString);
gtk_tooltips_set_tip(m_toolbar->tooltips, tool->m_item,
helpString.mbc_str(), "");
}
}
// ----------------------------------------------------------------------------
// wxToolBar idle handling
// ----------------------------------------------------------------------------
@@ -555,4 +567,4 @@ void wxToolBar::OnInternalIdle()
UpdateWindowUI();
}
#endif
#endif // wxUSE_TOOLBAR_NATIVE