ID numbers and key values assigned to the CWT 2110 and CWT 2115 function buttons are shown in the figure below.
Figure 37, ID numbers and key values of the function buttons
To forward clicks from these buttons to the currently visible display panel and let the panel button definition define the function, the click action shall be OnKeyCurrentPanelButton and the KeyValue property should be set to reflect the button position.
Normal definitions:
<Stn:KeyboardButton Id='97' KeyValue='LeftOne' Click='OnKeyCurrentPanelButton'/>
<Stn:KeyboardButton Id='98' KeyValue='LeftTwo' Click='OnKeyCurrentPanelButton'/>
<Stn:KeyboardButton Id='99' KeyValue='LeftThree' Click='OnKeyCurrentPanelButton'/>
<Stn:KeyboardButton Id='100' KeyValue='LeftFour' Click='OnKeyCurrentPanelButton'/>
<Stn:KeyboardButton Id='1' KeyValue='RightOne' Click='OnKeyCurrentPanelButton'/>
<Stn:KeyboardButton Id='2' KeyValue='RightTwo' Click='OnKeyCurrentPanelButton'/>
<Stn:KeyboardButton Id='3' KeyValue='RightThree' Click='OnKeyCurrentPanelButton'/>
<Stn:KeyboardButton Id='4' KeyValue='RightFour' Click='OnKeyCurrentPanelButton'/>
The above definitions will forward all function buttons to the currently visible panel because the OnKeyCurrentPanelButton property is used as click action. The KeyValue property is used as a reference to define which button location the panel shall forward the button click to.
If the function button with Id 4 is pressed, the click action OnKeyCurrentPanelButton will forward the click to the currently visible panel. If a button is defined with ButtonLocation “RightFour” in the currently visible panel, the click action of the button in the panel will be executed. If the visible panel has a button definition like the one below, OnAccept will be executed with all propertys from the AcceptButton definition:
<Stn:Button Name='AcceptButton'
Text='Accept'
ButtonLocationName='RightFour'
ClickSound = 'Storage Card\Media\sound\button.wav'
Click='OnAccept'/>