Blame | Letzte Änderung | Log anzeigen | RSS feed
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1"><LINK REL="Start" HREF="index.html"><LINK REL="Contents" HREF="toc.html"><LINK REL="Prev" HREF="10125AddingiconstoGanttgraphs.html"><LINK REL="Next" HREF="1013SimplifyingthedrawingofGanttgraphs.html"><STYLE TYPE="text/css"><!--BODY { font-family: serif }H1 { font-family: sans-serif }H2 { font-family: sans-serif }H3 { font-family: sans-serif }H4 { font-family: sans-serif }H5 { font-family: sans-serif }H6 { font-family: sans-serif }SUB { font-size: smaller }SUP { font-size: smaller }PRE { font-family: monospace }A { text-decoration: none }--></STYLE></HEAD><BODY><A HREF="toc.html">Contents</A><A HREF="10125AddingiconstoGanttgraphs.html">Previous</A><A HREF="1013SimplifyingthedrawingofGanttgraphs.html">Next</A><HR NOSHADE><H3><A NAME="10_12_6">10.12.6 Adjusting the margins with auto-sizing</A></H3>As of version 1.17 it is possible to use Graph::SetMargin() to specifythe margin for a Gantt graph even when the vertical height isdetermined automatically. For example to generate a graph with no left,right or bottom margin the following lines would be needed<DIV class="phpscript"><CODE><FONT color="#000000"> <FONT color="#0000BB"> $graph </FONT><FONT color="#007700">= new </FONT><FONT color="#0000BB">GanttGraph</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">500</FONT><FONT color="#007700">);<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">SetMargin</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">0</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">0</FONT><FONTcolor="#007700">,</FONT><FONT color="#0000BB">30</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">0</FONT><FONT color="#007700">);</FONT><FONTcolor="#0000BB"></FONT></FONT></CODE></DIV><P></P><HR NOSHADE><A HREF="toc.html">Contents</A><A HREF="10125AddingiconstoGanttgraphs.html">Previous</A><A HREF="1013SimplifyingthedrawingofGanttgraphs.html">Next</A></BODY></HTML>