Skip to main content

addObjectInputEcho

Specifies the location of the input echo and the character used for it. The echo shows one character on the pad for each character entered into an input object.

wizCtl.addObjectInputEcho(id, x, y, data, options)
ParameterDescription
id

String that identifies the object. Can be null or an empty string.
Cannot be any of the values reserved for text or button objects: who, why, ok, clear, cancel, delete.

x, y

Position of the top-left corner of the object on the pad display.
The value is either an absolute position in pixels or one of the following strings:

  • x: "left", "right", "centre"
  • y: "top", "middle", "bottom"
dataCharacter displayed for each button press, for example "*".
optionsA combination of sigSDK.InputEchoOptions values that sets the spacing and underlining. (Optional)
Return values
The added object. Throws an exception if an error occurs.

The following example echoes each character as an underlined asterisk with single spacing:

const options = sigSDK.InputEchoOptions.EchoSingleSpacing.value | sigSDK.InputEchoOptions.EchoUnderline.value;
wizCtl.addObjectInputEcho("", 200, 40, "*", options);