added (wxMSW-only) wxToolTip::SetMaxWidth() and improve its default behaviour (#2817)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -59,6 +59,21 @@ public:
|
||||
*/
|
||||
static void SetDelay(long msecs);
|
||||
|
||||
/**
|
||||
Set tooltip maximal width in pixels.
|
||||
|
||||
By default, tooltips are wrapped at a suitably chosen width. You can
|
||||
pass -1 as @a width to disable wrapping them completely, 0 to restore
|
||||
the default behaviour or an arbitrary positive value to wrap them at
|
||||
the given width.
|
||||
|
||||
Notice that this function does not change the width of the tooltips
|
||||
created before calling it.
|
||||
|
||||
@note Currently this function is wxMSW-only.
|
||||
*/
|
||||
static void SetMaxWidth(int width) { ms_maxWidth = width; }
|
||||
|
||||
/**
|
||||
Set the delay between subsequent tooltips to appear.
|
||||
|
||||
|
Reference in New Issue
Block a user