#ifndef WX_PRECOMP
#include "wx/combobox.h" // wxComboControl
+ #include "wx/log.h"
#endif //WX_PRECOMP
#ifdef __WXUNIVERSAL__
// 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()
{
return;
}
-
+
wxPoint pos = event.GetPosition();
// scrollbar on which the click occured
}
else
{
+ // return FALSE;
+
return wxEvtHandler::ProcessEvent(event);
}
}
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;
}
-
+
return SendEvent(item->GetId(), isChecked);
}
#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
{
wxCHECK_RET( ms_evtLoopPopup, _T("no popup menu shown") );
- char *crash = NULL;
- (*crash) = 0;
-
ms_evtLoopPopup->Exit();
}
win = wxGetWindowFromTable(window);
if (!win)
- return FALSE;
+ return FALSE;
#ifdef __WXDEBUG__
wxString windowClass = win->GetClassInfo()->GetClassName();
g_nextFocus = win;
win->SetFocus();
- return TRUE;
+ // return TRUE;
}
}
delete wxLog::SetActiveTarget(new wxLogStderr);
if (!wxAppBase::OnInitGui())
- return FALSE;
+ return FALSE;
GetMainColormap( wxApp::GetDisplay() );
#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,
- & children, & noChildren);
+ & children, & noChildren);
if (children)
XFree(children);
if (res)