HelpFrames
A helpFrame is a way of associating texts with sets of MapClient objects
and distributing them over several pages. All pages are preloaded and
can be shown in any order. HelpFrames are primarily meant to prevent
screen clutter and designing clearly structured applications.
A helpFrame shows up as a text window with a title and three buttons.
It can be moved
and minimized
(by clicking the border),
but not resized.
The small buttons navigate through the helpFrame's pages, in order
or directly.
Any HTML element can be put in a helpFrame, like layout, images and
hyperlinks,
and if the text is too long, scrollbars will appear.
In
a simple helpframe is constructed.
This is done in two steps. For each
page a named HTML element is created,
and then the helpframe itself is created and the named elements are added to it:
<span id="Page 1">Text for page 1</span>
<span id="Page 2">Text for page 2</span>
<script>
h = new helpFrame (top,left,width,height)
h.addPage("Page 1");h.addPage("Page 2")
Any MapClient object or HTML element can be added to a page. It will
only be displayed when that page is selected. In
a different window was added to each page
with
h.addPage("Page 1",w1);h.addPage("Page 2",w2)
A somewhat more complex application is in
,.
which add zooming to the windows.
The zoom functions are in
(almost unchanged taken from zoom4.html).
Every window can be zoomed and resized independently.