X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..02b51ae521db06ef12a3c2a37a5378a9f715e707:/interface/wx/tooltip.h diff --git a/interface/wx/tooltip.h b/interface/wx/tooltip.h index 4dc2a448fc..cb4abd73ae 100644 --- a/interface/wx/tooltip.h +++ b/interface/wx/tooltip.h @@ -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.