Hello everybody:
I am trying to use JScript to respond the event of ActiveX. For example: If i click the ActiveX--Button by right clicking the mouse, I hope to get data of the point that i clicked.How to composed such function using JScript?
Thanks
How to use JScript control ActiveX event?
-
- Newbie
- Posts: 2
- Joined: Fri Nov 15, 2002 12:00 am
- Contact:
Hi,
you can use similar code the the following example (which uses the OnClickSeries event) :
you can use similar code the the following example (which uses the OnClickSeries event) :
Code: Select all
<HEAD>
<TITLE>Set Tee Chart type - JScripted version</TITLE></HEAD>
<BODY onload="SetLoad()">
SCRIPT LANGUAGE=JAVASCRIPT
function SetLoad(){
TeeCommander1.ChartLink = TChart1.ChartLink;
TChart1.Aspect.View3D = false;
TChart1.AddSeries(1);
TChart1.Series(0).FillSampleValues(7);
TChart1.Axis.Bottom.Labels.Style = 3;
}
/SCRIPT
SCRIPT LANGUAGE="JScript" FOR="TChart1" EVENT="OnClickSeries(SeriesIndex,
ValueIndex, Button, Shift, X, Y)">
TChart1.Header.Text.Clear();
TChart1.Header.Text.Add(ValueIndex);
/SCRIPT
<object ID="TeeCommander1" WIDTH="600" HEIGHT="33" align="center"
CLASSID="clsid:B6C10532-FB89-11D4-93C9-006008A7EED4"></object>
<object ID="TChart1" WIDTH="600" HEIGHT="500" align="center"
CLASSID="clsid:B6C10489-FB89-11D4-93C9-006008A7EED4">
</object>
Pep Jorge
http://support.steema.com
http://support.steema.com