<< Click to Display Table of Contents >> Navigation: Object Reference > General Objects > Softkeys |
Softkeys are an easy and convenient way to add functionality to a hardware key but also can be used on devices without keys (via touchscreen).
Softkeys are very similar to buttons (they only lack the Draw Shadow property.
Softkeys also share a lot of their properties with other objects. See here for a description of the common properties.
It is the same as for the button object. Click here for a description. |
Key NumberThis is a property that can not be changed. Each hardware key gets a specific number. The value of this property is based on the softkey frame in which the softkey is in and the position inside the softkey frame. This number is used in the variable @UserButtonPressed which indicates the last key that has been pressed and, accordingly, @UserButtonReleased. LatchingLatching means: When a softkey is pressed and released, it stays in the pressed state until it is pressed again. With this property this behavior can be enabled. Default value: Disabled Possible values: Enabled or Disabled Pressed StateSwitch between the release or pressed state of the softkey. This is important for having a preview of the object and also for adding pressed/released objects for the softkey (see here). This property has no influence to runtime behavior. Default value: Disabled Possible values: •Enabled (softkey is in pressed state) •Disabled (softkey is in released state) Pressed Object IDThe ID of the object that represents the pressed object of the softkey. Will be automatically set when adding a pressed state object to the softkey (see here). Can't be edited by hand. Released Object IDThe ID of the object that represents the released object of the softkey. Will be automatically set when adding a released state object to the softkey (see here). Can't be edited by hand. |
The following events can be configured for the softkey: •OnPress •OnRelease •OnLongPress •OnLongRelease •OnDblClick See here for the descriptions of all event and possible actions that can be assigned. |