3.14.2.3 Menus
In addition to applications, menus can also be displayed in the frames of a display. These
menus are typically used to display certain applications in another frame or to switch displays.
A menu configuration consists of four parts:
● Description of the individual menu items (section [menuitems])
● Description of the look and feel of the menu items (section [menuitemstyle])
● Description of the menu structure (section [menus])
● Description of the look and feel of the menu (section [menustyle])
The [menuitems] section defines the menu items (keys/buttons). Each entry corresponds
to a key/button. The properties of the menu items can be configured.
The following properties are available:
Property Meaning
name
Unique name of the menu item.
onClicked
Action to be triggered by clicking on this menu item. The actions that are
possible are described in the "Menu actions" section.
text
Text displayed on the menu item. Line breaks can be generated with
\n or %n.
textID
A text ID that references a language-dependent text. If the text can be
read, it replaces the text specified in the "text" property.
textContext
The context associated with the text ID. The context can also be specified
when configuring a menu or globally on the file level. Specifying a context
in the menu item overwrites any existing context information in the menu
or on the file level. Specifying a context in the menu overwrites any ex‐
isting context information on the file level.
image
File name of the icon displayed on the menu item.
Special case for display button:
For buttons that are used to switch displays, the icon to be displayed on
the button can be generated automatically by the Display Manager. To
do this, you specify the name of the display to be switched with the file
extension ".auto" as the file name. A schematic drawing of the display is
then displayed as an icon. The stroke width and stroke color used for
this representation can be specified with the properties strokeWidth and
strokeColor.
Display buttons have no text and no "imagePressed" icon.
strokeWidth
1)
Stoke width of the schematic drawing for display buttons (see Property
image). Default: 1.
strokeColor
1)
Color of the stokes of the schematic drawing for display buttons (see
Property image).
Default: Qt::lightGray
imagePressed
File name of the icon displayed on the menu item in the pressed state.
As an alternative to specifying this property, a file named "<image>_ac‐
tivated" is automatically used, if available; <image> is the name specified
in the "image" property.
General settings
3.14 Display Manager
SINUMERIK Operate (IM9)
58 Commissioning Manual, 12/2017, 6FC5397-1DP40-6BA1