Removed some debug code from window headers; added some debug
code to try to figure out capture problems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1837,6 +1837,7 @@ int wxMenuBar::GetMenuFromPoint(const wxPoint& pos) const
|
||||
void wxMenuBar::SelectMenu(size_t pos)
|
||||
{
|
||||
SetFocus();
|
||||
wxLogDebug("Capturing mouse from wxMenuBar::SelectMenu");
|
||||
CaptureMouse();
|
||||
|
||||
DoSelectMenu(pos);
|
||||
@@ -1925,6 +1926,7 @@ void wxMenuBar::OnLeftDown(wxMouseEvent& event)
|
||||
}
|
||||
else // on item
|
||||
{
|
||||
wxLogDebug("Capturing mouse from wxMenuBar::OnLeftDown");
|
||||
CaptureMouse();
|
||||
|
||||
// show it as selected
|
||||
@@ -2286,7 +2288,10 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar)
|
||||
void wxMenuBar::OnDismiss()
|
||||
{
|
||||
if ( GetCapture() )
|
||||
{
|
||||
wxLogDebug("Releasing mouse from wxMenuBar::OnDismiss");
|
||||
GetCapture()->ReleaseMouse();
|
||||
}
|
||||
|
||||
if ( m_current != -1 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user