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="913SimplifyingthedrawingofGanttgraphs.html"><LINK REL="Next" HREF="915Addingconstrainsbetweenyouractivities.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="913SimplifyingthedrawingofGanttgraphs.html">Previous</A><A HREF="915Addingconstrainsbetweenyouractivities.html">Next</A><HR NOSHADE><H2><A NAME="9_14">9.14 Adding CSIM (Client side Image Maps) to Ganttcharts</A></H2><P> Gantt charts can have independent (different targets) hot spots inboth the activities and in the associated labels for each activity.</P><P> You specify the target and the associated "Alt" text for an activitybar by calling the <A href="../ref/GanttPlotObject.html#_GANTTPLOTOBJECT_SETCSIMTARGET">GanttBar::SetCSIMTarget()</A> and <A href="../ref/GanttPlotObject.html#_GANTTPLOTOBJECT_SETCSIMALT">GanttBar::SetCSIMAlt()</A></P><P> In a similar way you set the target and Alt texts for the activitytitle as the following code extract shows.<DIV class="phpscript"><CODE><FONTcolor="#000000"> <FONT color="#0000BB"> $bar</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">SetCSIMTarget</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">"http://localhost/abc/"</FONT><FONT color="#007700">);<BR></FONT><FONT color="#0000BB">$bar</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">SetCSIMAlt</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">"Alt Text for the bar"</FONT><FONT color="#007700">);<BR></FONT><FONT color="#0000BB">$bar</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">title</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">SetCSIMTarget</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">"http://localhost/abc"</FONT><FONT color="#007700">);<BR></FONT><FONT color="#0000BB">$bar</FONT><FONT color="#007700">-></FONT><FONTcolor="#0000BB">title</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">SetCSIMAlt</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">"Alt Text for the title"</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB"></FONT></FONT></CODE></DIV></P><P> The above code assumes that your activity is available in thevariable 'bar'. In the example directory there is a complete example ofhow to use CSIM together with Gantt charts in the "ganttcsimex1.php"file. (Please note that this example makes use of the simplified Ganttchart specification using the CreateSimple() method.</P><HR NOSHADE><A HREF="toc.html">Contents</A><A HREF="913SimplifyingthedrawingofGanttgraphs.html">Previous</A><A HREF="915Addingconstrainsbetweenyouractivities.html">Next</A></BODY></HTML>