Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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="991Addingcaptiontobars.html">
8
<LINK REL="Next" HREF="910Groupingactivities.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="991Addingcaptiontobars.html">Previous</A>
26
<A HREF="910Groupingactivities.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="9_9_2">9.9.2 Adding progress indicators to bars</A></H3>
29
<P> To indicate the progress of a specific activity it is also possible
30
 to add a progress indicator to each bar. This progress indicator
31
 consists of a smaller bar within the bar. By default this progress bar
32
 is black and 70% of the height of the bar. These parameter can (of
33
 course) all be changed.</P>
34
<P> The properties for the progress indicator are accessed through the
35
 'progress' property and it's methods.</P>
36
<P> To set the progress for a specific activity you only specify the
37
 percent as a fraction. As in<DIV class="phpscript"><CODE><FONT color="#000000">
38
 <FONT color="#0000BB">&nbsp;$activity</FONT><FONT color="#007700">-&gt;</FONT><FONT
39
color="#0000BB">progress</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
40
Set</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">0.4</FONT><FONT
41
color="#007700">)</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV>
42
</P>
43
<P> In Figure 162 the previous example is modified to indicate the
44
 progress of each activity by the default progress indicator. A solid
45
 bar. To make it clearer we have also modified the caption to reflect
46
 the displayed progress. (At the same time we also modified the scale
47
 headers just to illustrate some more formatting options).<DIV class="example">
48
<BR> <A href="exframes/frame_ganttex14.html" target="blank"><IMG border="0"
49
HEIGHT="191"       src="img/img/img/img/img/img/ganttex14.png" WIDTH="409"></A>
50
<BR><B>Figure 162:</B> Adding progress indicators. <A href="exframes/frame_ganttex14.html"
51
target="blank">[src]</A>&nbsp;
52
<P></P>
53
</DIV></P>
54
<P> To specify a different format for the progress you use the
55
 SetPattern() method as in<DIV class="phpscript"><CODE><FONT color="#000000">
56
 <FONT color="#0000BB">&nbsp;$activity</FONT><FONT color="#007700">-&gt;</FONT><FONT
57
color="#0000BB">progress</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
58
SetPattern</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
59
BAND_RDIAG</FONT><FONT color="#007700">,</FONT><FONT color="#DD0000">
60
&quot;blue&quot;</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT>
61
</FONT></CODE></DIV></P>
62
<P> In the reference section you can see the exact parameters and all
63
 available methods.<DIV class="example">
64
<BR> <A href="exframes/frame_ganttex15.html" target="blank"><IMG border="0"
65
HEIGHT="191"       src="img/img/img/img/img/img/ganttex15.png" WIDTH="409"></A>
66
<BR><B>Figure 163:</B> Changing the style of the progress indicators. <A href="exframes/frame_ganttex15.html"
67
target="blank">[src]</A>&nbsp;
68
<P></P>
69
</DIV></P>
70
<P></P>
71
<HR NOSHADE>
72
<A HREF="toc.html">Contents</A>
73
<A HREF="991Addingcaptiontobars.html">Previous</A>
74
<A HREF="910Groupingactivities.html">Next</A>
75
</BODY>
76
</HTML>