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"
.
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" />
</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")