| 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="1013SimplifyingthedrawingofGanttgraphs.html">
|
|
|
8 |
<LINK REL="Next" HREF="1015Addingconstrainsbetweenyouractivities.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="1013SimplifyingthedrawingofGanttgraphs.html">Previous</A>
|
|
|
26 |
<A HREF="1015Addingconstrainsbetweenyouractivities.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H2><A NAME="10_14">10.14 Adding CSIM (Client side Image Maps) to Gantt
|
|
|
29 |
charts</A></H2>
|
|
|
30 |
<P> Gantt charts can have independent (different targets) hot spots in
|
|
|
31 |
both the activities and in the associated labels for each activity.</P>
|
|
|
32 |
<P> You specify the target and the associated "Alt" text for an activity
|
|
|
33 |
bar by calling the <A href="../ref/GanttPlotObject.html#_GANTTPLOTOBJECT_SETCSIMTARGET">
|
|
|
34 |
GanttBar::SetCSIMTarget()</A> and <A href="../ref/GanttPlotObject.html#_GANTTPLOTOBJECT_SETCSIMALT">
|
|
|
35 |
GanttBar::SetCSIMAlt()</A></P>
|
|
|
36 |
<P> In a similar way you set the target and Alt texts for the activity
|
|
|
37 |
title as the following code extract shows.<DIV class="phpscript"><CODE><FONT
|
|
|
38 |
color="#000000"> <FONT color="#0000BB"> $bar</FONT><FONT color="#007700">
|
|
|
39 |
-></FONT><FONT color="#0000BB">SetCSIMTarget</FONT><FONT color="#007700">
|
|
|
40 |
(</FONT><FONT color="#DD0000">"http://localhost/abc/"</FONT><FONT color="#007700">
|
|
|
41 |
);
|
|
|
42 |
<BR></FONT><FONT color="#0000BB">$bar</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
43 |
color="#0000BB">SetCSIMAlt</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
44 |
"Alt Text for the bar"</FONT><FONT color="#007700">);
|
|
|
45 |
<BR></FONT><FONT color="#0000BB">$bar</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
46 |
color="#0000BB">title</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
47 |
SetCSIMTarget</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
48 |
"http://localhost/abc"</FONT><FONT color="#007700">);
|
|
|
49 |
<BR></FONT><FONT color="#0000BB">$bar</FONT><FONT color="#007700">-></FONT><FONT
|
|
|
50 |
color="#0000BB">title</FONT><FONT color="#007700">-></FONT><FONT color="#0000BB">
|
|
|
51 |
SetCSIMAlt</FONT><FONT color="#007700">(</FONT><FONT color="#DD0000">
|
|
|
52 |
"Alt Text for the title"</FONT><FONT color="#007700">);</FONT><FONT color="#0000BB">
|
|
|
53 |
</FONT></FONT></CODE></DIV></P>
|
|
|
54 |
<P> The above code assumes that your activity is available in the
|
|
|
55 |
variable 'bar'. In the example directory there is a complete example of
|
|
|
56 |
how to use CSIM together with Gantt charts in the "ganttcsimex1.php"
|
|
|
57 |
file. (Please note that this example makes use of the simplified Gantt
|
|
|
58 |
chart specification using the CreateSimple() method.</P>
|
|
|
59 |
<HR NOSHADE>
|
|
|
60 |
<A HREF="toc.html">Contents</A>
|
|
|
61 |
<A HREF="1013SimplifyingthedrawingofGanttgraphs.html">Previous</A>
|
|
|
62 |
<A HREF="1015Addingconstrainsbetweenyouractivities.html">Next</A>
|
|
|
63 |
</BODY>
|
|
|
64 |
</HTML>
|