1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     Context-sensitive help classes 
   4 // Author:      Julian Smart 
   8 // Copyright:   (c) Julian Smart 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  16 #pragma interface "cshelp.h" 
  23 #include "wx/bmpbuttn.h" 
  27  * Invokes context-sensitive help. When the user 
  28  * clicks on a window, a wxEVT_HELP event will be sent to that 
  29  * window for the application to display help for. 
  32 class WXDLLEXPORT wxContextHelp
: public wxObject
 
  34     DECLARE_DYNAMIC_CLASS(wxContextHelp
) 
  36     wxContextHelp(wxWindow
* win 
= NULL
, bool beginHelp 
= TRUE
); 
  39     bool BeginContextHelp(wxWindow
* win
); 
  40     bool EndContextHelp(); 
  43     bool DispatchEvent(wxWindow
* win
, const wxPoint
& pt
); 
  45     void SetStatus(bool status
) { m_status 
= status
; } 
  50     bool    m_status
; // TRUE if the user left-clicked 
  55  * You can add this to your dialogs (especially on non-Windows platforms) 
  56  * to put the application into context help mode. 
  59 class WXDLLEXPORT wxContextHelpButton
: public wxBitmapButton
 
  62     wxContextHelpButton(wxWindow
* parent
, wxWindowID id 
= wxID_CONTEXT_HELP
, 
  63         const wxPoint
& pos 
= wxDefaultPosition
, const wxSize
& size 
= wxSize(20, -1), 
  64         long style 
= wxBU_AUTODRAW
); 
  66     void OnContextHelp(wxCommandEvent
& event
); 
  68     DECLARE_CLASS(wxContextHelpButton
)