cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Isoview7: how to capture mousedown event over the activex object

PhilCampbell
1-Newbie

Isoview7: how to capture mousedown event over the activex object

I have a need for knowing when a user clicks mousedown over the graphic being displayed.

 

I have used config events to enable mouse events

I understand I need a callback function of MouseDown(Button, Shift, x, y). I am not at all sure how to tell isoview where my callback function can be found.

 

I have not been able to connect all the dots to make it work.

Can anyone send me some code examples of how they did it ?

 

Thankyou.

1 REPLY 1

i'm not a regular visitor so I'm a few days late.

<HTML>
<head>
<script language="JavaScript">
function MyObjectHit (button, objectID)
{
if (button == 1)
{
alert ("left mouse on: " + objectID);
}
if (button == 2)
{
alert ("right mouse on: " + objectID);
}
}
</script>
</head>
<body>
<object id="ivx1" width="100%" height="100%" classid="CLSID:865B2280-2B71-11D1-BC01-006097AC382A">
<param name="src" value="[a valid path]">
</object>
<script language="JavaScript" for="ivx1" event="ObjectHit (button, objectID)">
<!--
MyObjectHit (button, objectID);
//-->
</script>
</body>
</HTML>

hope this helps.

Announcements

Top Tags