summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
96c2121)
under X11.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14520
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#ifndef WX_PRECOMP
#include "wx/combobox.h" // wxComboControl
#ifndef WX_PRECOMP
#include "wx/combobox.h" // wxComboControl
#endif //WX_PRECOMP
#ifdef __WXUNIVERSAL__
#endif //WX_PRECOMP
#ifdef __WXUNIVERSAL__
// otherwise everything else breaks down
m_focus = FindFocus();
if ( m_focus )
// otherwise everything else breaks down
m_focus = FindFocus();
if ( m_focus )
{
delete m_handlerFocus;
m_handlerFocus = new wxPopupFocusHandler(this);
m_focus->PushEventHandler(m_handlerFocus);
}
{
delete m_handlerFocus;
m_handlerFocus = new wxPopupFocusHandler(this);
m_focus->PushEventHandler(m_handlerFocus);
}
}
void wxPopupTransientWindow::Dismiss()
}
void wxPopupTransientWindow::Dismiss()
wxPoint pos = event.GetPosition();
// scrollbar on which the click occured
wxPoint pos = event.GetPosition();
// scrollbar on which the click occured
return wxEvtHandler::ProcessEvent(event);
}
}
return wxEvtHandler::ProcessEvent(event);
}
}
wxCHECK_RET( m_invokingWindow, _T("what kind of menu is this?") );
m_invokingWindow->DismissPopupMenu();
wxCHECK_RET( m_invokingWindow, _T("what kind of menu is this?") );
m_invokingWindow->DismissPopupMenu();
- SetInvokingWindow(NULL);
+
+ // Why reset it here? We need it for sending the event to...
+ // SetInvokingWindow(NULL);
// not applicabled
isChecked = -1;
}
// not applicabled
isChecked = -1;
}
return SendEvent(item->GetId(), isChecked);
}
return SendEvent(item->GetId(), isChecked);
}
#endif // 0
menu->SetInvokingWindow(this);
#endif // 0
menu->SetInvokingWindow(this);
+
+ // wxLogDebug( "Name of invoking window %s", menu->GetInvokingWindow()->GetName().c_str() );
+
menu->Popup(ClientToScreen(wxPoint(x, y)), wxSize(0, 0));
// this is not very useful if the menu was popped up because of the mouse
menu->Popup(ClientToScreen(wxPoint(x, y)), wxSize(0, 0));
// this is not very useful if the menu was popped up because of the mouse
{
wxCHECK_RET( ms_evtLoopPopup, _T("no popup menu shown") );
{
wxCHECK_RET( ms_evtLoopPopup, _T("no popup menu shown") );
- char *crash = NULL;
- (*crash) = 0;
-
ms_evtLoopPopup->Exit();
}
ms_evtLoopPopup->Exit();
}
win = wxGetWindowFromTable(window);
if (!win)
win = wxGetWindowFromTable(window);
if (!win)
#ifdef __WXDEBUG__
wxString windowClass = win->GetClassInfo()->GetClassName();
#ifdef __WXDEBUG__
wxString windowClass = win->GetClassInfo()->GetClassName();
g_nextFocus = win;
win->SetFocus();
g_nextFocus = win;
win->SetFocus();
delete wxLog::SetActiveTarget(new wxLogStderr);
if (!wxAppBase::OnInitGui())
delete wxLog::SetActiveTarget(new wxLogStderr);
if (!wxAppBase::OnInitGui())
GetMainColormap( wxApp::GetDisplay() );
GetMainColormap( wxApp::GetDisplay() );
#endif
Window* children = NULL;
#endif
Window* children = NULL;
- // #define XQueryTree(d,w,r,p,c,nc) GrQueryTree(w,p,c,nc)
+ // #define XQueryTree(d,w,r,p,c,nc) GrQueryTree(w,p,c,nc)
int res = 1;
#if !wxUSE_NANOX
res =
#endif
XQueryTree((Display*) wxGetDisplay(), window, & root, & parent,
int res = 1;
#if !wxUSE_NANOX
res =
#endif
XQueryTree((Display*) wxGetDisplay(), window, & root, & parent,
- & children, & noChildren);
+ & children, & noChildren);
if (children)
XFree(children);
if (res)
if (children)
XFree(children);
if (res)