Download PDF Version PDF Version

VBScript with Iocomp ActiveX Controls

The examples below illustrate how to integrate our Knob control into a web page, set a control property through the page loaded event, and handle a Knob control event.

1. This example sets the position of the Knob to 75 when the page is loaded.

  Copy code

<html>
<head>
<title>Knob Control</title>
<script ID=clientEventHandlersVBS LANGUAGE=vbscript>
  Sub Window_Onload
    iKnobX1.Position = 75
  End Sub
</script>
</head>
<body>
<OBJECT ID="iKnobX1"
CLASSID="clsid:C5412DC7-2E2F-11D3-85BF-00105AC8B715">
</OBJECT>
</body>
</html>
 
2. This example shows connection and implementation of the OnPositionChangeUser event for the Knob control.

 
Copy code


<html>
<head>
<title>Knob Control</title>
<script ID=clientEventHandlersVBS LANGUAGE=vbscript>
 <!--
  Sub iKnobX1_OnPositionChangeUser()
    Text1.value = iKnobX1.Position
  End Sub   
 -->  
</script>
</head>
<body>
<OBJECT ID="iKnobX1"
CLASSID="clsid:C5412DC7-2E2F-11D3-85BF-00105AC8B715">
</OBJECT>
<input type="text" id="Text1"> 
</body>
</html>

For more details please refer to our Active On-Line Examples.

News

16 May 2017
ActiveX/VCL
V5 SP4 Released!
 
Download...
 
Release Notes...
 
15 November 2016
ActiveX/VCL
V5 SP3 Released!
 
Download...
 
Release Notes...
 
15 November 2016
.Net Winforms
V5 SP1 Released!
 
Download...
 
Release Notes...
 
24 August 2016
ActiveX/VCL
V5 SP2 Released!
 
Download...
 
Release Notes...