home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine 1995
/
ARCHIVE95.iso
/
discs
/
shareware
/
share_37
/
interface
/
!Formed
/
!Help
< prev
next >
Wrap
Text File
|
1989-05-16
|
4KB
|
74 lines
Notes on using FormEd, 16-May-89
FormEd is an editor of Template files. To understand this you need to
understand the program interface of the Window System, as described in the
Programmer's Reference Manual. The description here assumes an understanding
of template files.
FormEd is started by double-clicking on a template file after the FormEd
icon has been "seen". This will cause FormEd to be loaded, and to display
all of the windows in the template file. Alternatively, double-click on
FormEd itself and it will be loaded with no current windows. If a template
file does not appear to load properly, give more memory to FormEd before it
starts using the Task Manager window.
A template file is often constructed with reference to a specific set of
sprites. A sprite file can be dragged onto the FormEd icon on the icon bar
to set the available sprites. These are displayed in a window. Some previous
versions of FormEd used to provide facilities for editing sprites, these are
now provided only in the Paint application.
Clicking on the FormEd icon creates a new window in the current template
file, and displays it on the screen.
The menu provided from the icon on the icon bar provides the following
functions:
Create window - similar to clicking on the FormEd icon, except that a name
may be specified for the template.
Load templates - allows you to type in the filename of a template file to
be loaded, instead of dragging an icon from the Filer.
Save templates - a save box for the templates being edited.
Quit - quit FormEd. Beware that this has no "confirm" option, so any edits
will be discarded instantly if you choose this menu entry.
The template windows displayed by FormEd mirror precisely the size, position
and properties of the windows in the Template file. The following actions
directly affect the stored values:
Close the window - deletes it from the template file.
Move/scroll/resize the window - moves the default setup of the window in the
template file.
Clicking MENU on a template window produces a menu tree that allows a wide
variety of alterations to the menu structure, based on the various control
fields of a window structure as described in the Wimp documentation. It also
allows you to create icons in the window. An icon, once created, can be
moved and resized using drag-SELECT and drag-ADJUST. It can also have its
properties adjusted by pointing at it and then clicking MENU, and following
the "amend icon" submenu.
The best way to experiment is to examine and update the template files
belonging to the Applications Suite (saving the original first!). It's also
possible to update the template files used by ROM utilities. These reside in
the deskfs: filing system in the ROM. They are accessed via the environment
variable Wimp$Path, so by updating this to search a directory of your own
first where your updated template files reside, you can replace the window
templates used by the utilities in the ROM.
Your ability to drag and resize icons may be affected by a button type
affixed to an icon: only those button types which generate the appropriate
Wimp events can be dragged and resized directly. It's interesting to note
that FormEd keeps no data structures describing each template window,
relying on the Wimp to keep and manipulate each structure.
FormEd keeps a file of sprites in memory which can be used in icons in the
template being edited. The default sprite file used is the file Default
inside !FormEd, which is in fact a copy of the sprites found in the RISC OS
ROM. To load in a separate sprite file to use with your template file, drag
the sprite file onto the FormEd icon.