1
\begin{page}{HTXAdvPage1}{Input areas}
2
\centerline{\fbox{{\tt \thispage}}}\newline
5
You have probably seen input areas in other \HyperName{}
6
pages. They provide {\it dynamic link} capabilities.
7
Instead of having a choice between certain actions,
8
they allow you to specify an action on--the--fly.
9
To use them, you need the following commands:
12
{\tt \\inputstring\{{\it label}\}\{{\it length}\}\{{\it default value}\}}
14
{\tt \\stringvalue\{{\it label}\}}
17
The first command puts up an input area of the {\it length}
18
specified. The {\it default value} is placed in it.
19
The first argument, {\it label} gives a name to the
20
contents of the input area.
21
You can refer to those contents by using
22
the second command. Never place a {\tt \\stringvalue} command
23
in an "exposed" part of the page. It is only meant
24
to be used as an argument to an {\it action}.
25
Here are some examples.
32
\begin{paste}{HTXAdvPage1xPaste1}{HTXAdvPage1xPatch1}
33
\pastebutton{HTXAdvPage1xPaste1}{Interpret}
35
{\tt Page name \\tab\{16\} }
36
{\tt \\inputstring\{pagetogo\}\{30\}\{RootPage\}}\newline
37
{\tt \\newline}\newline
38
{\tt \\downlink\{GO!\}\{\\stringvalue\{pagetogo\}\}}\newline
43
\begin{paste}{HTXAdvPage1xPaste2}{HTXAdvPage1xPatch2}
44
\pastebutton{HTXAdvPage1xPaste2}{Interpret}
46
{\tt File to edit \\tab\{16\}}\newline
47
{\tt \\inputstring\{filetoedit\}\{30\}\{/etc/passwd\}}\newline
48
{\tt \\newline}\newline
49
{\tt \\unixcommand\{Ready!\}\{xterm -e vi \\stringvalue\{filetoedit\}\}}
56
\menulink{Next Page --- Radio boxes}{HTXAdvPage2}
63
\begin{patch}{HTXAdvPage1xPatch1}
64
\begin{paste}{HTXAdvPage1xPaste1A}{HTXAdvPage1xPatch1A}
65
\pastebutton{HTXAdvPage1xPaste1A}{Source}
68
\inputstring{pagetogo}{30}{RootPage}
70
\downlink{GO!}{\stringvalue{pagetogo}}
73
\begin{patch}{HTXAdvPage1xPatch1A}
74
\begin{paste}{HTXAdvPage1xPaste1B}{HTXAdvPage1xPatch1}
75
\pastebutton{HTXAdvPage1xPaste1B}{Interpret}
77
{\tt Page name \\tab\{16\} }
78
{\tt \\inputstring\{pagetogo\}\{30\}\{RootPage\}}\newline
79
{\tt \\newline}\newline
80
{\tt \\downlink\{GO!\}\{\\stringvalue\{pagetogo\}\}}\newline
85
\begin{patch}{HTXAdvPage1xPatch2}
86
\begin{paste}{HTXAdvPage1xPaste2A}{HTXAdvPage1xPatch2A}
87
\pastebutton{HTXAdvPage1xPaste2A}{Source}
90
\inputstring{filetoedit}{30}{/etc/passwd}
92
\unixcommand{Ready!}{xterm -e vi \stringvalue{filetoedit}}
95
\begin{patch}{HTXAdvPage1xPatch2A}
96
\begin{paste}{HTXAdvPage1xPaste2B}{HTXAdvPage1xPatch2}
97
\pastebutton{HTXAdvPage1xPaste2B}{Interpret}
99
{\tt File to edit \\tab\{16\}}\newline
100
{\tt \\inputstring\{filetoedit\}\{30\}\{/etc/passwd\}}\newline
101
{\tt \\newline}\newline
102
{\tt \\unixcommand\{Ready!\}\{xterm -e vi \\stringvalue\{filetoedit\}\}}