Debian Codegraph @

fltk/test/HelpDialog.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <TITLE>HelpDialog Widget for FLTK</TITLE>
4 <STYLE>H1 { font-family: sans-serif; font-size: 36pt }
5 H2 { font-family: sans-serif }
6 H3 { font-family: monospace }
7 P { margin-left: 2em }
8 UL { margin-left: 2em }
9 CODE { font-weight: bold }</STYLE>
10 </HEAD>
11 <BODY BGCOLOR="#ccccff">
12
13 <H1 ALIGN=CENTER>HelpDialog Widget for FLTK</H1>
14
15 <P ALIGN=CENTER>Version 1.0 - October 12, 1999 -
16 <A HREF="mailto:[email protected]">Michael Sweet</A>
17
18 <H2>Introduction</H2>
19
20 <P>The <CODE>HelpDialog</CODE> widget displays HTML files and allows the user
21 to click on links to do navigation.
22
23 <H2><A HREF="HelpDialog.gif">
24 <IMG SRC="HelpDialog.gif" ALIGN="RIGHT" WIDTH="273" HEIGHT="214"></A>
25 Source Code</H2>
26
27 <P>The source code is provided under the terms of the GNU Library General
28 Public License and is used to provide on-line help for the
29 <A HREF="http://www.easysw.com/printpro">ESP Print Pro</A> software.
30
31 <P>You can download the source for the current version (1.0) in several
32 formats:
33
34 <UL>
35 <LI><A HREF="HelpDialog-1.0.tar.gz">HelpDialog-1.0.tar.gz (34k)</A>
36 <LI><A HREF="HelpDialog-1.0.zip">HelpDialog-1.0.zip (35k)</A>
37 </UL>
38
39 <H2>Overview</H2>
40
41 <P>The <code>HelpDialog</code> widget is based upon the <CODE>HelpView</CODE>
42 widget which supports basic HTML elements including tables. Images and text
43 alignment are not supported at this time, although the hooks are there for
44 the alignment stuff.
45
46 <P>To use the <CODE>HelpDialog</CODE> widget in your program do:
47
48 <UL><PRE>
49 #include "HelpDialog.h"
50
51 ...
52
53 {
54 HelpView help();
55
56 help.load("filename.html");
57 help.show();
58 while (help.visible())
59 Fl::wait();
60 }
61 </PRE></UL>
62
63 <H2>Methods</H2>
64
65 <UL>
66
67 <LI><CODE><A HREF="#HelpDialog">HelpDialog</A></CODE>
68 <LI><CODE><A HREF="#hide">hide</A></CODE>
69 <LI><CODE><A HREF="#load">load</A></CODE>
70 <LI><CODE><A HREF="#show">show</A></CODE>
71 <LI><CODE><A HREF="#topline">topline</A></CODE>
72 <LI><CODE><A HREF="#visible">visible</A></CODE>
73
74 </UL>
75
76 <H3><A NAME="HelpDialog">HelpDialog::HelpDialog()</A></H3>
77
78 <P>The constructor creates the dialog pictured above.
79
80 <H3><A NAME="hide">void HelpDialog::hide()</A></H3>
81
82 <P>Hides the <code>HelpDialog</code> window.
83
84 <H3><A NAME="load">void HelpDialog::load(const char *f)</A></H3>
85
86 <P>Loads the specified HTML file into the <CODE>HelpView</CODE> widget.
87 The filename can also contain a target name ("filename.html#target").
88
89 <H3><A NAME="show">void HelpDialog::show()</A></H3>
90
91 <P>Shows the <code>HelpDialog</code> window.
92
93 <H3><A NAME="topline">void HelpDialog::topline(const char *n)<BR>
94 void HelpDialog::topline(int n)</A></H3>
95
96 <P>Sets the top line in the <CODE>HelpView</CODE> widget to the named or
97 numbered line.
98
99 <H3><A NAME="visible">int HelpDialog::visible()</A></H3>
100
101 <P>Returns 1 if the <code>HelpDialog</code> window is visible.
102
103 </BODY>
104 </HTML>