ThbTapiPhone.Controls
Unit: hbTapi
 

A list of ThbTapiPhoneControl objects. Each object represents a button-lamp pair of the phone device. TAPI models a phone's buttons and lamps as button-lamp pairs. A button with no lamp next to it or a lamp with no button is specified using a "dummy" indicator for the missing lamp or button. A button with multiple lamps is modeled by using multiple button-lamp pairs.

Example

Label1.Caption := Format('The phone device has %d buttons/lamps', [TapiPhone1.Controls.Count]);
for i:=0 to TapiPhone1.Controls.Count-1 do
  Listbox1.Items.Add('Button %d has the function: %s' [TapiPhone1.Controls[i].ButtonFunction.Text]);

Availability

Design-Time: None / Run-Time: Read

Declaration

property Controls: ThbTapiPhoneControlList;

See Also

ThbTapiPhone.ThbTapiPhoneControl