aboutsummaryrefslogtreecommitdiff
path: root/SrcUnix/espws-2.0/HelpView.html
blob: 88294dce14c74eee034d6cbc934b31fde65e923b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<HTML>
<HEAD>
	<TITLE>HelpView - ESP Widget Set for FLTK</TITLE>
	<LINK REL="STYLESHEET" TYPE="text/css" HREF="fltk.css">
</HEAD>

<BODY BGCOLOR="#ccccff">

<!-- NEW PAGE -->
<H2>class HelpView</H2>

<HR>

<H3>Class Hierarchy</H3>

<UL><PRE>
Fl_Group
   |
   +----<B>HelpView</B>
</PRE></UL>

<H3>Include Files</H3>

<UL><PRE>
#include "HelpView.h"
</PRE></UL>

<H3>Description</H3>

<P>The <CODE>HelpView</CODE> widget displays HTML text. Most HTML 2.0
elements are supported, as well as a primitive implementation of tables.
Images are not currently displayed (although the ALT text is, if present.)

<H3>Methods</H3>

<UL>

	<LI><A HREF="#HelpView.HelpView">HelpView</A>
	<LI><A HREF="#HelpView.~HelpView">~HelpView</A>
	<LI><A HREF="#HelpView.directory">directory</A>
	<LI><A HREF="#HelpView.filename">filename</A>
	<LI><A HREF="#HelpView.link">link</A>
	<LI><A HREF="#HelpView.load">load</A>
	<LI><A HREF="#HelpView.size">size</A>
	<LI><A HREF="#HelpView.textcolor">textcolor</A>
	<LI><A HREF="#HelpView.textfont">textfont</A>
	<LI><A HREF="#HelpView.textsize">textsize</A>
	<LI><A HREF="#HelpView.title">title</A>
	<LI><A HREF="#HelpView.topline">topline</A>
	<LI><A HREF="#HelpView.value">value</A>

</UL>

<H4><A NAME="HelpView.HelpView">HelpView(int xx, int yy, int ww, int hh, const char *l = 0)</A></H4>

<P>The constructor creates the <CODE>HelpView</CODE> widget at the specified
position and size.

<H4><A NAME="HelpView.~HelpView">~HelpView()</A></H4>

<P>The destructor destroys the widget and frees all memory that has been
allocated for the current file.

<H4><A NAME="HelpView.directory">const char *directory() const</A></H4>

<P>This method returns the current directory (base) path for the file
in the buffer.

<H4><A NAME="HelpView.filename">const char *filename() const</A></H4>

<P>This method returns the current filename for the text in the buffer.

<H4><A NAME="HelpView.link">void link(HelpFunc *fn)</A></H4>

<P>This method assigns a callback function to use when a link is
followed or a file is loaded (via <CODE>HelpView::load()</CODE>) that
requires a different file or path. The callback function receives the
full pathname for the file in question and must return a pathname that
can be opened as a local file. This is used by the
<A HREF="HelpApp.html"><CODE>HelpApp</CODE></A> widget to support WWW
addresses.

<H4><A NAME="HelpView.load">int load(const char *f)</A></H4>

<P>This method loads the specified file or URL.

<H4><A NAME="HelpView.size">int size() const</A></H4>

<P>This method returns the length of the buffer text in pixels.

<H4><A NAME="HelpView.textcolor">void textcolor(Fl_Color c)<BR>
Fl_Color textcolor() const</A></H4>

<P>The first form sets the default text color. The second returns
the current default text color.

<H4><A NAME="HelpView.textfont">void textfont(uchar f)<BR>
uchar textfont() const</A></H4>

<P>The first form sets the default text font. The second returns
the current default text font.

<H4><A NAME="HelpView.textsize">void textsize(uchar s)<BR>
uchar textsize() const</A></H4>

<P>The first form sets the default text size. The second returns
the current default text size.

<H4><A NAME="HelpView.title">const char *title()</A></H4>

<P>This method returns the current document title, or NULL if there
is no title.

<H4><A NAME="HelpView.topline">void topline(const char *n)<BR>
void topline(int)<BR>
int topline() const</A></H4>

<P>The first two forms scroll the text to the indicated position, either
with a named destination or by pixel line.

<P>The second form returns the current top line in pixels.

<H4><A NAME="HelpView.value">void value(const char *v)<BR>
const char *value() const</A></H4>

<P>The first form sets the current buffer to the string provided and
reformats the text. The second form returns the current buffer contents.

</BODY>
</HTML>