X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff5802f3996f32207b3325e96af7decaae18971b..de505a9e23cfaa4ada2bf972290f7d15a9424270:/src/os2/toolbar.cpp diff --git a/src/os2/toolbar.cpp b/src/os2/toolbar.cpp index a64272e0ab..e432c1b1c6 100644 --- a/src/os2/toolbar.cpp +++ b/src/os2/toolbar.cpp @@ -17,6 +17,8 @@ #ifndef WX_PRECOMP #include "wx/settings.h" #include "wx/window.h" + #include "wx/frame.h" + #include "wx/app.h" #include "wx/dcclient.h" #include "wx/dcmemory.h" #endif @@ -976,7 +978,7 @@ void wxToolBar::OnMouseEvent( m_pToolTip = new wxToolTip(pTool->GetShortHelp()); m_vXMouse = (wxCoord)vPoint.x; m_vYMouse = (wxCoord)vPoint.y; - m_vToolTimer.Start(3000L, TRUE); + m_vToolTimer.Start(1000L, TRUE); } if (!pTool->IsToggled()) RaiseTool(pTool); @@ -1439,7 +1441,7 @@ void wxToolBar::OnTimer ( wxTimerEvent& rEvent ) { - if (rEvent.GetId() == (int)m_vToolTimer.GetTimerId()) + if (rEvent.GetId() == m_vToolTimer.GetTimerId()) { wxPoint vPos( m_vXMouse ,m_vYMouse @@ -1447,9 +1449,9 @@ void wxToolBar::OnTimer ( m_pToolTip->DisplayToolTipWindow(vPos); m_vToolTimer.Stop(); - m_vToolExpTimer.Start(3000L, TRUE); + m_vToolExpTimer.Start(4000L, TRUE); } - else if (rEvent.GetId() == (int)m_vToolExpTimer.GetTimerId()) + else if (rEvent.GetId() == m_vToolExpTimer.GetTimerId()) { m_pToolTip->HideToolTipWindow(); GetParent()->Refresh();