17 Appendix A: Demo Programs

The demo programs in this manual can be found in the reference demo subdirectory in the guienv directory. The location of the directory in installation-dependent

~beta/guienv/demo/ReferenceDemos

The demo directory contains many more demo programs than is included in this manual. Please inspect the demo directory for other illustrative demo programs. The following is a short description of the demos in the demo directory:

This demo shows how to create a very simple window and it illustrates the activate/deactivate event.
This demo shows how to create a simple window with a standardMenubar where the file menu only has one menuitem. It also illustrates how to further bind the onMouseDown, onMouseUp and onKeyDown event patterns.
This demo shows how to use the fileSelectionDialog pattern. The name of the file selected in the dialog is printed on the screen.
This demo shows how to create a window with two pushButtons, and how to give a button a new size on runtime.
This demo shows how to build a simple texteditor.
This demo gives an example of how you can draw lines and polygons with mouse using the figureitems line and polygon. Clicking with the left mouse button defines a node in the polygon/line, clicking with the right mouse button ends the definition of the polygon/line and draws it on the screen.
This demo gives a simple example of how to use the textScrollList windowitem.
This demo gives an example of how to use the containsPoint operation of a rectangle.
This demo is an example showing how read a bitmap from a file, and using the graphics pattern to draw the bitmap on the screen.
This demo shows how to use the pixmap pattern when creating an iconButton control. Each time you click in the window a new iconButton is created and positioned at the point where you click.
This demo shows how to prepend/append actions to keyDown events in an editText control.
This demo shows how to use the labelChangedAction to adjust the size of a pushButton to the length of its label. The action is created by remote access to show that actions can be added without specializing the button.
This is a silly demo that shows how a beforeChangeAction can be used to 'eat' every second keystroke in a textField.


Lidskjalv: User Interface Framework - Reference Manual
© 1994-2002 Mjølner Informatics
[Modified: Monday October 9th 2000 at 13:29]