# 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."
# 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 */
+
#endif /* wxUSE_GUI */
// 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
//
-// Default is 0
+// Default is 1
//
-// 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
#include "wx/popupwin.h"
#if wxUSE_POPUPWIN
+
// ----------------------------------------------------------------------------
// wxTipWindow
// ----------------------------------------------------------------------------
};
#endif // wxUSE_POPUPWIN
+
#endif // _WX_TIPWIN_H_
+
bool wxSimpleHelpProvider::ShowHelp(wxWindowBase *window)
{
+#if wxUSE_TIPWINDOW
static wxTipWindow* s_tipWindow = NULL;
if (s_tipWindow)
return TRUE;
}
+#endif // wxUSE_TIPWINDOW
return FALSE;
}
#endif // WX_PRECOMP
#include "wx/tipwin.h"
+
+#if wxUSE_TIPWINDOW
+
#include "wx/timer.h"
#include "wx/settings.h"
Destroy();
}
+#endif // wxUSE_TIPWINDOW
bool wxHtmlHelpController::DisplayTextPopup(const wxString& text, const wxPoint& WXUNUSED(pos))
{
-#if wxUSE_HELP
+#if wxUSE_TIPWINDOW
static wxTipWindow* s_tipWindow = NULL;
if (s_tipWindow)
return TRUE;
}
-#endif
+#endif // wxUSE_TIPWINDOW
+
return FALSE;
}