![]() ![]() ![]() ![]() wxcontexthelpthis class changes the cursor to a query and puts the application into a 'context-sensitive help mode'. when the user left-clicks on a window within the specified window, a wxevt_help event is sent to that control, and the application may respond to it by popping up some help. for example:
wxcontexthelp contexthelp(mywindow);there are a couple of ways to invoke this behaviour implicitly:
note that on mac os x, the cursor does not change when in context-sensitive help mode. derived from include files <wx/cshelp.h> see also wxhelpevent, wxhelpcontroller, wxcontexthelpbutton members
wxcontexthelp::wxcontexthelp
wxcontexthelp::wxcontexthelpwxcontexthelp(wxwindow* window = null, bool donow = true) constructs a context help object, calling begincontexthelp if donow is true (the default). if window is null, the top window is used.
wxcontexthelp::~wxcontexthelp~wxcontexthelp() destroys the context help object.
wxcontexthelp::begincontexthelpbool begincontexthelp(wxwindow* window = null) puts the application into context-sensitive help mode. window is the window which will be used to catch events; if null, the top window will be used. returns true if the application was successfully put into context-sensitive help mode. this function only returns when the event loop has finished.
wxcontexthelp::endcontexthelpbool endcontexthelp() ends context-sensitive help mode. not normally called by the application.
|