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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user