Tempi - Template Information Utility

by Graham Crow


Template files contain the information used by RISC OS to create windows. They are almost always created using a template editor such as FormEd. However, very few template editors provide easy access to all the information which you need when writing a Wimp application, such as how many icons you have designed, what their bounding boxes are, and what button types you have set. The purpose of Tempi is to analyse and present the information contained in template files in a convenient format.

USING Tempi
Double-click on the Tempi icon to install it on the icon bar, and then drag the template file that you want to analyse onto the Tempi icon. Details of the current file will appear in the Template Information window, within which will be listed information about each window in the template file, including the window identifier, its size in bytes, and the number of icons it contains.

WINDOW INFORMATION
Click on a window title inside the Template Information window to open the Window Information window, which will give full details of that window, extracted from the template file. The following information is displayed:
  
   identifier (in title bar)
   visual area co-ordinates
   work area co-ordinates
   number of icons
   colours
   scroll offsets
   minimum width/height
   sprite area control block pointer
   handle to open window behind
   window flags
   title bar icon flags
   work area flags giving button type
   title data (indirected/text/sprite)

To display information for a different window, either click on its name in the Template Information window, click on the red arrows at the top of the Window Information window, or type in the window number, as displayed in the Template Information window, in the top left-hand icon and press Return.

You may open a menu-type window on each of the window flags by clicking on one of the blue arrows. These windows indicate the setting of each nibble/bit in the flag, and provide an explanation of the setting.

ICON INFORMATION
If the window contains one or more icons, the Icon Information window will also open when you click on the window title. This window will give full details of the icons in that window. The following information is shown:  
  
   bounding box co-ordinates
   icon flags (and the resulting button type and colours)
   icon data (indirected/text/sprite) and any validation strings

Information on different icons can be obtained by entering the icon number in the top left icon or by using the red arrows. As with the window display, you can investigate the various icon flags by clicking on the blue arrows.


 Copyright RISC User 1993
