Data Load Demo

by Keith Vernon


This demonstration program is designed to accompany this month's Wimp Topics article on the subject of using filetypes in your own programs.

Double-click on the !WimpTopic icon to open a directory display showing the LoadDemo application. This can then be run in the usual way either by double-clicking on its icon in a directory viewer or by running it from the icon above. It may also be run by double-clicking on a file of filetype &099 (TestType). When run, the application installs an icon on the icon bar, and at the same time opens its main window.

The main window indicates the method which was used to start the program. If a file of any type is subsequently dragged to either the icon bar icon or into the window, or a file of filetype &099 is double-clicked, the application will simulate loading the file and will display information relating to the operation. This information indicates how the file was loaded, the leaf name of the file, its filetype number and type name (if one exists). The application will also display the first 24 printable characters of the file. Consequently the data displayed from some types of file (e.g. Basic, sprite or template files) may not appear to be meaningful.

If a group of files is dragged to the window they will appear to be sequentially 'loaded'.

 Copyright RISC User 1994
