Add "rect" paramerer to wxRichToolTip::ShowFor().

Allow to show the tooltip at the exact specified position instead of placing
it automatically.

Closes #14862.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-11-28 14:18:17 +00:00
parent 0555b2a0a3
commit d3feb55c49
8 changed files with 29 additions and 18 deletions

View File

@@ -175,15 +175,20 @@ public:
void SetTitleFont(const wxFont& font);
/**
Show the tooltip for the given window.
Show the tooltip for the given window and optionally specify where to
show the tooltip.
The tooltip tip points to the (middle of the) specified window which
must be non-@NULL.
By default the tooltip tip points to the (middle of the) specified
window which must be non-@NULL or, if @a rect is non-@NULL, the middle
of the specified wxRect.
Currently the native MSW implementation is used only if @a win is a
wxTextCtrl. This limitation may be removed in the future.
wxTextCtrl and @a rect is @NULL. This limitation may be removed in the
future.
Parameter @a rect is new since wxWidgets 2.9.5.
*/
void ShowFor(wxWindow* win);
void ShowFor(wxWindow* win, wxRect* rect = NULL);
/**
Destructor.