A hypertext may be used to display a text file with embedded script code.
interface hypertext : widget {
hypertext();
hypertext(char* p, char * options = "");
hypertext(widget* w, char* p, char * options = "");
void file(char* r); // to read in a file
};
An example of a help file is given below:
If you do not wish to read the following text,
click on the %%
button \$this.goto -text button \
-command "global EOT; \$this gotoline $EOT"
\$this append \$this.goto
%% to jump to the end.
Help text
%%
global EOT
set EOT [expr \$thisline-1 ]
%%
Press %%
button \$this.quit -command { destroy . } -text quit
\$this append quit
%% to remove the window.
See the example in The Hush Cookbook (if available).
#include <extern/ht.h> void init_ht( kit* );
widget -- file
KEYWORDS
widget(4)
SEE ALSO
hypertext(l), extern(4)
[.]
Papers
Tutorials
Examples
Manuals
Interfaces
Sources
Packages
Resources
?
Hush Online Technology
hush@cs.vu.nl
09/24/99