Various changes to make pop up menus work

under X11.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-03-09 20:22:44 +00:00
parent 96c21216a6
commit ee3510132b
3 changed files with 17 additions and 12 deletions

View File

@@ -34,6 +34,7 @@
#ifndef WX_PRECOMP
#include "wx/combobox.h" // wxComboControl
#include "wx/log.h"
#endif //WX_PRECOMP
#ifdef __WXUNIVERSAL__
@@ -256,13 +257,13 @@ void wxPopupTransientWindow::Popup(wxWindow *winFocus)
// otherwise everything else breaks down
m_focus = FindFocus();
if ( m_focus )
#endif // __WXMSW__
{
delete m_handlerFocus;
m_handlerFocus = new wxPopupFocusHandler(this);
m_focus->PushEventHandler(m_handlerFocus);
}
#endif // __WXMSW__
}
void wxPopupTransientWindow::Dismiss()
@@ -347,7 +348,7 @@ void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event)
{
return;
}
wxPoint pos = event.GetPosition();
// scrollbar on which the click occured