Added wxRichToolTip class.

It can be used to show more customizable tooltips than the native wxToolTip
but at the price of using generic implementation in some cases (actually
almost always now, with the exceptions of text control tooltips under MSW).

Extra features include:
 - The balloon-like tooltip form.
 - Possibility to show an icon.
 - Title display in a different form.

More customization could be added later. It should be also possible to fully
implement this class natively under MSW.

Update the dialogs sample to show the rich tooltips in action.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-10-18 21:57:02 +00:00
parent 46ea442ca2
commit e520c3f75c
44 changed files with 2704 additions and 17 deletions

55
configure vendored
View File

@@ -1854,6 +1854,7 @@ Optional Features:
--enable-radiobox use wxRadioBox class
--enable-radiobtn use wxRadioButton class
--enable-richmsgdlg use wxRichMessageDialog class
--enable-richtooltip use wxRichToolTip class
--enable-rearrangectrl use wxRearrangeList/Ctrl/Dialog
--enable-sash use wxSashWindow class
--enable-scrollbar use wxScrollBar class and scrollable windows
@@ -9900,6 +9901,7 @@ if test "$wxUSE_CONTROLS" = "no"; then
DEFAULT_wxUSE_RADIOBOX=no
DEFAULT_wxUSE_RADIOBTN=no
DEFAULT_wxUSE_RICHMSGDLG=no
DEFAULT_wxUSE_RICHTOOLTIP=no
DEFAULT_wxUSE_REARRANGECTRL=no
DEFAULT_wxUSE_SASH=no
DEFAULT_wxUSE_SCROLLBAR=no
@@ -11906,6 +11908,50 @@ fi
echo "${ECHO_T}$result" >&6; }
enablestring=
defaultval=$wxUSE_ALL_FEATURES
if test -z "$defaultval"; then
if test x"$enablestring" = xdisable; then
defaultval=yes
else
defaultval=no
fi
fi
{ echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtooltip" >&5
echo $ECHO_N "checking for --${enablestring:-enable}-richtooltip... $ECHO_C" >&6; }
# Check whether --enable-richtooltip was given.
if test "${enable_richtooltip+set}" = set; then
enableval=$enable_richtooltip;
if test "$enableval" = yes; then
wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=yes'
else
wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=no'
fi
else
wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=${'DEFAULT_wxUSE_RICHTOOLTIP":-$defaultval}"
fi
eval "$wx_cv_use_richtooltip"
if test x"$enablestring" = xdisable; then
if test $wxUSE_RICHTOOLTIP = no; then
result=yes
else
result=no
fi
else
result=$wxUSE_RICHTOOLTIP
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
enablestring=
defaultval=$wxUSE_ALL_FEATURES
if test -z "$defaultval"; then
@@ -47880,6 +47926,13 @@ _ACEOF
fi
if test "$wxUSE_RICHTOOLTIP" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define wxUSE_RICHTOOLTIP 1
_ACEOF
fi
if test "$wxUSE_SASH" = "yes"; then
cat >>confdefs.h <<\_ACEOF
#define wxUSE_SASH 1
@@ -50447,7 +50500,7 @@ else
fi
INSTALL_DIR="mkdir -p"
INSTALL_DIR="mkdir -p"
LDFLAGS_GUI=