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="1011Usingmultiplecolumnsastitles.html"><LINK REL="Next" HREF="10112SpecifyingCSIMentriesforcolumntitles.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="1011Usingmultiplecolumnsastitles.html">Previous</A><A HREF="10112SpecifyingCSIMentriesforcolumntitles.html">Next</A><HR NOSHADE><H3><A NAME="10_11_1">10.11.1 Adding a title for the columns</A></H3><P> Precisely as before you can also have a title spanning all thecolumns. This title is specified with the property<I> tableTitle</I> ofthe scale. Specifying a table title will automatically adjust theheight of the column titles to fit the table title. The small codesnippet below shows how to add a title.<DIV class="phpscript"><CODE><FONTcolor="#000000"> <FONT color="#0000BB"> $graph</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">tableTitle</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">Set</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">'Phase 1'</FONT><FONTcolor="#007700">);<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">tableTitle</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">SetFont</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">FF_ARIAL</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">FS_NORMAL</FONT><FONT color="#007700">,</FONT><FONT color="#0000BB">12</FONT><FONTcolor="#007700">);<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">SetTableTitleBackground</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">'darkgreen@0.6'</FONT><FONT color="#007700">);<BR></FONT><FONT color="#0000BB">$graph</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">scale</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">tableTitle</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">Show</FONT><FONT color="#007700">(</FONT><FONT color="#0000BB">true</FONT><FONTcolor="#007700">);</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P><P> A full example of this is shown below<DIV class="example"><BR> <A href="exframes/frame_gantthourminex1.html" target="blank"><IMG border="0"HEIGHT="215" src="img/gantthourminex1.png" WIDTH="1200"></A><BR><B>Figure 161:</B> Adding a column titles stratching all titlecolumns. <A href="exframes/frame_gantthourminex1.html" target="blank">[src]</A> <P></P></DIV></P><P></P><HR NOSHADE><A HREF="toc.html">Contents</A><A HREF="1011Usingmultiplecolumnsastitles.html">Previous</A><A HREF="10112SpecifyingCSIMentriesforcolumntitles.html">Next</A></BODY></HTML>