ThbTapiPhoneControl.LampMode
Unit: hbTapi 

The mode the lamp is litting. This parameter uses one and only one of the PHONELAMPMODE_ Constants:

Value (Hex)

Constant

Meaning

00000001

PHONELAMPMODE_DUMMY

This value is used to describe a button/lamp position that has no corresponding lamp.

00000002

PHONELAMPMODE_OFF

The lamp is off.

00000004

PHONELAMPMODE_STEADY

Steady means the lamp is continuously lit.

00000008

PHONELAMPMODE_WINK

Wink means normal rate on and off.

00000010

PHONELAMPMODE_FLASH

Flash means slow on and off.

00000020

PHONELAMPMODE_FLUTTER

Flutter means fast on and off.

00000040

PHONELAMPMODE_BROKENFLUTTER

Broken flutter is the superposition of flash and flutter.

00000080

PHONELAMPMODE_UNKNOWN

The lamp mode is currently unknown.

 

Availability

Design-Time: None / Run-Time: Read, Write

Declaration

property LampMode: DWORD;

Remarks

This property is only valid if the ThbTapiPhone.Active property is set to True. Setting this property causes the TAPI phoneSetLamp to be called. This function works in an asynchronous manner. See "The Synchronous / Asynchronous Model" and the ThbTapiPhone.Options.SyncMode property to read more about the handling of asynchronous functions.

Errors

Setting this property may cause an EhbTapiError exception . Possible errors are:

PHONEERR_INVALPHONEHANDLE, PHONEERR_OPERATIONUNAVAIL, PHONEERR_NOTOWNER, PHONEERR_NOMEM, PHONEERR_INVALBUTTONLAMPID, PHONEERR_RESOURCEUNAVAIL, PHONEERR_INVALPHONESTATE, PHONEERR_OPERATIONFAILED, PHONEERR_INVALLAMPMODE, PHONEERR_UNINITIALIZED.