home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilst / wined / !WinEd / !Help < prev    next >
Text File  |  1996-03-13  |  67KB  |  1,956 lines

  1.     
  2.     
  3.     
  4.                                           ____
  5.                     |        |           |          |
  6.                     |        |  •   __   |       ___|
  7.                     |        |  |  |  \  |————  /   |
  8.                      \  /\  /   |  |   | |     |    |
  9.                       \/  \/    |  |   | |____  \__/|
  10.             
  11.     
  12.     
  13.     A shareware template editor for RISC OS 3.
  14.     
  15.     
  16.     
  17.     
  18.     
  19.     
  20.     Author:
  21.     
  22.                 Tony Houghton
  23.                 271 Upper Weston Lane
  24.                 Southampton
  25.                 SO19 9HY
  26.                 United Kingdom
  27.     
  28.     Email:    tonyh@tcp.co.uk
  29.     WWW:    http://www.tcp.co.uk/~tonyh/
  30.     
  31.     
  32.     
  33.     
  34.     This manual describes release 2.34 of WinEd.
  35.     
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.     CONTENTS
  50.  
  51.  
  52.  
  53.  
  54.     About WinEd............................................................1
  55.     Requirements...........................................................1
  56.     About shareware........................................................1
  57.     Installation and registration..........................................1
  58.     Upgrades...............................................................2
  59.     Distribution...........................................................2
  60.     Disclaimer.............................................................2
  61.     Units used.............................................................2
  62.     Mode independence......................................................3
  63.     WinEd’s dialogue boxes.................................................3
  64.     Error boxes............................................................3
  65.     Interactive help.......................................................3
  66.     Loading and creating templates.........................................3
  67.     Keyboard control of the pointer........................................4
  68.     Sprite files and sprite areas..........................................4
  69.     The icon bar menu......................................................4
  70.     The Choices dialogue box...............................................5
  71.     Browsers...............................................................6
  72.     Mouse operations in browsers...........................................6
  73.     The browser menu.......................................................7
  74.     Selected window(s) submenu.............................................8
  75.     Saving templates.......................................................8
  76.     Statistics windows.....................................................8
  77.     The browser tool bar...................................................9
  78.     Preview windows........................................................9
  79.     The preview menu......................................................10
  80.     Editable windows......................................................10
  81.     Mouse operations in editable windows..................................10
  82.     The editable window menu..............................................11
  83.     Selected icon(s) submenu..............................................12
  84.     The editable window tool pane.........................................13
  85.     Edit window dialogue box..............................................13
  86.     Button types..........................................................15
  87.     The colour picker.....................................................17
  88.     The monitor...........................................................17
  89.     Creating icons: the Icon picker.......................................18
  90.     Work area dialogue box................................................18
  91.     Edit icon/title dialogue box..........................................19
  92.     Align dialogue box....................................................22
  93.     Space out dialogue box................................................23
  94.     Resize icons dialogue box.............................................23
  95.     Frame dialogue box....................................................24
  96.     Hints & tips..........................................................25
  97.     Customising WinEd.....................................................27
  98.     Bug reports & suggestions.............................................28
  99.     Acknowledgements......................................................28
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.     
  112.  
  113.  
  114.                                     WINED
  115.     ________________________________________________________________________
  116.  
  117.  
  118.  
  119.     About WinEd
  120.     ———————————
  121.     WinEd is a shareware template editor.  Its features are aimed at
  122.     designing templates for RISC OS 3 with a 3D look, but it can also be
  123.     used for 2D templates.  The most attractive features of WinEd are:
  124.  
  125.       •     Main editing interfaces use dialogue boxes.
  126.       •     Icons can be dragged between windows, including a customisable
  127.             ‘Picker’ window containing the most commonly used icons.
  128.       •     Multiple files can be loaded by one instantiation of WinEd.
  129.       •     Conventions are based on Acorn’s Style Guide.
  130.       •     Statistics are available on the size etc of template files.
  131.       •     Powerful features for positioning icons relative to each other.
  132.       •     Optional rounding of coordinates in high resolution modes to
  133.             ensure low resolution compatibility.
  134.       •     Optional tool panes and keyboard short cuts enhance convenience.
  135.       •     Fast loading and saving.
  136.  
  137.     Requirements
  138.     ————————————
  139.     WinEd requires RISC OS 3.1 or later, but will work on 1Mb systems.  No
  140.     modules are required, except that because it is designed for a 3D look
  141.     you should use the NewLook suite supplied by Acorn if you have RISC OS
  142.     3.1.  This includes the WindowUtils module, without which some 3D
  143.     applications may crash.
  144.  
  145.     About shareware
  146.     ———————————————
  147.     WinEd is shareware, not public domain.  Shareware means that you are
  148.     legally obliged to register by sending a fee to the author if you
  149.     decide to continue using the software after an evaluation period. 
  150.     Registration of WinEd is described below.
  151.  
  152.     Please do not fail to register any shareware you use, not just WinEd. 
  153.     Your support helps to preserve an excellent way of allowing users to
  154.     try before they buy and independent authors to distribute their
  155.     software conveniently.
  156.  
  157.     Installation and registration
  158.     —————————————————————————————
  159.     WinEd can be run from any filing system, but the registration process
  160.     requires a writable medium.  To install WinEd drag it from the
  161.     directory you receive it on to the directory you want it to ‘live’ in. 
  162.     To ensure your new copy is used in preference to the original open the
  163.     application directory with Shift-Double-click and double click the
  164.     !Boot file.  You only need to do this if you have just made a new copy
  165.     and intend to use it without rebooting the computer.
  166.  
  167.     When you first install WinEd, you will most probably have an
  168.     unregistered version.  This will be made evident by the start-up banner
  169.     asking you to register, and the string  “*** Unregistered ***” in the
  170.     User field of the Info dialogue box.  After registration a User file is
  171.  
  172.  
  173.  
  174.                                     Page 1
  175.  
  176.  
  177.     
  178.  
  179.  
  180.                                     WINED
  181.     ________________________________________________________________________
  182.  
  183.  
  184.  
  185.     created: the banner will be removed and your name inserted in the User
  186.     field.
  187.  
  188.     The first thing you must do to register WinEd is send £10.00 sterling
  189.     (cheques payable to A. Houghton) to:
  190.  
  191.     Tony Houghton
  192.     271 Upper Weston Lane
  193.     Southampton  SO19 9HY
  194.     UK
  195.  
  196.     Please state your name exactly as you wish it to appear in the User
  197.     field, and the version number of WinEd you are currently using.  In
  198.     return I will send you your personal registration code and the latest
  199.     version of WinEd if you have an earlier version.  Overseas customers
  200.     need not pay extra for postage, but S.A.E’s will be much appreciated.
  201.  
  202.     When you have a registration code run WinEd and click on the Register
  203.     button in the registration banner.  A sub-program takes your user name
  204.     and registration code and uses them to create the User file within
  205.     !WinEd.
  206.  
  207.     Upgrades
  208.     ————————
  209.     Your User file will be compatible with all future versions of WinEd. 
  210.     Its main ftp site on the Internet is ftp.tcp.co.uk/pub/acorn; check my
  211.     web site (see title page of this manual) for news of updates.  Users
  212.     without access can get updates from  APDL at 39 Knighton Park Road,
  213.     Sydenham, London SE26 5RN.  Alternatively you can get upgrades directly
  214.     from me at the above address; please state your registration code and
  215.     include a preferably padded SAE with a formatted disc (HD or DD
  216.     acceptable).
  217.  
  218.     Distribution
  219.     ————————————
  220.     WinEd may be freely distributed provided all the files, including this
  221.     and other documentation, are left intact and unaltered, except for any
  222.     User file which must be removed.  Customised template files must be
  223.     replaced with the originals.  If you are doing more than giving a copy
  224.     to a friend (eg you run a BBS or PD library) please ensure you have the
  225.     latest version.
  226.  
  227.     Disclaimer
  228.     ——————————
  229.     I, the author can accept no liability for any loss or damage caused by
  230.     installing or using WinEd.  I reserve the right to change the
  231.     specification of WinEd without notice and upgrade it or not as I see
  232.     fit.
  233.  
  234.     Units used
  235.     ——————————
  236.     The units used and referred to throughout are OS units, except where
  237.  
  238.  
  239.  
  240.                                     Page 2
  241.  
  242.  
  243.     
  244.  
  245.  
  246.                                     WINED
  247.     ________________________________________________________________________
  248.  
  249.  
  250.  
  251.     stated.  If a writable icon expecting a number is left blank, zero is
  252.     assumed.
  253.  
  254.     Remember that work area coordinates have the origin at the top left and
  255.     anything below this is negative.
  256.  
  257.     Mode independence
  258.     —————————————————
  259.     WinEd has been designed so that you do not have to design your
  260.     templates in low resolution modes to ensure compatibility.  This is
  261.     done by providing an option to round all coordinates to the nearest 4
  262.     OS units (equivalent to one pixel in the lowest resolution desktop
  263.     modes), including the dashed outline in drags.
  264.  
  265.     WinEd’s dialogue boxes
  266.     ——————————————————————
  267.     Most of WinEd’s dialogue boxes are static ie a click outside them does
  268.     not close them.  This slightly improves convenience and consistency.
  269.  
  270.     Action buttons generally close the dialogue box they are in unless
  271.     clicked with Adjust instead of Select.  Cancel buttons always close the
  272.     dialogue box.
  273.  
  274.     Pressing Return in any writable icon has the same effect as clicking
  275.     Select on the default action icon.  Use the up and down cursor keys or
  276.     (Shift-) Tab to move the caret between icons.
  277.  
  278.     When clicked with Select, down ‘bumper’ icons (arrows) decrease values
  279.     shown in adjacent fields, up bumpers increase the values.  Adjust does
  280.     the reverse of this.
  281.  
  282.     Error boxes
  283.     ———————————
  284.     Error boxes are usually used when WinEd encounters a problem such as
  285.     lack of memory or missing resources.  Where possible, when WinEd is
  286.     being used to edit data, it tries to continue after such problems, but
  287.     you should save your data as soon as possible.  If WinEd can not
  288.     continue there will be a Cancel button instead of OK or Continue.
  289.  
  290.     Interactive help
  291.     ————————————————
  292.     WinEd supports interactive help, including its menus; you may find this
  293.     helpful at first.
  294.     Loading and creating templates
  295.     ——————————————————————————————
  296.     WinEd can be loaded by double clicking it in a directory display or by
  297.     double clicking any template file.  Naturally the WinEd icon appears on
  298.     the icon bar, also a browser (see below) is opened for any template
  299.     file that was used to invoke WinEd.  Once WinEd is loaded any more
  300.     template files can be loaded by double clicking or dragging to WinEd. 
  301.     The number of files WinEd can load and edit is only limited by memory. 
  302.     To create a new file click once with Select on the WinEd icon; this
  303.  
  304.  
  305.  
  306.                                     Page 3
  307.  
  308.  
  309.     
  310.  
  311.  
  312.                                     WINED
  313.     ________________________________________________________________________
  314.  
  315.  
  316.  
  317.     opens an empty browser (see below).
  318.  
  319.     Files can be merged by dragging one file into a browser containing the
  320.     other.
  321.  
  322.     Keyboard control of the pointer
  323.     ———————————————————————————————
  324.     While WinEd is on the icon bar and no other windows have input focus,
  325.     each press of one of the cursor keys moves the mouse pointer by one
  326.     pixel in the appropriate direction.
  327.  
  328.     Sprite files and sprite areas
  329.     —————————————————————————————
  330.     In some windows it is necessary to create icons with sprites that
  331.     belong to an application instead of the Wimp’s sprite pool.  You can
  332.     load 'user' sprite files into WinEd by dragging them to its icon. 
  333.     WinEd only has one sprite pool which it shares between all windows
  334.     loaded in it, but it can load sprite files dragged to any of its
  335.     windows or its icon bar.
  336.  
  337.     Holding shift while dragging a sprite file to WinEd causes it to be
  338.     merged with the Wimp sprite pool and the screen is redrawn.
  339.  
  340.     From version 2.30 onwards, all sprite area fields are saved with the
  341.     value 1 (use Wimp sprites) and WinEd makes no distinction between the
  342.     Wimp sprite pool and the user sprite pool.  RISC OS 3 allows all sprite
  343.     area pointers to be set to a user sprite area and it will look for
  344.     sprites in the Wimp pool if they are not found in the user's area.  It
  345.     is up to the target application to change sprite area pointers to its
  346.     own sprite area if necessary.
  347.  
  348.     The icon bar menu
  349.     —————————————————
  350.  
  351.     Info
  352.     ----
  353.     Moving the pointer right opens the Info dialogue box which contains
  354.     information about WinEd including the version and whether there is a
  355.     registered user.
  356.  
  357.     Icon picker
  358.     -----------
  359.     This opens the icon picker immediately above the right hand end of the
  360.     icon bar.  The icon picker is described in a later section.
  361.  
  362.     Monitor
  363.     -------
  364.     This opens the monitor window at the top right of the screen.  The
  365.     monitor is described in a later section.
  366.  
  367.     Choices
  368.     -------
  369.  
  370.  
  371.  
  372.                                     Page 4
  373.  
  374.  
  375.     
  376.  
  377.  
  378.                                     WINED
  379.     ________________________________________________________________________
  380.  
  381.  
  382.  
  383.     This opens the Choices dialogue box, described later.
  384.  
  385.     Clear sprites
  386.     -------------
  387.     Clears the user sprite area to save memory.
  388.  
  389.     Quit
  390.     ----
  391.     This removes WinEd and all its files from memory.  If data has been
  392.     altered without saving you will be presented with a warning dialogue
  393.     box.
  394.  
  395.     Click the Discard button to discard data and allow WinEd to quit, or
  396.     the Cancel button to keep WinEd and its data.  This dialogue box also
  397.     appears if the Task Manager asks WinEd to quit without saving data, eg
  398.     during a Shutdown.
  399.  
  400.     The Choices dialogue box
  401.     ————————————————————————
  402.     Opened from the icon bar menu, this allows you to configure some of
  403.     WinEd’s behaviour.  The choices will not take effect until you click OK
  404.     or Save, but will then take immediate effect, updating any displayed
  405.     windows if necessary.  The Save button creates a Choices file within
  406.     the !WinEd directory, to read the options from next time WinEd is
  407.     loaded.  If WinEd can not find a valid Choices file it quietly chooses
  408.     suitable defaults.
  409.  
  410.     Automatic monitor
  411.     -----------------
  412.     If selected the monitor will automatically open and close when editable
  413.     or preview windows are opened and closed, as described in the section
  414.     about The monitor.
  415.  
  416.     Automatic icon picker
  417.     ---------------------
  418.     This makes the icon picker open and close with editable windows in a
  419.     similar way to the monitor.
  420.  
  421.     Browser tool bar
  422.     ----------------
  423.     This causes a tool bar to be displayed along the top of browsers.
  424.  
  425.     Editable window tool pane
  426.     -------------------------
  427.     This causes a tool pane to be attached to the top left of editable
  428.     windows.
  429.  
  430.     Keyboard short cuts
  431.     -------------------
  432.     If selected, browsers and editable windows will claim input focus and
  433.     respond to keyboard short cuts.  The short cuts are shown in the menus
  434.     if this option is selected.
  435.  
  436.  
  437.  
  438.                                     Page 5
  439.  
  440.  
  441.     
  442.  
  443.  
  444.                                     WINED
  445.     ________________________________________________________________________
  446.  
  447.  
  448.  
  449.  
  450.     Hatch user-drawn windows
  451.     ------------------------
  452.     If selected, a cross hatch pattern will be displayed in any editable
  453.     window which needs the task’s help to be redrawn.
  454.  
  455.     Round coordinates
  456.     -----------------
  457.     This causes all coordinates to be rounded to the nearest 4 OS units as
  458.     described in the section on Mode independence.
  459.  
  460.     Editable window tool icons
  461.     --------------------------
  462.     This causes editable windows to be displayed with all the tools (title
  463.     bar, scroll bars etc) to save you having to repeatedly switch them on
  464.     and off every time you want to move or scroll the window.  A Preview
  465.     system is provided to see how your windows will actually look.
  466.  
  467.     Auto-load sprites
  468.     -----------------
  469.     When a template file is loaded WinEd will load a Sprites or Sprites22
  470.     file from the same directory if one exists and this option is set.
  471.  
  472.     Browsers
  473.     ————————
  474.     Browser is the term for a window which displays a list of the
  475.     window/dialogue box definitions in a file.  Each entry is shown as a
  476.     small icon depicting a dialogue box (with no scroll bars) or window
  477.     (with scroll bars) next to its template identifier.  The windows are
  478.     displayed in the order they appear in the file left to right.
  479.  
  480.     The title bar of a browser shows the file name of the templates, with
  481.     an asterisk if they have been edited.  Closing a browser removes the
  482.     templates from memory, unless they have not been saved in which case
  483.     you will see a warning dialogue box.
  484.  
  485.     Click Discard to discard the templates and close the browser, Cancel to
  486.     keep the browser open or Save to open the save dialogue box.  If you
  487.     choose the latter the browser will be closed following a successful
  488.     save.
  489.  
  490.     If you click Adjust on a browser’s close tool WinEd will attempt to
  491.     open the directory the templates were last loaded or saved in, keeping
  492.     the browser open if you hold Shift.  Iconising a browser (Shift-Select
  493.     on the close tool) closes any windows which ‘belong’ to it, thus it can
  494.     be used for a quick tidy-up.
  495.  
  496.     Mouse operations in browsers
  497.     ————————————————————————————
  498.     Where ‘work area’ is shown in brackets below it refers to clicking over
  499.     a part of the window not covered by an icon.  Similarly, ‘(icon)’ means
  500.     clicking over an icon; each icon corresponds to a window or dialogue
  501.  
  502.  
  503.  
  504.                                     Page 6
  505.  
  506.  
  507.     
  508.  
  509.  
  510.                                     WINED
  511.     ________________________________________________________________________
  512.  
  513.  
  514.  
  515.     box definition.  If neither are present it refers to any part of the
  516.     window.
  517.  
  518.     Select (icon)                   Exclusively select icon
  519.     Select (work area)              Clear selection
  520.     Adjust (icon)                   Toggle selection state of icon without
  521.                                     affecting others
  522.     Double-click Select (icon)      Open window for editing, or close it if
  523.                                     already open
  524.     Double-click Adjust (icon)      Open window for preview, or close it if
  525.                                     already open
  526.     Drag Select                     Start dragging rubber box; when complete
  527.                                     all icons within the box are selected
  528.     Drag Adjust                     Start dragging rubber box; all icons
  529.                                     inside will have their selection state
  530.                                     toggled
  531.     Menu                            Open browser menu.  If not more than
  532.                                     one icon was previously selected, any
  533.                                     icon under the pointer is selected
  534.                                     instead
  535.  
  536.     The browser menu and the processes of editing and previewing windows
  537.     are described below.
  538.  
  539.     The browser menu
  540.     ————————————————
  541.     The Selection and Clear selection entries are greyed out if there is no
  542.     selection, and the Selection entry is changed to Window ‘xxxx’ if only
  543.     one window is selected.
  544.  
  545.     Create
  546.     ------
  547.     Move the pointer right to a small dialogue box to enter the name
  548.     (identifier) of a new window.  This must contain at least one
  549.     character, and you will be asked for confirmation if you are about to
  550.     overwrite any existing windows with the same name.
  551.  
  552.     Selection
  553.     ---------
  554.     Move the pointer right to open the Window/Selection submenu described
  555.     below.
  556.  
  557.     Select all
  558.     ----------
  559.     Selects all the windows in a browser.
  560.  
  561.     Clear selection
  562.     ---------------
  563.     Clears the selection.
  564.  
  565.     Save
  566.     ----
  567.  
  568.  
  569.  
  570.                                     Page 7
  571.  
  572.  
  573.     
  574.  
  575.  
  576.                                     WINED
  577.     ________________________________________________________________________
  578.  
  579.  
  580.  
  581.     Move the pointer right to open the Save as dialogue box.
  582.  
  583.     Statistics
  584.     ----------
  585.     Opens a statistics window for the file in the browser.  This is
  586.     described below.
  587.  
  588.     Selected window(s) submenu
  589.     ——————————————————————————
  590.     If  more than one window is selected only the Delete entry can be
  591.     selected, the others are greyed out.
  592.  
  593.     Copy
  594.     ----
  595.     Move the pointer right to make a copy of the selected window.  This is
  596.     similar to creating a new window, described above.
  597.  
  598.     Rename
  599.     ------
  600.     Move the pointer right to enter a new name for the selected window;
  601.     again, see the section about creating a new window.
  602.  
  603.  
  604.     Delete
  605.     ------
  606.     Deletes the selected window(s).
  607.  
  608.     Edit
  609.     ----
  610.     Open the selected window for editing (see the section on Editable
  611.     windows below).
  612.  
  613.     Preview
  614.     -------
  615.     Open the selected window for previewing (see the section on Preview
  616.     windows below).
  617.  
  618.     Saving templates
  619.     ————————————————
  620.     The Save as dialogue box is opened from the browser menu.  Drag the
  621.     file icon or enter a path name in the writable icon and click Save.  If
  622.     one or more windows are selected the Selection button will be
  623.     selectable.  Select this if you only want to save the selected
  624.     templates.  Note that when you save a selection, the fonts for the
  625.     whole file are saved with it.  To remove superfluous fonts load the
  626.     file back into WinEd.
  627.  
  628.     Statistics windows
  629.     ——————————————————
  630.     The top row shows the column headings.  The Identifier column shows the
  631.     name of the window, Icons shows how many icons the window contains. 
  632.     Buffer shows the size of the buffer needed to load the window block
  633.  
  634.  
  635.  
  636.                                     Page 8
  637.  
  638.  
  639.     
  640.  
  641.  
  642.                                     WINED
  643.     ________________________________________________________________________
  644.  
  645.  
  646.  
  647.     with Wimp_LoadTemplate; similarly Indirected shows the size of buffer
  648.     needed to hold the icons’ indirected data.  Note that the Buffer size
  649.     is the size that will be requested by Wimp_LoadTemplate and includes a
  650.     temporary buffer for indirected data.
  651.  
  652.     Each row in the main section of the window shows the data described
  653.     above for each window definition in the file.
  654.  
  655.     The penultimate row shows the total of each column for all the windows
  656.     in the file.
  657.  
  658.     The bottom row shows, from left to right, the number of windows in the
  659.     file, the number of different font definitions used, and the size in
  660.     bytes of the file as stored on disc.  Note the latter is generally
  661.     smaller than the total size needed to load the templates, this is
  662.     because only the parts of indirected strings which contain data are
  663.     stored in the file, but the application using the templates needs to
  664.     reserve space for the maximum possible length of the string.
  665.  
  666.     The browser tool bar
  667.     ————————————————————
  668.     This is a row of tool icons which can optionally be displayed along the
  669.     top of browser windows.  The tools provide short cuts for the functions
  670.     described above, available from the browser menu.  They are (from left
  671.     to right):
  672.  
  673.     Create (opens writable submenu)
  674.     Select all
  675.     Clear selection
  676.     Save
  677.     Copy (opens writable submenu)
  678.     Rename (opens writable submenu)
  679.     Delete
  680.     Statistics
  681.     Edit
  682.     Preview
  683.  
  684.     Preview windows
  685.     ———————————————
  686.     Since editable windows have their attributes altered to make them
  687.     easier to edit, it is necessary to have a system of viewing exactly how
  688.     your finished windows will look and behave.  This is what preview
  689.     windows are for.  They can be opened by double clicking Adjust on a
  690.     window in a browser or by choosing Preview from the browser menu.
  691.  
  692.     Previews can also be used to fine tune the size and appearance of
  693.     windows in ways which are not practical or possible with editable
  694.     windows.
  695.  
  696.     It is possible to drag a preview window by dragging an empty part (ie
  697.     not covered by an icon) of its work area while pressing Ctrl.  Using
  698.     Select has the same effect as dragging the title bar (move window) and
  699.  
  700.  
  701.  
  702.                                     Page 9
  703.  
  704.  
  705.     
  706.  
  707.  
  708.                                     WINED
  709.     ________________________________________________________________________
  710.  
  711.  
  712.  
  713.     Adjust is the same as dragging the adjust size tool (resize window).
  714.  
  715.     It may also be necessary to see how windows fit with each other (eg for
  716.     panes) without superfluous tools.
  717.  
  718.     Once you are satisfied with the size and position of a preview window
  719.     remember to store the position and size with the preview menu (see
  720.     below), otherwise they will be reset next time you open the window.
  721.  
  722.     The preview menu
  723.     ————————————————
  724.  
  725.     Close
  726.     -----
  727.     Closes the window (in case there is no close tool).
  728.  
  729.     Store position
  730.     -------------
  731.     Stores the current on-screen size and position of the window in the
  732.     template definition.
  733.  
  734.     Store icon states
  735.     -----------------
  736.     Stores the selection states of the window’s icons in the template
  737.     definition.  However, it is better practice to leave any selection to
  738.     the application which finally uses the templates.
  739.  
  740.     Editable windows
  741.     ————————————————
  742.     The changes you make to editable windows directly affect the template
  743.     data, including moving and resizing.  Editable windows are optionally
  744.     always shown with all tools (title bar, scroll bars etc) to make
  745.     editing easier.  All icons are given the same button type to make them
  746.     selectable.   To see how your windows will really look use the preview
  747.     system.
  748.  
  749.     Many of the following sections refer to dialogue boxes; each of these
  750.     is described in its own section.
  751.  
  752.     Mouse operations in editable windows
  753.     ————————————————————————————————————
  754.     These are summarised below with numbered notes.  Note also that all
  755.     mouse operations in editable windows can be modified in the same way
  756.     with the Ctrl key.  This has the effect of making the operation act as
  757.     if over an empty bit of work area instead of over an icon.  All
  758.     irreversible drags (ie excepting rubber boxes) can be cancelled by
  759.     pressing Esc when you release the mouse.
  760.  
  761.     Select (work area)              Clear selection
  762.     Select (non-selected icon)      Exclusively select icon
  763.     Menu                            Open editable window menu.  If not more
  764.                                     than one icon was previously selected,
  765.  
  766.  
  767.  
  768.                                     Page 10
  769.  
  770.  
  771.     
  772.  
  773.  
  774.                                     WINED
  775.     ________________________________________________________________________
  776.  
  777.  
  778.  
  779.                                     any icon under the pointer is selected
  780.                                     instead
  781.     Adjust (non-selected icon)      Select icon without affecting others
  782.     Adjust (selected icon)          Deselect icon
  783.     Drag Select (work area)         Drag a rubber box to select icons      ¹
  784.     Drag Select (icon)              Move (local)/Copy (export) icon        ²
  785.     Drag Adjust (work area)         Drag a rubber box to invert the
  786.                                     selection state of icons               ¹
  787.     Drag Adjust (icon)              Resize icon, moving the edge nearest the
  788.                                     pointer                                ³
  789.     Drag Shift-Adjust (icon)        Resize icon, moving the corner nearest
  790.                                     the pointer                            ³
  791.     Drag Shift-Select (icon)        Copy (local)/Move (export) icon        ²
  792.     Drag Shift-Adjust (icon)        Resize icon, moving only the edge
  793.     nearest
  794.                                     the pointer                            ³
  795.     Drag Shift-Ctrl-Select          Move window as if dragging title bar
  796.     Drag Shift-Ctrl-Adjust          Resize window as if dragging adjust size
  797.                                     tool
  798.     Double click Select (work area) Edit window (open dialogue)            †
  799.     Double click Select (icon)      Edit icon               "              †
  800.     Double click Adjust (work area) Edit work area          "              †
  801.     Double click Adjust (icon)      Minimise icon                          ‡
  802.     Double ⇧-Select (work area)     Edit window title icon  "              †
  803.  
  804.     ¹       This is similar to the same type of drag in browsers.
  805.     ²       This follows the conventions of Drag & Drop as outlined in the
  806.     Style Guide.  The unmodified drag and Shift-modified drag have the
  807.     opposite effect depending on whether the drag is local (finishing in
  808.     the same window as it started) or an export (to a different window). 
  809.     In the local case an unmodified drag moves the icon and a Shift-drag
  810.     copies it, in the export case an unmodified drag copies the icon, a
  811.     Shift-drag effectively moves the icon by making a copy in the
  812.     destination window and deleting the original.  If the pointer leaves
  813.     the window during a drag the window is scrolled if possible; if the
  814.     drag turns out to be an export the scroll bars are reset to their
  815.     original positions.  The Shift key is polled at the start of the drag,
  816.     not the end.
  817.     ³       Resize drags are limited by the window’s visible area.
  818.     †       These operations open the relevant dialogue box.
  819.     ‡               This minimises both the width and height of an icon;
  820.     minimisation makes the icon just large enough to display its contents
  821.     and is described in more detail in the section about the Resize icons
  822.     dialogue box.
  823.  
  824.     The editable window menu
  825.     ————————————————————————
  826.     The Selection and Clear selection entries are greyed out if there is no
  827.     selection, and the Selection entry is changed to Icon nnn if only one
  828.     icon is selected.
  829.  
  830.     Selection
  831.  
  832.  
  833.  
  834.                                     Page 11
  835.  
  836.  
  837.     
  838.  
  839.  
  840.                                     WINED
  841.     ________________________________________________________________________
  842.  
  843.  
  844.  
  845.     --------
  846.     Move the pointer right to open the Selection submenu.
  847.  
  848.     Select all
  849.     ----------
  850.     Selects all the icons in the window.
  851.  
  852.     Clear selection
  853.     ---------------
  854.     Deselects all the icons.
  855.  
  856.     Work area...
  857.     ------------
  858.     Opens the Work area dialogue box.
  859.  
  860.     Edit window...
  861.     --------------
  862.     Opens the Edit window dialogue box.
  863.  
  864.     Edit title...
  865.     -------------
  866.     Opens the Edit icon dialogue box for the title icon.
  867.  
  868.     Close window
  869.     ------------
  870.     Closes the window.
  871.  
  872.     Selected icon(s) submenu
  873.     ————————————————————————
  874.     If only one icon is selected, the title bar of the menu shows Icon and
  875.     the Align... option is greyed out.  The Edit... option is greyed out
  876.     and the title bar shows Selection for multiple selections.
  877.  
  878.     Delete
  879.     ------
  880.     Deletes the selected icon(s).  Deleted icons are entirely removed from
  881.     the template; any icons with higher numbers are renumbered to ‘fill the
  882.     gap’.
  883.  
  884.     Renumber nn
  885.     -----------
  886.     Renumbers the selection, starting from the number shown.  A different
  887.     number can be entered by moving the pointer right.  Groups of icons can
  888.     be renumbered as well as single icons.  When renumbering a group they
  889.     are kept in the same order but are made consecutive, starting from the
  890.     new number.  After renumbering the number in the menu and dialogue box
  891.     is updated to the number following the new number of the last
  892.     renumbered icon.
  893.  
  894.     Edit...
  895.     -------
  896.     Opens the Edit icon dialogue box, a long winded alternative to
  897.  
  898.  
  899.  
  900.                                     Page 12
  901.  
  902.  
  903.     
  904.  
  905.  
  906.                                     WINED
  907.     ________________________________________________________________________
  908.  
  909.  
  910.  
  911.     double-clicking.
  912.  
  913.     Align...
  914.     --------
  915.     Opens the Align icons dialogue box.
  916.  
  917.     Space out...
  918.     ------------
  919.     Opens the Space out dialogue box.
  920.  
  921.     Resize...
  922.     ---------
  923.     Opens the Resize icons dialogue box.
  924.  
  925.     Frame...
  926.     --------
  927.     Opens the Frame icons dialogue box.
  928.  
  929.     The editable window tool pane
  930.     —————————————————————————————
  931.     This is optionally attached to the top-left edge of editable windows
  932.     and provides short cuts for the menu functions described above.  The
  933.     tools are (left to right, top to bottom):
  934.  
  935.     Select all
  936.     Clear selection
  937.     Work area...
  938.     Edit window...
  939.     Edit title...
  940.     Delete
  941.     Renumber (Select opens writable submenu, Adjust renumbers with value
  942.     currently shown in menu)
  943.     Align...
  944.     Space out...
  945.     Resize...
  946.     Frame...
  947.  
  948.     Edit window dialogue box
  949.     ————————————————————————
  950.     This can be opened from an editable window menu or by double clicking
  951.     Select in the window’s work area.  It is for editing various attributes
  952.     of a window.  The identifier of the window being edited is shown in the
  953.     title bar.
  954.  
  955.     Most monitors will not be capable of displaying the dialogue box at
  956.     full height, but the tall, narrow design seems to be the most
  957.     convenient.  If necessary the dialogue box can be redesigned by the
  958.     user (see the section on Customising WinEd).
  959.  
  960.     Tools
  961.     -----
  962.     These option icons determine which of the named tools will appear
  963.  
  964.  
  965.  
  966.                                     Page 13
  967.  
  968.  
  969.     
  970.  
  971.  
  972.                                     WINED
  973.     ________________________________________________________________________
  974.  
  975.  
  976.  
  977.     around the border of the window.
  978.  
  979.     Btn type
  980.     --------
  981.     This shows the button type of the window’s work area.  The button icon
  982.     to the right of this field pops up the button type menu when clicked. 
  983.     Button types are described later.
  984.  
  985.     Update
  986.     ------
  987.     Updates the template data with the settings in the dialogue box.
  988.  
  989.     The following option icons affect the state of the window’s flags. 
  990.     Each explanation refers to when the flag is set.
  991.  
  992.     Movable
  993.     -------
  994.     The window can be dragged by its title bar.
  995.  
  996.     Auto redraw
  997.     -----------
  998.     The window can be entirely redrawn by the Wimp, the application does
  999.     not need code to redraw it.
  1000.  
  1001.     Pane
  1002.     ----
  1003.     The window is a pane.  This makes the title bar of the window behind
  1004.     (parent) change colour when the pane gains input focus.
  1005.  
  1006.     Force to back
  1007.     -------------
  1008.     No windows can be opened behind this one; it becomes a backdrop.
  1009.  
  1010.     Hot keys
  1011.     --------
  1012.     Keypress events will be passed to the application without the window
  1013.     having input focus.  Note that the event data does not necessarily
  1014.     indicate the window which claimed the event in this case.
  1015.  
  1016.     Allow off screen
  1017.     ----------------
  1018.     The window can be opened off screen; usually (when this flag is
  1019.     cleared) the Wimp forces the window entirely on screen when first
  1020.     opened and after mode changes.
  1021.  
  1022.     Keep on screen
  1023.     --------------
  1024.     The window cannot be dragged off screen. 
  1025.  
  1026.     Ignore right extent
  1027.     -------------------
  1028.     Ignore bottom extent
  1029.  
  1030.  
  1031.  
  1032.                                     Page 14
  1033.  
  1034.  
  1035.     
  1036.  
  1037.  
  1038.                                     WINED
  1039.     ________________________________________________________________________
  1040.  
  1041.  
  1042.  
  1043.     --------------------
  1044.     I am not sure what these are for; the only noticeable difference is
  1045.     that the pointer can move outside the Adjust tool when resizing.
  1046.  
  1047.     Scroll events
  1048.     -------------
  1049.     If either of the radios is set the window receives scroll events when
  1050.     the scroll arrows are clicked.  Debounced means the mouse button has to
  1051.     be released and clicked again to reproduce an event, auto repeat means
  1052.     events are received at the same rate as the keyboard auto repeat is
  1053.     set.  Click Adjust on whichever is currently selected to deselect both
  1054.     and ignore scroll events.
  1055.  
  1056.     The following items are for editing the window’s colours.  Each icon
  1057.     (from left to right) is: colour name, abbreviated to its initials to
  1058.     save space in the dialogue box; a display of the current colour; bumper
  1059.     arrows for changing the colour by one step at a time; a pop-up menu
  1060.     button for choosing the colour from WinEd’s colour picker (see below).
  1061.  
  1062.             TF      Title bar Foreground.
  1063.             TB      Title bar Background.
  1064.             WF      Work area Foreground.
  1065.             WB      Work area Background.
  1066.             SO      Scroll bar Outer.
  1067.             SI      Scroll bar Inner.
  1068.             IF      Input focus (the colour the title bar changes
  1069.                     to when the window has input focus).
  1070.  
  1071.     Default
  1072.     -------
  1073.     Sets all the colours to their recommended default values.  This button
  1074.     doesn’t close the dialogue box.
  1075.  
  1076.     GCOL colours
  1077.     ------------
  1078.     If set the above colours are taken to be GCOL values.  This was
  1079.     originally intended for 256 colour modes and should not really be used.
  1080.      WinEd only supports colours in the usual range of 0-15 (and 255/-1 for
  1081.     transparent).
  1082.  
  1083.     Button types
  1084.     ————————————
  1085.     Button types for icons and work areas are chosen from a menu which can
  1086.     be popped up from the editing dialogue boxes.  Note that in all cases a
  1087.     click with Menu causes an event with a button state of 2 (Menu button)
  1088.     no matter what the button type of the icon/work area is.
  1089.  
  1090.     0 Never
  1091.     -------
  1092.     All clicks are ignored except Menu.
  1093.  
  1094.     1 Continuous
  1095.  
  1096.  
  1097.  
  1098.                                     Page 15
  1099.  
  1100.  
  1101.     
  1102.  
  1103.  
  1104.                                     WINED
  1105.     ________________________________________________________________________
  1106.  
  1107.  
  1108.  
  1109.     ------------
  1110.     The task is continually notified (with click events) while the pointer
  1111.     is over the icon/work area.
  1112.  
  1113.     2 Auto repeat
  1114.     -------------
  1115.     A click notifies the task; if the mouse button is held the event is
  1116.     repeated at the rate of the keyboard auto repeat setting.
  1117.  
  1118.     3 Click
  1119.     -------
  1120.     A click notifies the task without auto repeat.
  1121.  
  1122.     4 Release
  1123.     ---------
  1124.     Releasing the mouse button causes a click event.
  1125.  
  1126.     5 Double click
  1127.     --------------
  1128.     A double click notifies the task as if it was a single click.
  1129.  
  1130.     6 Click/Drag
  1131.     ------------
  1132.     As 3, but a drag causes an additional event with the button state
  1133.     multiplied by 16.
  1134.  
  1135.     7 Release/Drag
  1136.     --------------
  1137.     As 4, but can also be dragged (returns button state * 16).
  1138.  
  1139.     8 Double/Drag
  1140.     -------------
  1141.     As 5, but can also be dragged (returns button state * 16).
  1142.  
  1143.     9 Menu
  1144.     ------
  1145.     For work areas this has the same effect as 3.  For icons, moving the
  1146.     pointer over the icon selects it, moving the pointer away deselects it.
  1147.      A click notifies the task.
  1148.  
  1149.     10 Double/Click/Drag
  1150.     --------------------
  1151.     A click returns the button state * 256.
  1152.     A drag returns the button state * 16.
  1153.     A double click returns the button state * 1.
  1154.  
  1155.     11 Radio
  1156.     --------
  1157.     A click returns the button state * 1.  If over an icon the icon is
  1158.     selected.
  1159.     A drag returns the button state * 16.
  1160.  
  1161.  
  1162.  
  1163.  
  1164.                                     Page 16
  1165.  
  1166.  
  1167.     
  1168.  
  1169.  
  1170.                                     WINED
  1171.     ________________________________________________________________________
  1172.  
  1173.  
  1174.  
  1175.     12 (Reserved)
  1176.     -------------
  1177.     13 (Reserved)
  1178.     -------------
  1179.     Use is undefined.
  1180.  
  1181.     14 Writable/Drag
  1182.     ----------------
  1183.     As 15 but can also be dragged.
  1184.     Not applicable to work areas.
  1185.  
  1186.     15 Writable
  1187.     -----------
  1188.     A click causes the window to gain input focus.  If over an icon the
  1189.     caret is placed in the icon.
  1190.  
  1191.     The colour picker
  1192.     —————————————————
  1193.     This should not be confused with the RISC OS colour picker introduced
  1194.     with RISC OS 3.5.  WinEd’s colour picker is for picking Wimp colours
  1195.     and transparent where allowed.
  1196.  
  1197.     The colour picker should be treated as a menu rather than a dialogue
  1198.     box; the only reason a dialogue box is used is because it is a more
  1199.     convenient shape.  Clicking on a colour or the Transparent button
  1200.     immediately updates the field, and closes the colour picker unless
  1201.     Adjust is used.
  1202.  
  1203.     The monitor
  1204.     ———————————
  1205.     The monitor always opens at the top right of the screen.  When first
  1206.     opened only the top two fields are visible, it can be resized to show
  1207.     dimensions.  
  1208.  
  1209.     The monitor shows the following information about any window/icon under
  1210.     the pointer, provided it is in a template loaded in WinEd.
  1211.  
  1212.     Window
  1213.     ------
  1214.     The identifier of the window under the pointer.  A trailing * means it
  1215.     is an editable window, otherwise it is a preview window.
  1216.  
  1217.     Icon
  1218.     ----
  1219.     The number of the icon under the pointer, or “Work area”.
  1220.  
  1221.     Position
  1222.     -------
  1223.     The work area coordinates of each edge of the icon is shown in its
  1224.     relative position to the Position label.
  1225.  
  1226.     Size
  1227.  
  1228.  
  1229.  
  1230.                                     Page 17
  1231.  
  1232.  
  1233.     
  1234.  
  1235.  
  1236.                                     WINED
  1237.     ________________________________________________________________________
  1238.  
  1239.  
  1240.  
  1241.     ----
  1242.     The size of the icon, shown as <width> x <height>.
  1243.  
  1244.     If the pointer is over an empty bit of work area instead of an icon,
  1245.     the dimensions refer to the visible portion of the work area.  This
  1246.     information is generally the most useful, it can be used to accurately
  1247.     position icons near the visible edge of a window. 
  1248.  
  1249.     The monitor can be opened from the icon bar menu and closed with its
  1250.     close icon as a manual override, but it also opens automatically (this
  1251.     is optional) when any editable or preview windows are opened and closes
  1252.     when no editable or preview windows are open.
  1253.  
  1254.     Creating icons: the Icon picker
  1255.     ———————————————————————————————
  1256.     The icon picker is a convenient alternative to creating icons from a
  1257.     menu.  You simply drag one or more icons from the picker to where you
  1258.     want them in an editable window.  It behaves rather like an editable
  1259.     window, but most of the functions are suppressed.  The only action
  1260.     which can be carried out, apart from making selections, is to export
  1261.     icons from it to other editable windows.
  1262.  
  1263.     The icon picker always opens immediately above the right end of the
  1264.     icon bar.  Like the monitor it can be opened from the icon bar menu and
  1265.     closed with its close icon as a manual override, but it also opens
  1266.     automatically when any editable or preview windows are opened and
  1267.     closes when no editable or preview windows are open.
  1268.  
  1269.     The icon picker contains examples of most of the common types of icon,
  1270.     but it can be customised.  See the section on Customising WinEd.
  1271.  
  1272.     Work area dialogue box
  1273.     ——————————————————————
  1274.     This is for editing the size of a window’s work area, opened from an
  1275.     editable window menu or by double-clicking Adjust in a window’s work
  1276.     area.  The identifier of the window being edited is shown in the title
  1277.     bar.
  1278.  
  1279.     Work area
  1280.     ---------
  1281.     The work area coordinate field icons are arranged in a formation which
  1282.     indicates which icon refers to which edge.  New coordinates can be
  1283.     typed in or changed with the bumper arrows.
  1284.  
  1285.     Keep origin
  1286.     -----------
  1287.     This has a similar effect to the Minimise button (below), but the
  1288.     origin (X0 & Y1) coordinates are set to zero.
  1289.  
  1290.     Minimise
  1291.     --------
  1292.     This sets the values in the work area coordinate fields to the work
  1293.  
  1294.  
  1295.  
  1296.                                     Page 18
  1297.  
  1298.  
  1299.     
  1300.  
  1301.  
  1302.                                     WINED
  1303.     ________________________________________________________________________
  1304.  
  1305.  
  1306.  
  1307.     area coordinates of the portion of the window currently visible.  It is
  1308.     not recommended that the origin (X0 & Y1) coordinates are set to any
  1309.     value other than zero, hence the Keep origin button is provided.
  1310.  
  1311.     Neither the Keep origin or Minimise buttons close the dialogue box.
  1312.  
  1313.     Minimum size
  1314.     ------------
  1315.     These icons set the minimum size (both values are positive) the window
  1316.     can be dragged to with the Adjust size tool.  Zero values mean the size
  1317.     will be determined by the size of the title bar and window tools.  The
  1318.     Maximise button sets the values to the current size of the window
  1319.     (without closing the dialogue box).
  1320.  
  1321.     Update
  1322.     ------
  1323.     Updates the template data with the settings in the dialogue box.
  1324.  
  1325.     Edit icon/title dialogue box
  1326.     ————————————————————————————
  1327.     This is opened from an editable window menu or by double clicking
  1328.     Shift-Select over an editable window’s work area.  The number of the
  1329.     icon being edited or the word Title is shown in the dialogue box’s
  1330.     title bar.
  1331.  
  1332.     Like the window editing dialogue box, the shape and size of this window
  1333.     may not suit some users, but it can be customised.
  1334.  
  1335.     To edit an icon double click it with Select, to edit a title use the
  1336.     editable window menu or double click Shift-Select over the work area.
  1337.  
  1338.     Some of the icons are greyed out depending on the state of others (eg
  1339.     the Validation field if not indirected) or if they do not apply to
  1340.     title icons (eg button type, colours) and a title is being edited.
  1341.  
  1342.     Txt/sprt
  1343.     --------
  1344.     If the icon contains a text or sprite, enter the text or sprite name
  1345.     here.
  1346.  
  1347.     Text
  1348.     ----
  1349.     Sprite
  1350.     These flags determine whether the icon contains text and/or a sprite.
  1351.  
  1352.     Indirected
  1353.     ----------
  1354.     If set the icon is indirected.  It is set automatically if the text
  1355.     becomes longer than 12 characters.
  1356.  
  1357.     Validation
  1358.     ---------
  1359.  
  1360.  
  1361.  
  1362.                                     Page 19
  1363.  
  1364.  
  1365.     
  1366.  
  1367.  
  1368.                                     WINED
  1369.     ________________________________________________________________________
  1370.  
  1371.  
  1372.  
  1373.     You can enter a validation string here for indirected text icons.
  1374.  
  1375.     Max text length
  1376.     ---------------
  1377.     Enter the maximum allowed length (including terminator) of the text for
  1378.     indirected text icons.  This can be set to the length of the string in
  1379.     the Txt/sprt field by clicking the Minimise button (this doesn’t close
  1380.     the dialogue box).
  1381.  
  1382.     Btn type
  1383.     --------
  1384.     As in the Edit window dialogue box.
  1385.  
  1386.     Don’t resize
  1387.     ------------
  1388.     Update
  1389.     ------
  1390.     These both update the template data with settings from the dialogue
  1391.     box.  Update also resizes the icon if it is currently too small to
  1392.     display its data (see Resize icons dialogue box).
  1393.  
  1394.     The following icons affect the icon flags.  Each description refers to
  1395.     the flag being set.
  1396.  
  1397.     Border
  1398.     ------
  1399.     The icon has a border.
  1400.  
  1401.     H centre
  1402.     --------
  1403.     V centre
  1404.     --------
  1405.     R align
  1406.     -------
  1407.     These affect the alignment of the icon, horizontally centred,
  1408.     vertically centred and right aligned respectively.  Right alignment
  1409.     overrides horizontal centering.
  1410.  
  1411.     Filled
  1412.     ------
  1413.     The icon’s background is filled in with its background colour.
  1414.  
  1415.     Needs help
  1416.     ----------
  1417.     If the icon is deleted etc the part of the window it occupies will be
  1418.     redrawn.
  1419.  
  1420.     Allow adjust
  1421.     ------------
  1422.     If the icon is part of an Exclusive Selection Group it can be selected
  1423.     without deselecting its fellows by clicking with Adjust.
  1424.  
  1425.  
  1426.  
  1427.  
  1428.                                     Page 20
  1429.  
  1430.  
  1431.     
  1432.  
  1433.  
  1434.                                     WINED
  1435.     ________________________________________________________________________
  1436.  
  1437.  
  1438.  
  1439.     Half size
  1440.     ---------
  1441.     If the icon contains a sprite it is displayed at half size.
  1442.  
  1443.     Selected
  1444.     --------
  1445.     Shaded
  1446.     ------
  1447.     Deleted
  1448.     -------
  1449.     These are only provided for completeness, their actions should only
  1450.     really be carried out by an application using the template.  Icons are
  1451.     displayed as if these flags are clear in editable windows.
  1452.  
  1453.     ESG
  1454.     ---
  1455.     The ESG (Exclusive Selection Group) can be set to any value from 0 to
  1456.     31 by typing or using the bumper arrows.  Out of range values are
  1457.     changed to zero.
  1458.  
  1459.     Icons grouped with the same non-zero ESG can usually only be selected
  1460.     one at a time, selecting one deselects any others.
  1461.  
  1462.     Foreground colour
  1463.     -----------------
  1464.     The colour used to draw the icon’s text, and its border if not 3D.
  1465.  
  1466.     Background colour
  1467.     -----------------
  1468.     The colour used to fill the icon if filled.
  1469.  
  1470.     Editing colours is described under Edit window dialogue box.
  1471.  
  1472.     If the icon has an outline font the values for the colour fields are
  1473.     read from the L command in the validation string, if any.
  1474.  
  1475.     Outline font
  1476.     ------------
  1477.     If set the icon uses the outline font shown in the field below; fonts
  1478.     can be chosen from a menu by clicking the menu button.  The height can
  1479.     be entered in points (decimals are allowed).  The Aspect ratio is the
  1480.     ratio of width to height expressed as a percentage.
  1481.  
  1482.     Outline fonts do not seem to work in icons with validation strings
  1483.     containing the L command.
  1484.  
  1485.     Validate
  1486.     --------
  1487.     Font handles overwrite the colour fields in icon flags, therefore the
  1488.     colour data is held in an F command in the validation string.  The
  1489.     Validate button reads the colours from the fields in the dialogue box
  1490.     and ensures the validation string contains the correct L command,
  1491.  
  1492.  
  1493.  
  1494.                                     Page 21
  1495.  
  1496.  
  1497.     
  1498.  
  1499.  
  1500.                                     WINED
  1501.     ________________________________________________________________________
  1502.  
  1503.  
  1504.  
  1505.     forcing the indirected flag on if necessary.
  1506.  
  1507.     Align dialogue box
  1508.     ——————————————————
  1509.     This is opened from an editable window menu tree.  It is for aligning
  1510.     groups of icons with each other.  The top group of radio icons
  1511.     determines along which edge the icons will be aligned.
  1512.  
  1513.     Left
  1514.     ----
  1515.     The icons will all share the same left (minimum x) coordinate.
  1516.  
  1517.     H centre
  1518.     --------
  1519.     The icons will be arranged so that half their width is each side of a
  1520.     notional vertical mid-line.  This mid-line is calculated from the
  1521.     left-most or right-most mid-point of all the icons, depending on
  1522.     whether the Move left or Move right icon is selected.
  1523.  
  1524.     Right
  1525.     -----
  1526.     The icons will all share the same right (maximum x) coordinate.
  1527.  
  1528.     Top
  1529.     ---
  1530.     The icons will all share the same top (maximum y) coordinate.
  1531.  
  1532.     V centre
  1533.     --------
  1534.     The icons will be arranged so that half their height is each side of a
  1535.     notional horizontal mid-line.  This mid-line is calculated from the
  1536.     topmost or bottom-most mid-point of all the icons, depending on whether
  1537.     the Move down or Move up icon is selected.
  1538.  
  1539.     Bottom
  1540.     ------
  1541.     The icons will all share the same bottom (minimum y) coordinate.
  1542.  
  1543.     Group box & label
  1544.     -----------------
  1545.     This is only applicable if exactly two icons are selected in the
  1546.     editable window and the lower-numbered of them has a border and no text
  1547.     and the other has text and no border.  The icons will be aligned so
  1548.     that the label’s left edge 32 OS units to the right of the left edge of
  1549.     the group box and its bottom edge is 24 OS units below the top of the
  1550.     group box (ideal for labels 44 OS units high).
  1551.  
  1552.     Move
  1553.     ----
  1554.     Resize
  1555.     ------
  1556.     Icons can either be moved or resized to achieve alignment.  If Move is
  1557.  
  1558.  
  1559.  
  1560.                                     Page 22
  1561.  
  1562.  
  1563.     
  1564.  
  1565.  
  1566.                                     WINED
  1567.     ________________________________________________________________________
  1568.  
  1569.  
  1570.  
  1571.     chosen, icons are moved without changing their size.  If Resize is
  1572.     chosen, only the edge that has to be aligned is moved, thus resizing
  1573.     the icon; icons will not be allowed to become too small to be selected.
  1574.  
  1575.     Move left/down/label
  1576.     --------------------
  1577.     Move right/up/box
  1578.     -----------------
  1579.     These determine which way the icons will be moved or resized.  For
  1580.     instance if one of the horizontal alignments is selected above and Move
  1581.     left is selected all the icons will be aligned with the originally
  1582.     left-most icon.  In the special case of Group box & label these options
  1583.     determine whether the label or the box is moved.
  1584.  
  1585.     Space out dialogue box
  1586.     ——————————————————————
  1587.     Opened from an editable window menu tree, the Space out dialogue box
  1588.     can either be used to space a group of icons out from each other or a
  1589.     single icon from the edge of the visible area.
  1590.  
  1591.     The icons are sorted into order depending on their horizontal or
  1592.     vertical positions and spaced out from each other by the number of OS
  1593.     units entered in the Gap icon.  The direction radio icons determine
  1594.     which icon is used as the ‘anchor’ eg if you choose From left the
  1595.     left-most icon stays still and all the others are spaced out to its
  1596.     right.
  1597.  
  1598.     If only a single icon is selected it is spaced out from the edge of the
  1599.     visible area corresponding to the direction radio icons.
  1600.  
  1601.     Resize icons dialogue box
  1602.     —————————————————————————
  1603.     This dialogue box is for changing the size of icons, either making a
  1604.     group all the same size, making a single icon or group just large
  1605.     enough to display its data, or a single icon a specified size.  The
  1606.     resizing is carried out on the right and top edges, leaving the bottom
  1607.     left corner fixed.
  1608.  
  1609.     Minimise
  1610.     --------
  1611.     These action buttons change the width and/or height of the selected
  1612.     icon(s), making it just large enough to display its data, using fairly
  1613.     intelligent rules.
  1614.  
  1615.     The size needed for text (taking outline fonts into account) is first
  1616.     calculated, adding a few pixels to each side to satisfy Style Guide
  1617.     conventions.  Then the size needed for any sprite is calculated if
  1618.     possible.  These two sizes are combined, taking into account the icon’s
  1619.     alignment flags.  If there is a border, sufficient pixels are added,
  1620.     depending on the type of border.  If the icon still has a zero size it
  1621.     is made just large enough to click with the mouse.
  1622.  
  1623.  
  1624.  
  1625.  
  1626.                                     Page 23
  1627.  
  1628.  
  1629.     
  1630.  
  1631.  
  1632.                                     WINED
  1633.     ________________________________________________________________________
  1634.  
  1635.  
  1636.  
  1637.     Icons with ‘L’ validation commands can now also be minimised fairly
  1638.     sensibly.  The program ensures that the current width is sufficient to
  1639.     display the longest word, then makes the icon just the right size to
  1640.     preserve the current format of the text.  This does not take outline
  1641.     fonts into account; they do not work with the L command in RISC OS 3.1
  1642.     anyway.
  1643.  
  1644.     Versions 2.12 onwards ensure that icons that use the system font are
  1645.     also large enough for the current RISC PC Desktop font.  If the Desktop
  1646.     font is the System font or you are using RISC OS 3.1 Homerton.Medium
  1647.     (12pt) is used.  Note that this does not apply to L validation, but it
  1648.     is unlikely that an outline font will take more room than the System
  1649.     font for long strings.
  1650.  
  1651.     Make same size
  1652.     --------------
  1653.     This only applies to multiple selections.  All the icons can be set to
  1654.     the same width or height, either taking on the width of the narrowest
  1655.     or the widest or the height of the tallest or shortest.
  1656.  
  1657.     X & Y
  1658.     -----
  1659.     In the case of a single selection a new width (X) and/or height (Y) can
  1660.     be typed into the writable icons; press Return or click Resize to make
  1661.     the change.
  1662.  
  1663.     Frame dialogue box
  1664.     ——————————————————
  1665.     This is for placing a frame around the selected icons.  The frame can
  1666.     consist of the window’s visible area or an empty bordered icon (group
  1667.     box) with a lower number than any of the selected icons.
  1668.  
  1669.     Gap
  1670.     ---
  1671.     Enter the minimum gap (OS units) to leave between the frame and any
  1672.     icons inside it.  This varies depending on whether the frame is the
  1673.     window’s visible area (8-16 looks best) or an icon with a 3D border
  1674.     (usually R4 validation, 20 or more looks better).
  1675.  
  1676.     Visible area
  1677.     ------------
  1678.     If selected the frame is made by resizing the window’s visible area to
  1679.     fit the selection.  The window’s work area must be large enough to
  1680.     accommodate it.
  1681.  
  1682.     Icon
  1683.     ----
  1684.     If selected the frame is made by moving and resizing the icon specified
  1685.     in the adjacent writable field to make a group box.  It must satisfy
  1686.     the requirements outlined above.
  1687.  
  1688.     Allow for label
  1689.  
  1690.  
  1691.  
  1692.                                     Page 24
  1693.  
  1694.  
  1695.     
  1696.  
  1697.  
  1698.                                     WINED
  1699.     ________________________________________________________________________
  1700.  
  1701.  
  1702.  
  1703.     ---------------
  1704.     Group boxes often have a label at the top.  If this option is selected
  1705.     an extra gap (read from the writable icon, the default is 24 OS units)
  1706.     is left between the top of the frame and the topmost selected icon to
  1707.     make room for a text label.
  1708.  
  1709.     Top, Left, Right, Bottom
  1710.     ------------------------
  1711.     Only the frame’s edges indicated by which of these icons are selected
  1712.     are moved (unless the frame would become too small or have negative
  1713.     size).  This is useful because frames are often initially placed in
  1714.     relation to objects outside them and resized when their contents have
  1715.     been entered.
  1716.  
  1717.     Hints & tips
  1718.     ————————————
  1719.     Size of dialogue boxes
  1720.     ----------------------
  1721.     When designing dialogue boxes and non-scrollable windows, try to make
  1722.     sure they will fit on screen in as many modes as possible.  Mode 22
  1723.     support (768 * 576 OS units) is not strictly necessary, but you should
  1724.     at least fit your windows on a Mode 27 screen (1280 * 960 OS units). 
  1725.     The Style Guide recommends a maximum of 800 * 600 OS units for dialogue
  1726.     boxes.
  1727.  
  1728.     Positioning icons
  1729.     -----------------
  1730.     Icons with similar functions should be the same size as each other and
  1731.     aligned.  When aligning icons, some of which have double borders (eg R6
  1732.     validation), align with the inner border (use the centre alignment
  1733.     options).  If a dialogue box has several groups of icons (eg two or
  1734.     more groups of radio icons with two or more different ESG’s) place
  1735.     group boxes around them.
  1736.  
  1737.     Place action icons, particularly the default action and Cancel buttons
  1738.     aligned up the side or preferably along the bottom of dialogue boxes. 
  1739.     Position the default action button at the bottom right.
  1740.  
  1741.     Your dialogue boxes will look more attractive the more you space out
  1742.     icons, up to a point.  The larger the dialogue box, the more space you
  1743.     should leave.  The Style Guide suggests a gap of at least 8 OS units
  1744.     between icons, but 16 or more generally looks far better.
  1745.  
  1746.     Note that WinEd’s window and icon editing dialogue boxes are not spaced
  1747.     out very much, in this case it was considered more important to make
  1748.     them as small as possible.  It is also unconventional to have scrolling
  1749.     dialogue boxes unless they are a pane with the default action and
  1750.     Cancel buttons in the parent window so they are also visible.  Panes
  1751.     were used in WinEd 1.00, but were too restrictive.
  1752.  
  1753.     Writable icons
  1754.     --------------
  1755.  
  1756.  
  1757.  
  1758.                                     Page 25
  1759.  
  1760.  
  1761.     
  1762.  
  1763.  
  1764.                                     WINED
  1765.     ________________________________________________________________________
  1766.  
  1767.  
  1768.  
  1769.     The Style Guide is a bit contradictory on the subject of validation
  1770.     strings for writable icons; it says the string should be
  1771.     Ktar;Pptr_write, followed by any necessary ‘A’ command, but also says
  1772.     that pressing Return in any icon should act as a click on the default
  1773.     action button.  The above validation string causes Return to move the
  1774.     caret to the next writable icon and only causes key press events with a
  1775.     code of 13 (Return) when it is pressed in the last writable icon.  
  1776.  
  1777.     You would expect that you could arrange for your application to receive
  1778.     all Return key events by using Kta instead of Ktar, but it isn’t that
  1779.     simple.  There is an OS ‘feature’ (in RISC OS 3.1 at least) which
  1780.     causes the presence of ‘t’ or ‘a’ in validation commands to act as if
  1781.     ‘r’ is also present.
  1782.  
  1783.     One fix is to use Ktan and receive all key events, but then you should
  1784.     strictly filter out keys trapped by your application before passing
  1785.     them on with Wimp_ProcessKey.  However, passing on all keys should not
  1786.     do any harm.
  1787.  
  1788.     In its own icons WinEd does away with the ‘K’ validation command
  1789.     altogether and handles the up and down cursor keys and (Shift-) Tab
  1790.     with its own code.  This way it can also confine the caret to icons in
  1791.     the same ESG in RISC OS 3.1 as well as 3.5.
  1792.  
  1793.     In RISC OS 3.1 the ‘A’ validation command must be the last command in
  1794.     the string or subsequent commands will not work. This appears to have
  1795.     been fixed in RISC OS 3.6, but I am not sure about 3.5.
  1796.  
  1797.     Outline fonts
  1798.     -------------
  1799.     Outline fonts in icons should generally be avoided.  Apart from the
  1800.     latest versions of RISC OS now being able to automatically use outline
  1801.     fonts in all icons there are a couple of bugs.
  1802.  
  1803.     In RISC OS 3.1 using an outline font in the title bar of a window
  1804.     causes a terrible mess if a customised title bar (eg NewLook’s 3D one)
  1805.     is used.
  1806.  
  1807.     In RISC OS 3.5 using an outline font in slabbing icons (R5 and R6
  1808.     validation) causes the default desktop font to be reset or disappear or
  1809.     something.
  1810.  
  1811.     In RISC OS 3.1 at least, outline fonts seem to be incompatible with ‘L’
  1812.     validation commands.
  1813.  
  1814.     Modifying other people’s templates
  1815.     ----------------------------------
  1816.     Be careful when modifying other people’s templates; always make sure
  1817.     you have a backup of the original file.  Some programs may object to
  1818.     changes in their template files eg adding outline fonts, changing the
  1819.     order of windows in the file, and increasing the amount of indirected
  1820.     data.  Never renumber any icons.
  1821.  
  1822.  
  1823.  
  1824.                                     Page 26
  1825.  
  1826.  
  1827.     
  1828.  
  1829.  
  1830.                                     WINED
  1831.     ________________________________________________________________________
  1832.  
  1833.  
  1834.  
  1835.  
  1836.     Deleting icons
  1837.     --------------
  1838.     Unlike many template editors, when deleting an icon in WinEd its
  1839.     definition is entirely removed from the template, subsequent icons are
  1840.     renumbered to ‘fill the gap’.
  1841.  
  1842.     The Delete flag is best avoided, having deleted icons in your templates
  1843.     can cause confusion when using other template editors. 
  1844.  
  1845.     Customising WinEd
  1846.     —————————————————
  1847.     As well as the Choices dialogue box WinEd can be customised by editing
  1848.     its own template file; this is the file called ‘Templates’ within the
  1849.     !WinEd directory.
  1850.  
  1851.     WinEd can not handle outline fonts in its own template file, but
  1852.     changing the order of windows and the amount of indirected data is not
  1853.     a problem.
  1854.  
  1855.     Some windows you may wish to customise are:
  1856.  
  1857.     Icon picker
  1858.     -----------
  1859.     You can put any icons you want in here (but no outline fonts),
  1860.     depending on which icons you like to create most often.  Its initial
  1861.     position depends on its template.
  1862.  
  1863.     Monitor
  1864.     -------
  1865.     The monitor’s initial position depends on its template.
  1866.  
  1867.     Edit window dialogue box
  1868.     ------------------------
  1869.     Edit icon dialogue box
  1870.     ----------------------
  1871.     The shape, size and initial positions of these dialogue boxes may be
  1872.     inconvenient to you so you may wish to rearrange the icons.  Do not
  1873.     renumber or delete any icons; if you want to get rid of any
  1874.     non-functional icons such as group boxes and labels, temporarily
  1875.     enlarge the work area and move them out of the way.
  1876.  
  1877.     Tool panes
  1878.     ----------
  1879.     You can customise these by editing the WinTools and BrowTools templates
  1880.     and/or the Sprites and Sprites22 files.  Note that you will have to
  1881.     disable the Editable window tool icons option to avoid inadvertently
  1882.     resizing the current browser tool bar.  You can make these panes any
  1883.     size you like, within reason.  If you design some that you think are
  1884.     better than mine, which are perhaps a little small, please let me know.
  1885.  
  1886.     Many of the default values shown in writable icons etc in the dialogue
  1887.  
  1888.  
  1889.  
  1890.                                     Page 27
  1891.  
  1892.  
  1893.     
  1894.  
  1895.  
  1896.                                     WINED
  1897.     ________________________________________________________________________
  1898.  
  1899.  
  1900.  
  1901.     boxes are determined by the values in WinEd’s templates.
  1902.  
  1903.     If you alter WinEd’s templates be sure to back up the original file;
  1904.     WinEd must be distributed with this Templates file.
  1905.  
  1906.     Bug reports & suggestions
  1907.     —————————————————————————
  1908.     I hope that you will find WinEd to be reliable; I would not release it
  1909.     with known bugs.  However, no application is entirely bug free and this
  1910.     is still a sufficiently early version of WinEd to be considered beta,
  1911.     so you are advised to keep backups and save your work regularly.
  1912.  
  1913.     Bug reports will be welcome from all users, even if you have not
  1914.     registered (yet).  Suggestions will be more welcome from registered
  1915.     users; please do not say things like,  “I’ll only register if you add
  1916.     such and such,” if a feature is really worth adding I’ll add it.
  1917.  
  1918.     If you do find a bug please do your best to inform me of the exact
  1919.     circumstances that cause it, ideally sending template files on disc or
  1920.     by email if they seem to be triggering a problem.  Where possible I
  1921.     will personally send you a corrected upgrade if the bug is serious and
  1922.     a corrected version is not already in circulation.
  1923.  
  1924.     Acknowledgements
  1925.     ————————————————
  1926.     WinEd was written in C (compiled by Acorn C Release 5) with extensive
  1927.     use of DeskLib.  DeskLib is a set of freeware C libraries written by
  1928.     Jason Williams and many others.  All C programmers should consider this
  1929.     an essential replacement for RISC_OSLib.
  1930.  
  1931.     The text editor used was !Zap, an excellent PD program written by
  1932.     Dominic Symes with extensions by several other skilled programmers.
  1933.  
  1934.     The templates were initially created with TemplEd, a PD template
  1935.     editor.  I consider this to be WinEd’s main rival and I have aimed to
  1936.     improve on it in every aspect.
  1937.  
  1938.     I would like to thank David Holden of APDL for his advice from one
  1939.     shareware author to another and for some useful suggestions about WinEd.
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.                                     Page 28
  1956.