X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..9e9574fe45b176ee74bba8fad7574cf9906145d1:/interface/wx/tooltip.h diff --git a/interface/wx/tooltip.h b/interface/wx/tooltip.h index 4dc2a448fc..61431d73e9 100644 --- a/interface/wx/tooltip.h +++ b/interface/wx/tooltip.h @@ -2,8 +2,7 @@ // Name: tooltip.h // Purpose: interface of wxToolTip // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -48,7 +47,7 @@ public: Set the delay after which the tooltip disappears or how long a tooltip remains visible. - @note May not be supported on all platforms (eg. wxCocoa, GTK, Palmos). + @note May not be supported on all platforms (eg. wxCocoa, GTK). */ static void SetAutoPop(long msecs); @@ -59,10 +58,25 @@ 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); + /** Set the delay between subsequent tooltips to appear. - @note May not be supported on all platforms (eg. wxCocoa, GTK, Palmos). + @note May not be supported on all platforms (eg. wxCocoa, GTK). */ static void SetReshow(long msecs);