git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12786
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
# endif
#endif /* !defined(wxUSE_TEXTFILE) */
# endif
#endif /* !defined(wxUSE_TEXTFILE) */
+#ifndef wxUSE_TIPWINDOW
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxUSE_TIPWINDOW must be defined."
+# else
+# define wxUSE_TIPWINDOW 0
+# endif
+#endif /* !defined(wxUSE_TIPWINDOW) */
+
#ifndef wxUSE_TOOLBAR
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_TOOLBAR must be defined."
#ifndef wxUSE_TOOLBAR
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_TOOLBAR must be defined."
# endif
#endif /* wxUSE_CLIPBOARD */
# endif
#endif /* wxUSE_CLIPBOARD */
+#if wxUSE_TIPWINDOW && !wxUSE_POPUPWIN
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "wxTipWindow requires wxPopupWindow"
+# else
+# undef wxUSE_POPUPWIN
+# define wxUSE_POPUPWIN 1
+# endif
+#endif /* wxUSE_TIPWINDOW */
+
// Recommended setting: 1 (don't change except for very special programs)
#define wxUSE_CONTROLS 1
// Recommended setting: 1 (don't change except for very special programs)
#define wxUSE_CONTROLS 1
-// wxPopupWindow class is not used currently by wxMSW
+// wxPopupWindow class is a top level transient window. It is currently used
+// to implement wxTipWindow
-// Recommended setting: 0
-#define wxUSE_POPUPWIN 0
+// Recommended setting: 1 (may be set to 0 if you don't wxUSE_TIPWINDOW)
+#define wxUSE_POPUPWIN 1
+
+// wxTipWindow allows to implement the custom tooltips, it is used by the
+// context help classes. Requires wxUSE_POPUPWIN.
+//
+// Default is 1
+//
+// Recommended setting: 1 (may be set to 0)
+#define wxUSE_TIPWINDOW 1
// Each of the settings below corresponds to one wxWindows control. They are
// all switched on by default but may be disabled if you are sure that your
// Each of the settings below corresponds to one wxWindows control. They are
// all switched on by default but may be disabled if you are sure that your
#include "wx/popupwin.h"
#if wxUSE_POPUPWIN
#include "wx/popupwin.h"
#if wxUSE_POPUPWIN
// ----------------------------------------------------------------------------
// wxTipWindow
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxTipWindow
// ----------------------------------------------------------------------------
};
#endif // wxUSE_POPUPWIN
};
#endif // wxUSE_POPUPWIN
bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window)
{
bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window)
{
static wxTipWindow* s_tipWindow = NULL;
if (s_tipWindow)
static wxTipWindow* s_tipWindow = NULL;
if (s_tipWindow)
+#endif // wxUSE_TIPWINDOW
#endif // WX_PRECOMP
#include "wx/tipwin.h"
#endif // WX_PRECOMP
#include "wx/tipwin.h"
#include "wx/timer.h"
#include "wx/settings.h"
#include "wx/timer.h"
#include "wx/settings.h"
+#endif // wxUSE_TIPWINDOW
bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint& WXUNUSED(pos))
{
bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint& WXUNUSED(pos))
{
static wxTipWindow* s_tipWindow = NULL;
if (s_tipWindow)
static wxTipWindow* s_tipWindow = NULL;
if (s_tipWindow)
+#endif // wxUSE_TIPWINDOW
+