gui:windows: Show tooltips for as long as possible.

It'll show for 32.767s. Windows unfortunately doesn't have an infinite
value, and also uses a signed 16-bit integer for the delay.
This commit is contained in:
Jonathan Li 2015-09-01 17:29:39 +01:00
parent 4a743ac2fb
commit cc1d50a06c
1 changed files with 6 additions and 0 deletions

View File

@ -595,6 +595,12 @@ void pxSetToolTip( wxWindow* wind, const wxString& src )
{
if( wind == NULL ) return; // Silently ignore nulls
wind->SetToolTip( pxFormatToolTipText(wind, src) );
// Make tooltips show for as long as possible on Windows. Linux (GTK) can
// show tooltips indefinitely.
#ifdef __WXMSW__
wind->GetToolTip()->SetAutoPop(32767);
#endif
}
void pxSetToolTip( wxWindow& wind, const wxString& src )