Some target formats support dynamic documents. For those
targets Scribe propose a Graphical User Interface
(henceforth Gui) toolkit. Currently only the HTML back-end
supports the Scribe Gui facility. The functions composing it are
described in this chapter.
Scribe only supports disconnected interfaces. That
is a Scribe Gui is defined by a form that contains
several widgets. Users fill the widgets and when the selection
is completed, they submit the form. Submitting a form means
that choices proposed by the form are sent to a specific program.
This program is declared in the :url field of the
form function call. All widgets composing
a Gui must be passed to a form. It is meaningless to specify
a widget that is not passed to a form.
The user string describing the form submit button.
:submit-name
The internal string describing the form submit button.
:reset
The user string describing the form reset button.
:reset-name
The internal string describing the form reset button.
:options
A list of couples (name, value) that are passed to the
URL when the form is submitted.
:method
The boolean or a string that can either
be post or get. This flag impacts the way the program
handling the form will be called. For a detailed description see the
HTML form specification.
A boolean that controls if it is possible to edit the
text.
exp
The default characters of the text widget.
The example:
(form :url "http://nowhere.com" :submit #f :reset #f [
An editable text editor: ,(text :name "gee" :rows 5 [This is
a pre-initialized text
that may contain newlines])
,(linebreak)
Another one that cannot be edited:
,(text :name "gee" :rows 5 :read-only #t [This is
another text
that cannot be edited.])])