The ActveX control derives from Windows control. It impelements some override events. You can find the events list in API help reference: _InwControlEvents
In default, some events are not enabled such as OnLButtonDown, OnLButtonUp, OnKeyDown, OnKeyUp. InwControl4.ForceEvents is a flag that can toogle the events to fire.
Following HTML code demo uses Navisworks Integrated Control 10 SDI . The button 'Force Events' will set ForceEvents as true. After this, the left mouse event and key up event will fire.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=US-ASCII">
</STYLE>
<script language="VBScript">
<!--
' force event to fire
public sub btnForceEvents_Clicked()
Msgbox "btnForceEvents"
NWControl01.ForceEvents = True
end sub
'left mouse up
public sub NWControl01_OnLButtonUp(flags,x_coord,y_coord)
Dim oCount
oCount = NWControl01.state.CurrentSelection.Paths.Count
Msgbox "selection count " & oCount
end sub
' key up
public sub NWControl01_OnKeyUp(key_code,key_data,bHandled)
Msgbox "key Up " & key_code
end sub
-->
</script>
</HEAD>
<body>
<p align=center>
<br>
<br>
<table border=0>
<tr style='height:22.7pt'>
<p align=left>
<!-- Navisworks Integrated Control 10 SDI –>
<OBJECT ID="NWControl01" CLASSID="CLSID:29877E00-BEC4-4A2D-B40E-5AB27F4A916C">
<PARAM NAME="_cx" VALUE="7000">
<PARAM NAME="_cy" VALUE="7000">
<PARAM NAME="SRC" VALUE="c:\temp\gatehouse.nwd">
</OBJECT></p>
</tr>
<tr style='height:22.7pt'>
<td width=132><p align=left>
<input type=button
STYLE="WIDTH:115"
name=btnForceEvents
value="force event"
title="force event"
onclick="btnForceEvents_Clicked()">
</p>
</td>
</tr>
</body>
</table>
</p>
</HTML>
