Try to fix an unwanted left mouse release button event, when closing a dialog on a click or double click,

and therefore when the mouse butoon is released in the parent window
Minor other fixes.
This commit is contained in:
jean-pierre charras
2012-12-06 22:53:00 +01:00
parent 8042d6f892
commit a1fed86b28
18 changed files with 9463 additions and 9725 deletions
+11
View File
@@ -209,6 +209,17 @@ void EDA_DRAW_FRAME::OnMenuOpen( wxMenuEvent& event )
event.Skip();
}
/* function IgnoreLeftButtonReleaseEvent
* after calling this function, the next left mouse button release
* event will be ignored.
* It is is usefull when closing a dialog on a mouse click,
* to ignore the next mouse click by the parent window, although the mouse
* button (cliched on the dialog) is released in the parent frame
*/
void EDA_DRAW_FRAME::IgnoreLeftButtonReleaseEvent()
{
m_canvas->SetIgnoreLeftButtonReleaseEvent( true );
}
void EDA_DRAW_FRAME::OnToggleGridState( wxCommandEvent& aEvent )
{