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:
Julian Smart
2002-02-12 18:15:20 +00:00
parent 44f8caa786
commit 7edcafa467
11 changed files with 65 additions and 14 deletions

View File

@@ -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 )
{