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="981Minutescale.html">
8
<LINK REL="Next" HREF="983Dayscale.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="981Minutescale.html">Previous</A>
26
<A HREF="983Dayscale.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="9_8_2">9.8.2 Hour scale</A></H3>
29
<P> The hour scale has more builtin formatting possibilities. The
30
 following formatting options are available</P>
31
<OL>
32
<LI> &quot;HOURSTYLE_HM24&quot;, Will display the only the hour in military time
33
 0-24 , for example 13:00</LI>
34
<LI> &quot;HOURSTYLE_H24&quot;, Will display the hour with both hour and minute in
35
 military time 0-24, for example 13</LI>
36
<LI>&quot;HOURSTYLE_HMAMPM&quot;, Will display the hour and minutes with a
37
 suitable am/pm postfix, for example 1:30pm</LI>
38
<LI> &quot;HOURSTYLE_HAMPM&quot;, Will display only the hour with a suitable am/pm
39
 postfix, for example 1pm</LI>
40
<LI>&quot;HOURSTYLE_CUSTOM&quot;, Custom defined format as specified with a call
41
 to HeaderProperty::SetFormatString()</LI>
42
</OL>
43
<P> For hours it is possible to specify the interval in either of two
44
 ways. With an integer, e.g. 6, or as time interval, e.g. &quot;1:30&quot; which
45
 makes the interval one and a half hour. The only restriction is that
46
 the interval must be even dividable for 24 hours since one day is the
47
 smallest possible interval to show. This means that it is allowed to
48
 use, for example 2,4,6,&quot;1:30&quot; or &quot;0:45&quot; as intervals but not 7, &quot;2:45&quot;.</P>
49
<P> The code snippet below shows hot to set up a hour scale to with 45
50
 minutes interval and some custom colors<DIV class="phpscript"><CODE><FONT
51
color="#000000"> <FONT color="#0000BB">&nbsp;$graph</FONT><FONT color="#007700">
52
-&gt;</FONT><FONT color="#0000BB">scale</FONT><FONT color="#007700">-&gt;</FONT><FONT
53
color="#0000BB">hour</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
54
SetBackgroundColor</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
55
'lightyellow:1.5'</FONT><FONT color="#007700">);
56
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
57
color="#0000BB">scale</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
58
hour</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">SetFont</FONT><FONT
59
color="#007700">(</FONT><FONT color="#0000BB">FF_FONT1</FONT><FONT color="#007700">
60
);
61
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
62
color="#0000BB">scale</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
63
hour</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">SetStyle</FONT><FONT
64
color="#007700">(</FONT><FONT color="#0000BB">HOURSTYLE_HMAMPM</FONT><FONT
65
color="#007700">);
66
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
67
color="#0000BB">scale</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
68
hour</FONT><FONT color="#007700">-&gt;</FONT><FONT color="#0000BB">
69
SetIntervall</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
70
&quot;0:45&quot;</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT>
71
</FONT></CODE></DIV></P>
72
<P> The example below shows a gantt chart with the day and hour scale
73
 enabled<DIV class="example">
74
<BR> <A href="exframes/frame_gantthourex1.html" target="blank"><IMG border="0"
75
HEIGHT="173"       src="img/img/img/img/img/img/gantthourex1.png" WIDTH="545"></A>
76
<BR><B>Figure 160:</B> Using hour scale in the Gantt chart <A href="exframes/frame_gantthourex1.html"
77
target="blank">[src]</A>&nbsp;
78
<P></P>
79
</DIV></P>
80
<P></P>
81
<HR NOSHADE>
82
<A HREF="toc.html">Contents</A>
83
<A HREF="981Minutescale.html">Previous</A>
84
<A HREF="983Dayscale.html">Next</A>
85
</BODY>
86
</HTML>