Please enable JavaScript to view this site.

CWT User Interface Design Handbook

Navigation: Appendices > Key mapping

CWT Compact Touch, S4 Touch, and S5

Scroll Prev Top Next More

The CWT Compact with a touch enabled Colour display only has one green button below the screen to wake up the terminal when it is in sleep mode

In the CWT Compact with a touch enabled Colour display, all buttons required for the user interaction are presented in the display and are thus included in the user interface design.

Even a full alpha-numeric keyboard can, for instance, be presented in the display. The keyboard is created as software keys actuated through the touch screen. This makes it possible to create more flexible layouts of the keys in the software keyboard since each key can be adapted individually.

The keyboard keys are defined as normal buttons in the user interface. The difference is that the buttons in the software keyboard uses the click action OnKeyboardHit. The OnKeyboardHit click action handler inputs the KeyValue specified for the button in the keyboard in a textbox in the currently visible panel if that text box exists in that panel, otherwise nothing will happen.

Example definition of a button that appends the character A to the TextBox:

<TFT:Button Name='ButtonA' KeyValue='A' Location='0, 50' Size='45, 45'
  Click='OnKeyboardHit' Font='Arial, 20pt, style=Bold'/>