Rendering of a start menu
Start menus can be displayed in different ways.
By default, start menus are not rendered: You need to define the startMenuPosition
style attribute for the current window, to a value
different from "none"
.
Secondary style attributes can be used to specify the decoration and behavior of the start menu:
In the next example, the presentation styles file defines the start menu attributes to render the
start menu as a large
tree:
<Style name="Window.container">
<StyleAttribute name="windowType" value="normal" />
<StyleAttribute name="startMenuPosition" value="tree" />
<StyleAttribute name="startMenuSize" value="large" />
</Style>
You can then reference this style in the form definition with
WINDOWSTYLE
attribute:LAYOUT (WINDOWSTYLE="tsm")
...
Or in the program, when creating the window, with the
STYLE
attribute of CREATE
WINDOW
:OPEN WINDOW w1 WITH FORM "f1" ATTRIBUTES(STYLE="tsm")