Recompute the tooltip width when changing its text in wxMSW.
This avoids unnecessarily wrapping the tooltips if they are set to a longer string than their initial value later. Closes #4685. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -94,6 +94,9 @@ private:
|
||||
// remove this tooltip from the tooltip control
|
||||
void Remove();
|
||||
|
||||
// adjust tooltip max width based on current tooltip text
|
||||
bool AdjustMaxWidth();
|
||||
|
||||
wxString m_text; // tooltip text
|
||||
wxWindow* m_window; // main window we're associated with
|
||||
wxToolTipOtherWindows *m_others; // other windows associated with it or NULL
|
||||
|
Reference in New Issue
Block a user