mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
- Time extended in which the tooltip remains visible. (Windows PTFs)
- Better fix/location (wxWidgets source) for the MenuPopup fix. (Windows PTFs) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7475 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
2
Externals/wxWidgets/include/wx/msw/tooltip.h
vendored
2
Externals/wxWidgets/include/wx/msw/tooltip.h
vendored
@ -37,6 +37,8 @@ public:
|
||||
static void Enable(bool flag);
|
||||
// set the delay after which the tooltip appears
|
||||
static void SetDelay(long milliseconds);
|
||||
// set the delay after which the tooltip disappears
|
||||
static void SetAutoPop(long milliseconds);
|
||||
|
||||
// implementation only from now on
|
||||
// -------------------------------
|
||||
|
10
Externals/wxWidgets/include/wx/ownerdrw.h
vendored
10
Externals/wxWidgets/include/wx/ownerdrw.h
vendored
@ -88,6 +88,16 @@ public:
|
||||
m_bOwnerDrawn = true;
|
||||
}
|
||||
|
||||
// Same as wxOwnerDrawn::SetMarginWidth() but does not affect
|
||||
// ms_nLastMarginWidth. Exists solely to work around bug #4068,
|
||||
// and will not exist in wxWidgets 2.9.0 and later.
|
||||
void SetOwnMarginWidth(int nWidth)
|
||||
{
|
||||
m_nMarginWidth = (size_t) nWidth;
|
||||
if ( ((size_t) nWidth) != ms_nDefaultMarginWidth )
|
||||
m_bOwnerDrawn = true;
|
||||
}
|
||||
|
||||
int GetMarginWidth() const { return (int) m_nMarginWidth; }
|
||||
static int GetDefaultMarginWidth() { return (int) ms_nDefaultMarginWidth; }
|
||||
|
||||
|
2
Externals/wxWidgets/src/msw/checklst.cpp
vendored
2
Externals/wxWidgets/src/msw/checklst.cpp
vendored
@ -160,7 +160,7 @@ wxCheckListBoxItem::wxCheckListBoxItem(wxCheckListBox *pParent, size_t nIndex)
|
||||
|
||||
// fix appearance for check list boxes: they don't look quite the same as
|
||||
// menu icons
|
||||
SetMarginWidth(::GetSystemMetrics(SM_CXMENUCHECK) -
|
||||
SetOwnMarginWidth(::GetSystemMetrics(SM_CXMENUCHECK) -
|
||||
2*wxSystemSettings::GetMetric(wxSYS_EDGE_X) + 1);
|
||||
SetBackgroundColour(pParent->GetBackgroundColour());
|
||||
}
|
||||
|
7
Externals/wxWidgets/src/msw/tooltip.cpp
vendored
7
Externals/wxWidgets/src/msw/tooltip.cpp
vendored
@ -204,6 +204,13 @@ void wxToolTip::SetDelay(long milliseconds)
|
||||
TTDT_INITIAL, milliseconds);
|
||||
}
|
||||
|
||||
void wxToolTip::SetAutoPop(long milliseconds)
|
||||
{
|
||||
SendTooltipMessageToAll(ms_hwndTT, TTM_SETDELAYTIME,
|
||||
TTDT_AUTOPOP, milliseconds);
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// implementation helpers
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user