| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
|
|
5 |
<LINK REL="Start" HREF="index.html">
|
|
|
6 |
<LINK REL="Contents" HREF="toc.html">
|
|
|
7 |
<LINK REL="Prev" HREF="912MoregeneralGanttformatting.html">
|
|
|
8 |
<LINK REL="Next" HREF="9122Modifyingthedividerlines.html">
|
|
|
9 |
<STYLE TYPE="text/css"><!--
|
|
|
10 |
BODY { font-family: serif }
|
|
|
11 |
H1 { font-family: sans-serif }
|
|
|
12 |
H2 { font-family: sans-serif }
|
|
|
13 |
H3 { font-family: sans-serif }
|
|
|
14 |
H4 { font-family: sans-serif }
|
|
|
15 |
H5 { font-family: sans-serif }
|
|
|
16 |
H6 { font-family: sans-serif }
|
|
|
17 |
SUB { font-size: smaller }
|
|
|
18 |
SUP { font-size: smaller }
|
|
|
19 |
PRE { font-family: monospace }
|
|
|
20 |
A { text-decoration: none }
|
|
|
21 |
--></STYLE>
|
|
|
22 |
</HEAD>
|
|
|
23 |
<BODY>
|
|
|
24 |
<A HREF="toc.html">Contents</A>
|
|
|
25 |
<A HREF="912MoregeneralGanttformatting.html">Previous</A>
|
|
|
26 |
<A HREF="9122Modifyingthedividerlines.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H3><A NAME="9_12_1">9.12.1 Adding a table title</A></H3>
|
|
|
29 |
<P> The (default) white area in the top left of the gantt table may have
|
|
|
30 |
a title. This is accessed by the 'tableTitle' property of the gantt
|
|
|
31 |
scale. Using this is straightforward as the following lines show.<DIV class="phpscript">
|
|
|
32 |
<CODE><FONT color="#000000"> <FONT color="#0000BB"> $graph</FONT><FONT color="#007700">
|
|
|
33 |
-></FONT><FONT color="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
34 |
color="#0000BB">tableTitle</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
35 |
Set</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
36 |
"(Rev: 1.22)"</FONT><FONT color="#007700">);
|
|
|
37 |
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
38 |
color="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
39 |
tableTitle</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
40 |
SetFont</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
|
|
|
41 |
FF_FONT1</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">
|
|
|
42 |
FS_BOLD</FONT><FONT color="#007700">);
|
|
|
43 |
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
44 |
color="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
45 |
SetTableTitleBackground</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
46 |
"silver"</FONT><FONT color="#007700">);
|
|
|
47 |
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
48 |
color="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
49 |
tableTitle</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
50 |
Show</FONT><FONT color="#007700">();</FONT><FONT color="#0000BB"></FONT></FONT>
|
|
|
51 |
</CODE></DIV></P>
|
|
|
52 |
<P> The example lines above also changes the default white background to
|
|
|
53 |
silver. Adding these lines to the previous example gives the following
|
|
|
54 |
result:<DIV class="example">
|
|
|
55 |
<BR> <A href="exframes/frame_ganttex16.html" target="blank"><IMG border="0"
|
|
|
56 |
HEIGHT="191" src="img/img/img/img/img/img/ganttex16.png" WIDTH="439"></A>
|
|
|
57 |
<BR><B>Figure 166:</B> Adding a table title. <A href="exframes/frame_ganttex16.html"
|
|
|
58 |
target="blank">[src]</A>
|
|
|
59 |
<P></P>
|
|
|
60 |
</DIV></P>
|
|
|
61 |
<P> From the above example you might notice that the width of the left
|
|
|
62 |
column (which holds all the titles) have automatically adjusted itself
|
|
|
63 |
to make the table title fit.</P>
|
|
|
64 |
<HR NOSHADE>
|
|
|
65 |
<A HREF="toc.html">Contents</A>
|
|
|
66 |
<A HREF="912MoregeneralGanttformatting.html">Previous</A>
|
|
|
67 |
<A HREF="9122Modifyingthedividerlines.html">Next</A>
|
|
|
68 |
</BODY>
|
|
|
69 |
</HTML>
|