Generate EVT_TOOL_ENTER when the user moves the mouse out of the toolbar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon 2002-05-02 20:03:19 +00:00
parent 32e163aec1
commit fe87983b95

View File

@ -1148,6 +1148,13 @@ void wxToolBar::OnSysColourChanged(wxSysColourChangedEvent& event)
void wxToolBar::OnMouseEvent(wxMouseEvent& event)
{
if (event.Leaving() && m_pInTool)
{
OnMouseEnter( -1 );
event.Skip();
return;
}
if (event.RightDown())
{
// For now, we don't have an id. Later we could