Configuration of WCI parent programs
Programs acting as parent WCI containers must perform WCI configuration calls when they start.
The WCI container program is a separate program of a special type, dedicated to contain other program windows. On the front-end, container programs automatically display a parent window that will hold all child program windows that attach to the container.
ui.Interface.setType()
method), and must identify itself
(ui.Interface.setName()
method):
MAIN
CALL ui.Interface.setName("parent1")
CALL ui.Interface.setType("container")
CALL ui.Interface.setText("SoftStore Manager")
CALL ui.Interface.setSize("600px","1000px")
CALL ui.Interface.loadStartMenu("mystartmenu")
MENU "Main"
COMMAND "Help" CALL help()
COMMAND "About" CALL aboutbox()
COMMAND "Exit" EXIT MENU
END MENU
END MAIN
You can define the initial size of the parent container window with the
ui,interface.setSize(height,width)
method.
When the program is identified as a container, a global window is automatically displayed as
a container window. The default toolbar and the default topmenu are displayed and a startmenu can be
used. Other windows created by this kind of program can be displayed, inside the container or as
dialog windows respectively with the windowType="normal"
or windowType="modal"
style attribute.
Other Window styles can
be applied to the parent window by using the default style specification
(name="Window.main"
).