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="10125AddingiconstoGanttgraphs.html">
8
<LINK REL="Next" HREF="1013SimplifyingthedrawingofGanttgraphs.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="10125AddingiconstoGanttgraphs.html">Previous</A>
26
<A HREF="1013SimplifyingthedrawingofGanttgraphs.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="10_12_6">10.12.6 Adjusting the margins with auto-sizing</A></H3>
29
 As of version 1.17 it is possible to use Graph::SetMargin() to specify
30
 the margin for a Gantt graph even when the vertical height is
31
 determined automatically. For example to generate a graph with no left,
32
 right or bottom margin the following lines would be needed<DIV class="phpscript">
33
<CODE><FONT color="#000000"> <FONT color="#0000BB">&nbsp;$graph&nbsp;</FONT><FONT color="#007700">
34
=&nbsp;new&nbsp;</FONT><FONT color="#0000BB">GanttGraph</FONT><FONT color="#007700">
35
(</FONT><FONT color="#0000BB">500</FONT><FONT color="#007700">);
36
<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-&gt;</FONT><FONT
37
color="#0000BB">SetMargin</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">
38
0</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">0</FONT><FONT
39
color="#007700">,</FONT><FONT color="#0000BB">30</FONT><FONT color="#007700">
40
,</FONT><FONT color="#0000BB">0</FONT><FONT color="#007700">);</FONT><FONT
41
color="#0000BB"></FONT></FONT></CODE></DIV>
42
<P></P>
43
<HR NOSHADE>
44
<A HREF="toc.html">Contents</A>
45
<A HREF="10125AddingiconstoGanttgraphs.html">Previous</A>
46
<A HREF="1013SimplifyingthedrawingofGanttgraphs.html">Next</A>
47
</BODY>
48
</HTML>