Important: The CWTC S4 cannot use the same ui.xaml file due to the keyboard mapping. The keyboard is mapped in a different way to the piezoelectric switches. |
CWT Compact Soft Buttons
For the CWT Compact S4 model the soft-key buttons are included in the keyboard.
The four buttons at the top of the keyboard are normally set up to forward the clicks to the display panel that is currently presented. The function of each physical piezo button then depends on the defined click action of the button declaration in the current panel. This makes it possible to adapt the function of the buttons to each panel.
CWT Compact S4 Keyboard
The CWT Compact with keyboard has a 48-key alpha-numeric piezoelectric keyboard.
Behind the visible keyboard there is a fixed grid of 48 piezoelectric switches, and the function of each switch can be defined. The function of an alpha-numeric key is fixed, which means that it can not be changed for each display panel in the user interface.
All buttons are mapped by declaring a KeyboardButton (STN) or PiezoKeyboardButton (TFT) control in the Keyboard element of a display form. Each physical button in the piezo keyboard has a unique number that is used as an id of the keyboard button. This id is used as a reference when the keyboard button is defined. Each keyboard key has a Click property and a KeyValue property that specify the behaviour of the button.
See S4 Alpha-numeric keys for an example definition.