Here the addressbookGUI file is already created. This was done
automatically by the interface builder. The file has
ORIGIN in guienv and contains a GUIenvLib fragmentform. The GUIenvLib
fragmentform can contain specializations of the window class in Lidskjalv
(The Mjølner BETA user interface framework).
In the create dialog the name of the window are entered.
Pressing Create in the dialog the graphical editor window appears:
The empty area with a border is the content area of the window. This area has been resized to the desired size by dragging the border.
The palette at the top of the window contains the standard Lidskjalv
window items, such as push-button and text field.
Here the items are added, and the text in the labels are changed to
'Name:', 'Phone:' and 'CPR:'. These changes are made via the 'Object Inspector'
that are invoked by selecting an item and then choosing the Object Inspector
in the Edit menu:
The items are arranged in the window by using the alignment commands
in the 'Align' menu.
Here the name of one of the text fields are changed to 'nameField',
which will be easier to remember later.
Here the address canvas has been added. The object info dialog has been used to give the canvas an 'etched in' border. The 'Address:' label are not part of the canvas, but are added to the window.
The address fields 'street' and 'city' can now be added to the canvas by dragging from the palette to the canvas.
Now the address fields are added. At the bottom of the window three push-buttons are added. They perform the main functions in the addressbook window. The other functions can be put in the menubar.
NOTE: The menubar can not be specified in the graphical editor. It will have to be coded in Sif, see the Lidskjalv manual for information about doing this.
Furthermore a separator is placed between the buttons and the 'address' canvas.
Now the user interface is complete. In the next section one way to tie the user interface and the data model together in an application, will be explained.
Mjolner Integrated Development Tool - Tutorial | © 1991-2004 Mjølner Informatics |
[Modified: Friday October 27th 2000 at 14:56]
|