~ubuntu-branches/ubuntu/karmic/axiom/karmic

« back to all changes in this revision

Viewing changes to src/hyper/pages/HTXAdvPage1.ht

  • Committer: Bazaar Package Importer
  • Author(s):
  • Date: 2005-02-21 17:08:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050221170837-34vm4j33v4t9hsk4
Tags: 20050201-1
* New upstream release
* Bug fix: "axiom graphics missing?", thanks to Daniel Lakeland (Closes:
  #277692).
* Bug fix: "axiom: Feb 2005 release for sarge would be nice", thanks to
  Balbir Thomas (Closes: #295000).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
\begin{page}{HTXAdvPage1}{Input areas}
 
2
\centerline{\fbox{{\tt \thispage}}}\newline
 
3
\begin{scroll}
 
4
 
 
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:
 
10
\beginImportant
 
11
\newline
 
12
{\tt \\inputstring\{{\it label}\}\{{\it length}\}\{{\it default value}\}}
 
13
\newline
 
14
{\tt \\stringvalue\{{\it label}\}}
 
15
\endImportant
 
16
 
 
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.
 
26
 
 
27
 
 
28
 
 
29
 
 
30
 
 
31
\beginImportant
 
32
\begin{paste}{HTXAdvPage1xPaste1}{HTXAdvPage1xPatch1}
 
33
\pastebutton{HTXAdvPage1xPaste1}{Interpret}
 
34
\newline
 
35
{\tt Page name \\tab\{16\} }
 
36
{\tt \\inputstring\{pagetogo\}\{30\}\{RootPage\}}\newline
 
37
{\tt \\newline}\newline
 
38
{\tt \\downlink\{GO!\}\{\\stringvalue\{pagetogo\}\}}\newline
 
39
\end{paste}
 
40
\endImportant
 
41
 
 
42
\beginImportant
 
43
\begin{paste}{HTXAdvPage1xPaste2}{HTXAdvPage1xPatch2}
 
44
\pastebutton{HTXAdvPage1xPaste2}{Interpret}
 
45
\newline
 
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\}\}}
 
50
\end{paste}
 
51
\endImportant
 
52
 
 
53
 
 
54
\end{scroll}
 
55
\beginmenu
 
56
\menulink{Next Page --- Radio boxes}{HTXAdvPage2}
 
57
\endmenu
 
58
 
 
59
\end{page}
 
60
 
 
61
 
 
62
 
 
63
\begin{patch}{HTXAdvPage1xPatch1}
 
64
\begin{paste}{HTXAdvPage1xPaste1A}{HTXAdvPage1xPatch1A}
 
65
\pastebutton{HTXAdvPage1xPaste1A}{Source}
 
66
\newline
 
67
Page name \tab{16}
 
68
\inputstring{pagetogo}{30}{RootPage}
 
69
\newline
 
70
\downlink{GO!}{\stringvalue{pagetogo}}
 
71
\end{paste}
 
72
\end{patch}
 
73
\begin{patch}{HTXAdvPage1xPatch1A}
 
74
\begin{paste}{HTXAdvPage1xPaste1B}{HTXAdvPage1xPatch1}
 
75
\pastebutton{HTXAdvPage1xPaste1B}{Interpret}
 
76
\newline
 
77
{\tt Page name \\tab\{16\} }
 
78
{\tt \\inputstring\{pagetogo\}\{30\}\{RootPage\}}\newline
 
79
{\tt \\newline}\newline
 
80
{\tt \\downlink\{GO!\}\{\\stringvalue\{pagetogo\}\}}\newline
 
81
\end{paste}
 
82
\end{patch}
 
83
 
 
84
 
 
85
\begin{patch}{HTXAdvPage1xPatch2}
 
86
\begin{paste}{HTXAdvPage1xPaste2A}{HTXAdvPage1xPatch2A}
 
87
\pastebutton{HTXAdvPage1xPaste2A}{Source}
 
88
\newline
 
89
File to edit \tab{16}
 
90
\inputstring{filetoedit}{30}{/etc/passwd}
 
91
\newline
 
92
\unixcommand{Ready!}{xterm  -e vi \stringvalue{filetoedit}}
 
93
\end{paste}
 
94
\end{patch}
 
95
\begin{patch}{HTXAdvPage1xPatch2A}
 
96
\begin{paste}{HTXAdvPage1xPaste2B}{HTXAdvPage1xPatch2}
 
97
\pastebutton{HTXAdvPage1xPaste2B}{Interpret}
 
98
\newline
 
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\}\}}
 
103
\end{paste}
 
104
\end{patch}