wxTipWindow added and is now used by wxSimpleHelpProvider

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-09-10 16:30:16 +00:00
parent 4204da658a
commit 01fa3fe74d
15 changed files with 278 additions and 17 deletions

View File

@@ -31,10 +31,7 @@
#if wxUSE_HELP
#ifndef WX_PRECOMP
// FIXME: temporary needed for wxSimpleHelpProvider compilation, to be
// removed later
#include "wx/intl.h"
#include "wx/msgdlg.h"
#include "wx/tipwin.h"
#endif
#include "wx/app.h"
@@ -307,8 +304,7 @@ bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window)
wxString text = GetHelp(window);
if ( !text.empty() )
{
wxMessageBox(text, _("Help"), wxICON_INFORMATION | wxOK,
(wxWindow *)window);
new wxTipWindow((wxWindow *)window, text);
return TRUE;
}