EZTwainX ::  Technical Reference :: Events
Overview  Download  How To Buy  Demo  Code Examples  Technical Reference

See also: getting started, properties, methods, deployment

This Event Is Fired When
AcquireDone ...any Acquire- method completes successfully. 1.32
ActiveImageChanged ...the current (active) image changes appearance or properties. 1.32?
Click ...the user clicks on the EZTwainX control, either right- or left-click. 1.32
Error(scode, sDescription, uHelpID) ...the control detects an error. These are conventional errors like bad parameter values, file I/O errors, and so on. Problems when negotiating with a TWAIN device are signaled with a different event. 1.32
PageCount(n) ...the value of the PageCount property changes. Replaced by PageCountChanged in 1.43 1.32-1.42
PageCountChanged(n) ...the value of the PageCount property changes. n is (new) number of pages stored by the control. Note: In certain cases this will be fired when the value 'could have' changed, even though the actual value did not change. Note: When loading a multipage file or scanning multiple pages this event is fired after each new page is added. 1.43
PageIndex(i) ...the PageIndex property changes. Replaced by PageIndexChanged in 1.43 1.32-1.42
PageIndexChanged(i) ...the PageIndex property changes. 1.43
RectangleSelected
(x,y,w,h)
...the user finishes selecting a rectangle using the Rectangle Selection tool. The top-left corner of the selection is at (x,y) and it is w pixels wide and h pixels high. Coordinates are in pixels where (0,0) is top-left corner. 1.51
ZoomChanged ...the ZoomFactor property changes. 1.44

Examples

VBScript
<object width=325 height=260 id="eztwainx"
        classid="CLSID:74F4F118-91E6-4AFC-B8D2-04066781F239"
        codebase="http://www.dosadi.com/pub/eztx/eztwainx.cab">
<param name="EnableLogging" value="True">
<param name="LicenseKey" value="0">
  Your browser cannot or will not activate this EZTwainX control.                    
</object>
<script language="vbscript">
Sub eztwainx_Click MsgBox "EZTwainX Clicked", 0, "Demo" End Sub
</script>
 


 Privacy Policy Copyright © 2002-2008 by Dosadi. All rights reserved.