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:
@@ -1148,6 +1148,13 @@ void wxToolBar::OnSysColourChanged(wxSysColourChangedEvent& event)
|
|||||||
|
|
||||||
void wxToolBar::OnMouseEvent(wxMouseEvent& event)
|
void wxToolBar::OnMouseEvent(wxMouseEvent& event)
|
||||||
{
|
{
|
||||||
|
if (event.Leaving() && m_pInTool)
|
||||||
|
{
|
||||||
|
OnMouseEnter( -1 );
|
||||||
|
event.Skip();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (event.RightDown())
|
if (event.RightDown())
|
||||||
{
|
{
|
||||||
// For now, we don't have an id. Later we could
|
// For now, we don't have an id. Later we could
|
||||||
|
Reference in New Issue
Block a user