From a341a47f1fafc89b4944089c29d607bac33be28f Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Mon, 16 Nov 2009 03:27:05 +0000 Subject: [PATCH] wxWidgets/Win32: Added tooltip duration override of 10 seconds, so the tooltips stay visible long enough to finish reading them. For the curious: tooltip duration defaults to a function of your configured mouse doubleclick rate, which happens to be something a lot of us users probably set to something pretty fast or really fast, to avoid accidental double clicks (mine's like 1 or 2 notches away from the fastest setting). So my tooltips only stayed visible for like 2 seconds. >_< git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2201 96395faa-99c1-11dd-bbfe-3dabce05a288 --- 3rdparty/wxWidgets/src/msw/tooltip.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/3rdparty/wxWidgets/src/msw/tooltip.cpp b/3rdparty/wxWidgets/src/msw/tooltip.cpp index c96bc5f668..5b92082ca6 100644 --- a/3rdparty/wxWidgets/src/msw/tooltip.cpp +++ b/3rdparty/wxWidgets/src/msw/tooltip.cpp @@ -241,6 +241,12 @@ WXHWND wxToolTip::GetToolTipCtrl() // subclass the newly created control gs_wndprocToolTip = wxSetWindowProc(hwnd, wxToolTipWndProc); #endif // wxUSE_TTM_WINDOWFROMPOINT + + // PCSX2: Default tooltip length is way too short for people with sane doubleclick rates. + // Let's override it with something usable, like 8 seconds. :) --air + if( wxApp::GetComCtl32Version() >= 470 ) + SendMessage((HWND)ms_hwndTT, TTM_SETDELAYTIME, TTDT_AUTOPOP, 8000); + } }