Applied #10079: wxAuiToolBar: Allow right-click on any kind of button
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@66926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2498,15 +2498,12 @@ void wxAuiToolBar::OnRightUp(wxMouseEvent& evt)
|
|||||||
|
|
||||||
if (m_action_item && hit_item == m_action_item)
|
if (m_action_item && hit_item == m_action_item)
|
||||||
{
|
{
|
||||||
if (hit_item->kind == wxITEM_NORMAL)
|
wxAuiToolBarEvent e(wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK, m_action_item->id);
|
||||||
{
|
e.SetEventObject(this);
|
||||||
wxAuiToolBarEvent e(wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK, m_action_item->id);
|
e.SetToolId(m_action_item->id);
|
||||||
e.SetEventObject(this);
|
e.SetClickPoint(m_action_pos);
|
||||||
e.SetToolId(m_action_item->id);
|
ProcessEvent(e);
|
||||||
e.SetClickPoint(m_action_pos);
|
DoIdleUpdate();
|
||||||
ProcessEvent(e);
|
|
||||||
DoIdleUpdate();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user