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
{
}