bool wxContextHelp::EventLoop()
{
m_inHelp = TRUE;
-
+
while ( m_inHelp )
{
if (wxTheApp->Pending())
wxTheApp->ProcessIdle();
}
}
-
+
return TRUE;
}
{
wxHelpEvent helpEvent(wxEVT_HELP, subjectOfHelp->GetId(), pt) ;
helpEvent.SetEventObject(this);
-
+
eventProcessed = win->GetEventHandler()->ProcessEvent(helpEvent);
-
+
// Go up the window hierarchy until the event is handled (or not).
// I.e. keep submitting ancestor windows until one is recognised
// by the app code that processes the ids and displays help.
const wxPoint& pos,
const wxSize& size,
long style)
+#if defined(__WXPM__)
+ : wxBitmapButton(parent, id, wxBitmap(wxCSQUERY_BITMAP
+ ,wxBITMAP_TYPE_RESOURCE
+ ),
+ pos, size, style)
+#else
: wxBitmapButton(parent, id, wxBITMAP(csquery),
pos, size, style)
+#endif
{
}
((wxItemResource*) childResource)->SetBitmap(bitmap);
}
if (!bitmap.Ok())
+#if defined(__WXPM__)
+ //
+ // OS/2 uses integer id's to access resources, not file name strings
+ //
+ bitmap.LoadFile(wxCROSS_BITMAP, wxBITMAP_TYPE_BMP_RESOURCE);
+#else
bitmap.LoadFile("cross_bmp", wxBITMAP_TYPE_BMP_RESOURCE);
+#endif
control = new wxBitmapButton(parent, id, bitmap, pos, size,
childResource->GetStyle() | wxBU_AUTODRAW, wxDefaultValidator, childResource->GetName());
}
}
default:
{
+#if defined(__WXPM__)
+ return wxNullBitmap;
+#else
return wxBitmap(name, (wxBitmapType)bitmapType);
+#endif
}
}
#ifndef __WXGTK__