// Not currently needed, but on some systems capture may not work as
// expected so we'll leave it here for now.
// Not currently needed, but on some systems capture may not work as
// expected so we'll leave it here for now.
static void wxPushOrPopEventHandlers(wxContextHelp* help, wxWindow* win, bool push)
{
if (push)
win->PushEventHandler(new wxContextHelpEvtHandler(help));
else
static void wxPushOrPopEventHandlers(wxContextHelp* help, wxWindow* win, bool push)
{
if (push)
win->PushEventHandler(new wxContextHelpEvtHandler(help));
else
- win->PopEventHandler(TRUE);
- //wxPushOrPopEventHandlers(this, win, FALSE);
+#ifdef __WXMOTIF__
+ wxPushOrPopEventHandlers(this, win, false);
+#else
+ win->PopEventHandler(true);
+#endif
}
bool wxContextHelpEvtHandler::ProcessEvent(wxEvent& event)
{
if (event.GetEventType() == wxEVT_LEFT_DOWN)
{
}
bool wxContextHelpEvtHandler::ProcessEvent(wxEvent& event)
{
if (event.GetEventType() == wxEVT_LEFT_DOWN)
{
}
// Dispatch the help event to the relevant window
bool wxContextHelp::DispatchEvent(wxWindow* win, const wxPoint& pt)
{
wxWindow* subjectOfHelp = win;
}
// Dispatch the help event to the relevant window
bool wxContextHelp::DispatchEvent(wxWindow* win, const wxPoint& pt)
{
wxWindow* subjectOfHelp = win;
while (subjectOfHelp && !eventProcessed)
{
wxHelpEvent helpEvent(wxEVT_HELP, subjectOfHelp->GetId(), pt) ;
while (subjectOfHelp && !eventProcessed)
{
wxHelpEvent helpEvent(wxEVT_HELP, subjectOfHelp->GetId(), pt) ;
- : wxBitmapButton(parent, id, wxBITMAP(csquery),
+ : wxBitmapButton(parent, id, wxBitmap(csquery_xpm),
- m_hashWindows.Delete((long)window);
- m_hashWindows.Put((long)window, text);
+ m_hashWindows.erase((long)window);
+ m_hashWindows[(long)window] = text;
{
s_tipWindow = new wxTipWindow((wxWindow *)window, text, 100, & s_tipWindow);
{
s_tipWindow = new wxTipWindow((wxWindow *)window, text, 100, & s_tipWindow);
// If the help controller is capable of popping up the text...
else if (m_helpController->DisplayTextPopup(text, wxGetMousePosition()))
{
// If the help controller is capable of popping up the text...
else if (m_helpController->DisplayTextPopup(text, wxGetMousePosition()))
{