Please enable JavaScript to view this site.

CWT User Interface Design Handbook

Navigation: TFT Controls

PiezoKeyboardButton (TFT)

Scroll Prev Top Next More

<TFT:PiezoKeyboardButton Id='10' KeyValue='A' Click='OnKeyAddText'/>

Description

The PiezoKeyboardButton control is a button that is not presented on the display.

This button is used for mapping of keys in the piezo keyboard in the keyboard definition and also for creating buttons that are invisible, but still active, in the user interface.

 

Properties

The values for the properties for the PiezoKeyboardButton element depend on the CWT model used. See the applicable section in Key mapping for more details.

Click

Type/Value: A string of any length representing the function to call.

Description:The Click property defines the action to be performed when a customer presses the button. Button click-function lists all the available click actions.

ID

Type/Value: integer

Description:physical key definition. see Key mapping

KeyValue

Type/Value: Commonly only 1 character long representing the key depicted on the keyboard

Description:Used in combination with the Click property to specify the button behaviour when pressed. KeyValue is a generic string that has different uses depending on the click action specified. For information on how KeyValue is used, see the click action details in Button Click functions.

 

Control information

See Key mapping for definition of click actions that can be used with the PiezoKeyboardButton control (same as those used for button control).

 

Example

This example displays the definition of the first 6 keys on the Keyboard

<TFT:PiezoKeyboardButton Id="5" KeyValue="F" MxStyle="{KeyboardInputButton}" ClickSound="\Storage Card\Media\Sound\Keyboard\F.wav"/>
<TFT:PiezoKeyboardButton Id="6" KeyValue="E" MxStyle="{KeyboardInputButton}" ClickSound="\Storage Card\Media\Sound\Keyboard\E.wav"/>
<TFT:PiezoKeyboardButton Id="7" KeyValue="D" MxStyle="{KeyboardInputButton}" ClickSound="\Storage Card\Media\Sound\Keyboard\D.wav"/>
<TFT:PiezoKeyboardButton Id="8" KeyValue="C" MxStyle="{KeyboardInputButton}" ClickSound="\Storage Card\Media\Sound\Keyboard\C.wav"/>
<TFT:PiezoKeyboardButton Id="9" KeyValue="B" MxStyle="{KeyboardInputButton}" ClickSound="\Storage Card\Media\Sound\Keyboard\B.wav"/>
<TFT:PiezoKeyboardButton Id="10" KeyValue="A" MxStyle="{KeyboardInputButton}" ClickSound="\Storage Card\Media\Sound\Keyboard\A.wav"/>