Home > Function descriptions > History back  Previous chapter  Next chapter  Print  

EnableEvent

uEye ActiveX Manual Version 4.00

EnableEvent

Syntax

LONG EnableEvent (LONG nWhich, LONG bEnable)

Description

Enables or disables the release of a specified event. Ssee also Description of the event interface.

Hinweis

Some ActiveX containers encountered problems when an event is fired in a thread other than the controls main instance. To avoid this, enable the required events by setting a value of 2 for nEnable.

The property EnableEvents can be used to enable all events at once.

Parameters

nWhich

Specifies the type of event which should be signaled.

IS_FRAME [0]

Enables or disables EventOnFrame

IS_SEQUENCE [1]

Enables or disables EventOnSequnece

IS_TRIGGER [2]

Enables or disables EventOnTrigger

IS_CAPTURE_STATUS [3]

Enables or disables EventOnTransferFailed

IS_DEVICE_RECONNECTED [4]

Enables or disables EventOnDeviceReconnected

IS_DEVICE_REMOVED [4096]

Enables or disables EventOnDeviceRemoved

IS_DEVICE_REMOVAL [4097]

Enables or disables EventOnDeviceRemoval

IS_NEW_DEVICE [4098]

Enables or disables EventOnNewDevice

bEnable

Specifies the type of event which should be signaled.

[0]

Disable the specified event

[1]

Enable the specified event

[2]

Enable the specified event; use this if you encountered problems with the above activation

Return values

IS_SUCCESS

Function executed successfully

IS_NO_SUCCESS

General error message

IS_INVALID_PARAMETER

An unsupported event was requested

Related properties

EnableEvents


Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!

For technical questions please contact you local distributor or use the support form on our website.


© 2012 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com