/* htmlhelp.h */
#ifndef _INC_HTMLHELP_H
#define _INC_HTMLHELP_H
/*
* used by dialogs to define local help display functions
*/
/* defines help function, _DEF_HTMLHELP("myfun") defines myfun_htmlhelp */
#define _DEF_HTMLHELP(v) deffunnomes(sprintf("%s_htmlhelp(html, title)", v), sprintf("{extern _%s_handle; local shown = 0; defvar('_%s_handle', 0); if (ismenu(_%s_handle)) { if (_%s_handle.title == title) {menushow(_%s_handle, 1); shown = 1;}} if (not(shown)) {_%s_handle = _htmlhelp(which(html), title);}}", v, v, v, v, v, v))
/* clear a defined help function */
#define _UNDEF_HTMLHELP(v) eval(sprintf("clear('%s_htmlhelp')", v))
#endif