CIRCLE_OBJECT	FN
	<see CIRCLE>
	As CIRCLE but returns a pointer to
	a graphics object (does not redraw).

	Additional info:
	  +32  colour (&bbggrr00)
	  +36  flags
	       bit 0: filled

	Centre and radius are calculated from
	bounding box.
ENDHELP
CIRCLEFILL_OBJECT	FN
	<see CIRCLEFILL>
	As CIRCLEFILL but returns a pointer to
	a graphics object (does not redraw).

	Addtional info:
	  +32  colour (&bbggrr00)
	  +36  flags
	       bit 0: filled

	Centre and radius are calculated from
	bounding box.
ENDHELP
CLEAR_OBJECT	PROC
	<object>
	Removes a graphics object from a window
	and redraws the space it occupied.
ENDHELP
CREATEGFXOBJECT	FN
	<window>, <type>, <additional space>
	Creates an empty graphics object with
	a certain amount of given space.
	Returns a pointer to the object:

	  +0  Ptr to next item
	  +4  Ptr to previous item
	  +8  Window containing object
	 +12  Object type
	 +16  Minimum X of bounding box
	 +20  Minimum Y
	 +24  Maximum X
	 +28  Maximum Y
	 +32  ... Additional data

	All standard items *except* the
	bounding box are filled in by this
	command.
ENDHELP
DRAW_OBJECT	FN
	<see DRAW>
	As DRAW but returns a pointer to
	a graphics object (does not redraw).

	Additional info:
	  +32  pointer to Draw file
	  +36  size of Draw file
	  +40  ratio * scale * 6.5536
	  +44  scale * 655.36
ENDHELP
ELLIPSE_OBJECT	FN
	<see ELLIPSE>
	As ELLIPSE but returns a pointer to
	a graphics object (does not redraw).

	Additional info:
	  +32  colour (&bbggrr00)
	  +36  flags
	       bit 0: filled
	  +40  angle * 100
	  +44  x coordinate of centre
	  +48  y coordinate of centre
	  +52  length of major axis
	  +56  length of minor axis
ENDHELP
ELLIPSEFILL_OBJECT	FN
	<see ELLIPSEFILL>
	As ELLIPSEFILL but returns a pointer
	to a graphics object (does not
	redraw).

	Additional info:
	  +32  colour (&bbggrr00)
	  +36  flags
	       bit 0: filled
	  +40  angle * 100
	  +44  x coordinate of centre
	  +48  y coordinate of centre
	  +52  length of major axis
	  +56  length of minor axis
ENDHELP
INTERSECTS	FN
	<bbox 1>, <bbox 2>
	Returns TRUE if the bounding boxes
	(as defined in CREATEGFXOBJECT) passed
	intersect or FALSE otherwise.
ENDHELP
LINE_OBJECT	FN
	<see LINE>
	As LINE but returns a pointer to
	a graphics object (does not redraw).

	Additional info:
	  +32  colour (&bbggrr00)
	  +36  x0 coordinate
	  +40  y0 coordinate
	  +44  x1 coordinate
	  +48  y1 coordinate
ENDHELP
RECTANGLE_OBJECT	FN
	<see RECTANGLE>
	As RECTANGLE but returns a pointer to
	a graphics object (does not redraw).

	Additional info:
	  +32  colour (&bbggrr00)
	  +36  flags
	       bit 0: filled 
ENDHELP
RECTANGLEFILL_OBJECT	FN
	<see RECTANGLEFILL>
	As RECTANGLEFILL but returns a pointer
	to a graphics object (does not
	redraw).

	Additional info:
	  +32  colour (&bbggrr00)
	  +36  flags
	       bit 0: filled 
ENDHELP
REDRAWGFXOBJECT	PROC
	<object>
	Redraws the individual graphics object,
	this will need to be called after using
	an _OBJECT call for the new element
	to be displayed.
ENDHELP
REMOVEGFXOBJECT	PROC
	<object>
	Removes the graphics object from the
	internal linked list but does not
	redraw the window.
ENDHELP
SPRITE_OBJECT	FN
	<see SPRITE>
	As SPRITE but returns a pointer to
	a graphics object (does not redraw).

	Additional info:
	  +32  pointer to sprite file
	  +36  pointer to sprite
	  +40  scale * 100 (Xm & Ym)
	  +44  1000000 / ratio (Xd & Yd=10000)
	  +48  (x-eigenvalue * &10000) +
	       y-eigenvalue of sprite's mode
	  +52  flags for OS_SpriteOp, 512+56
ENDHELP
TEXT_OBJECT	FN
	<see TEXT>
	As TEXT but returns a pointer to
	a graphics object (does not redraw).

	Additional info:
	  +32  colour (&bbggrr00)
	  +36  Chr(13) terminated text
ENDHELP
TASKINFO	FN
	<expr>
	Returns an integer whose value depends
	upon <expr>:
	  &00 Wimp version    &08 Start of heap
	  &01 Pointer to dir  &09 Size of heap
	  &02 Sprite area     &0A
	  &03 Iconbar handle   |  Reserved
	  &04 Task handle     &99
	  &05 Slot size (K)   &A0 Info window
	  &06 Wimp block      &A1 Save window
	  &07 Ptr to pollword &A2 Error window
ENDHELP
ADDITEM		PROC
	<menu>, <text>, <ctrl>
	Adds a new menu item to <menu> with text
	specified in <text>.
	
	<ctrl> specifies the item's flags:
	  T  Ticked           S(handle)     Sublink
	  G  Greyed-out       W(addr, len)  Writable
	  L  Line after item
ENDHELP
CLAIM		FN
	<expr>
	Returns a pointer to a block of memory of the
	passed size.
	
	If the memory could not be allocated then
	NULL (-1) is returned.
	
	The memory can be returned using RELEASE.
ENDHELP
CLAIMMORE	PROC
	<addr>, <expr>
	Increases (or decreases if <expr> < 0) the
	size of the block of memory pointed to by
	<addr>.
	
	The block of memory may have to be moved to
	complete the operation and <addr> will be
	updated as necessary.
ENDHELP
CLEARALL	PROC
	<window>, <expr>
	Sets all the writable icons in the passed
	window to be filled with <expr>.
	
	If <window> does not contain any writable
	icons then no changes will be made to the
	window.
ENDHELP
COPYICON	FN
	<window>, <icon>, <X>, <Y>
	Copies the specified icon to the new
	coordinates (which specify the top-left
	corner) and returns the new icon handle.
ENDHELP
DELETEICON	PROC
	<window>, <icon>
	Deletes the specified icon and redraws the
	window if necessary.
ENDHELP
DELETEMENU	PROC
	<menu>
	Deletes the specified menu and returns the
	memory used back to the system.
ENDHELP
GROUPSTATE	FN
	<window>, <esg>
	Returns the icon handle of the first icon
	selected in the specified E.S.G. (Exclusive
	Selection Group).
	
	-1 is returned if no icon is selected.
ENDHELP
HEAPSIZE	FN
	<addr>
	Returns the size of the memory in the passed
	block.
ENDHELP
HIDEICON	PROC
	<window>, <icon>, <expr>
	If <expr> is true (ie. non-zero) then the
	specified icon is hidden from the window,
	else it is unhidden.
	
	If icons are copied or moved when icons are
	hidden then problems may result.
	
	The state can be read using ICONHIDDEN.
ENDHELP
ICONBAR		FN
	<sprite>, <text>, <side>, <priority>
	Creates a new icon on the iconbar and returns
	its handle.

	<side> can be:
	  -1  Right side of icon bar (applications)
	  -2  Left side of icon bar (devices)
	  -3  Left of icon in <priority>
	  -4  Right of icon in <priority>
	  -5  Left, high priority (left of similar)
	  -6  Left, low priority (right of similar)
	  -7  Right, low priority (left of similar)
	  -8  Right, high priority (right of similar)

	Example priorities:
	  Task Manager &60000000  !Help     &40000000
	  Palette      &20000000  Apps      0
	
	  Hard Disks   &70000000  Floppies  &60000000
	  'Apps' icon  &50000000  RAM Disc  &40000000
	  Ethernet     &30000000  Econet    &20000000
	  Other FSs    &10000000  Printers  &0F000000
	  Tiny dirs    &0E000000
ENDHELP
ICONHIDDEN	FN
	<window>, <icon>
	Returns TRUE if the icon has been hidden
	using HIDEICON or FALSE if it is visible.
ENDHELP
ICONINFO	PROC
	<window>,<icon>,<X>,<Y>,<wdth>,<hght>
	Returns information on the specified icon's
	position (top-left corner), width and height
	respectively.
ENDHELP
ICONSHADED	FN
	<window>, <icon>
	Returns TRUE if the icon has been shaded (and
	so is unselectable) using SHADEICON or FALSE
	if it has not.
ENDHELP
ITEMSHADED	FN
	<menu>, <item>
	Returns TRUE if the item has been shaded (and
	so is unselectable) in the control string
	(using 'G') otherwise FALSE if it has not.
ENDHELP
ITEMTICKED	FN
	<menu>, <item>
	Returns TRUE if the item has been ticked in
	the control string (using 'T') otherwise
	FALSE if it has not.
ENDHELP
MOVEICON	PROC
	<window>, <icon>, <X>, <Y>
	Moves the icon to the position specified
	(top-left corner).
	
	Difficulties may be encountered if icons have
	been hidden or shaded.
ENDHELP
NEWMENU		FN
	<expr>
	Creates a new (empty) menu structure with
	the title set as <expr> and returns the
	menu handle.
ENDHELP
OPENMENU	PROC
	<menu>, <X>, <Y>
	Opens <menu> at the specified OS coordinates.
	
	If <X> or <Y> is -1 then that value is
	changed to be the current pointer position.
ENDHELP
OPENPOPUP	PROC
	<menu>, <window>, <icon>
	Opens <menu> as a popup menu from the
	specified icon.
	
	The menu is opened with its top-left at the
	icon's top-right.
ENDHELP
READICON	FN
	<window>, <icon>
	Returns the string contents of the specified
	icon.
ENDHELP
READSTATE	FN
	<window>, <icon>
	Returns TRUE if the icon has been selected
	by the user or using SETSTATE, otherwise it
	returns FALSE.
ENDHELP
RELEASE		PROC
	<addr>
	Frees the memory pointed to by <addr> back to
	the system.
	
	<addr> must be a variable and will be reset
	to NULL (-1).
ENDHELP
RESIZEICON	PROC
	<window>, <icon>, <dX>, <dY>
	Resizes the specified icon by the changes
	passed in <dX> and <dY>.
	
	If <dX> > 0 then the right hand edge of the
	icon will move right, otherwise it will move
	left. And similarly for <dY> (bottom edge).
ENDHELP
SETICON		PROC
	<window>, <icon>, <expr>
	Sets the text (or sprite if a sprite only
	icon) of the specified icon to <expr>.
ENDHELP
SETICONCOLOUR	PROC
	<window>, <icon>, <fg>, <bg>
	Sets the colours of the specified icon to
	those passed in <fg> and <bg>.
	
	If the colour is passed as -1 then that
	colour is not changed.
ENDHELP
SETSTATE	PROC
	<window>, <icon>, <expr>
	If <expr> is true (ie. non-zero) then the
	icon is selected otherwise it is unselected.
	
	The current state can be read using
	READSTATE.
ENDHELP
SETVALID	PROC
	<window>, <icon>, <expr>
	Sets the validation string of the specified
	icon to <expr>.
	
	If LEN(<expr>) > current length then <expr>
	is truncated as necessary.
ENDHELP
SHADEICON	PROC
	<window>, <icon>, <expr>
	If <expr> is true (ie. non-zero) then the
	specified icon is shaded (and so
	unselectable) otherwise it is unshaded.
	
	The current state can be read using
	ICONSHADED.
ENDHELP
CHANGEITEM	PROC
	<menu>, <item>, <text>, <ctrl>
	Changes either the text and/or the control
	string for the specified menu item (starting
	at 0).
	
	If the value is "" then that value is not
	changed, hence to blank either the control
	string or text use " ".
ENDHELP
CENTREWIN	PROC
	<window>
	Moves <window> to the centre of the screen
	and opens it (or brings it to the top if
	already open).
ENDHELP
CLOSEWINDOW	PROC
	<window>
	Closes <window> if the "Window closing"
	event is undefined or returns true.

	Also closes any windows linked to it.
ENDHELP
LIMIT		PROC
	<window>
	Limits the mouse pointer to the visible
	workarea of <window>.

	If <window> = -1 then the pointer is released
	back to the whole screen.
ENDHELP
LINK		PROC
	<window>, <main>, <X>, <Y>
	Links <window> to <main> at the offsets
	specified. This means that when <main> is
	opened, closed, moved or iconised then
	<window> will open, close, move or close
	respectively.

	If <X> = -1 then the X position from the
	"Templates" file is used instead, and
	similarly for <Y>.
ENDHELP
LOADTEMPLATE	FN
	<file>, <name>
	Returns the window handle of the new window
	created when window <name> is loaded from the
	"Templates" file <file>.

	Any icons which have been named can be
	accessed using <name>_<icon>.
ENDHELP
MOVEWINDOW	PROC
	<window>, <X>, <Y>
	Moves the top-left corner of <window> to
	the OS coordinates specified in <X> and <Y>.
ENDHELP
OPENQUERY	FN
	<window>
	Returns TRUE if <window> is open, or FALSE if
	it is not.
ENDHELP
OPENWINDOW	PROC
	<window>
	Opens <window> in its last open position (or
	the position in the "Templates" file if not
	previously opened) if the "Window opening"
	event is undefined or returned true.
ENDHELP
READTITLE	FN
	<window>
	Returns the current title of <window>.
ENDHELP
REDRAW		PROC
	<window>
	Redraws the contents of <window> and ensures
	it is upto date.

	Not normally needed as WimpWorks takes care
	of all graphics handling but may occasionally
	be useful.
ENDHELP
SETSIZE		PROC
	<window>, <width>, <height>
	Changes the size of <window> to the specified
	dimensions (OS coordinates).

	If the window is open then the visible size
	is also changed as well as the total size.

	If a dimension = -1 then that size is not
	changed.
ENDHELP
SETTITLE	PROC
	<window>, <expr>
	Sets the title of <window> to <expr>. If
	<expr> is longer than the maximum length then
	it is cropped to fit.

	Note, <window> must have an indirected title.
ENDHELP
UNLINK		PROC
	<window>, <main>
	Detaches <window> from <main>, but does not
	close it if they are open.

	They can be reattached using LINK.
ENDHELP
WINDOWPOS	PROC
	<window>,<X>,<Y>,<scrollX>,<scrollY>
	Fills the variables with the current values
	of <window>.

	The values are:
	  <X>, <Y>  OS coords of top-left of position
	  <scrollX> Current value of horiz. scrollbar
	  <scrollY> Current value of vertical scroll
ENDHELP
WINDOWSIZE	PROC
	<window>, <width>, <height>
	<width> and <height> are filled with the
	current size of <window> on screen (OS
	coordinates).
ENDHELP
AFTER		PROC
	<time>, <subroutine>
	After <time> centiseconds <subroutine> is
	called just once (cf EVERY in which the
	routine is called regularly).

	<subroutine> may be a procedure or function.
ENDHELP
BUSYOFF		PROC

	If BUSYON has been called then the "Null"
	event is enabled. This disables it again.
ENDHELP
BUSYON		PROC

	Enables the "Null" event which is called
	as often as possible when there are no
	system events to take care of. Can be
	disabled using BUSYOFF.

	"Null" is disabled by default.
ENDHELP
FULLNAME	FN
	<file>
	Returns the canonicalised filespec of <file>,
	eg. FULLNAME("$.File") could be "ADFS::HDisk.
	$.File"
ENDHELP
CEILING		FN
	<expr>
	Returns the integer ceiling of <expr>, ie.
	<expr> is rounded up.

	The equivalent function, FLOOR, is performed
	by INT.
ENDHELP
CLOSEDOWN	PROC

	Quits the application if the "Closing down"
	event is undefined or returns true.
ENDHELP
CLOSEMSGBOX	PROC
	<expr>
	Closes the extended message box if open and
	it will return the value of <expr>.
ENDHELP
ENCODE		FN
	<expr>
	Returns the string <expr> encoded into a
	non-unique integer.
	
	Although the number is non-unique the values
	are well distributed and clashes will be rare
	when applied to most strings.
ENDHELP
EVERY		PROC
	<time>, <subroutine>
	Calls <subroutine> approximately every <time>
	centiseconds.

	<subroutine> may be a procedure or function.
ENDHELP
GETCARET	PROC
	<window>, <icon>, <position>
	Fills the variables <window>, <icon> and
	<position> with the values relevant to the
	current position of the caret (cursor), ie.
	where text would appear when typed.

	<window> will be -1 if the caret is not
	visible. <position> is the position of the
	caret within the icon's string.

ENDHELP
LCASE		FN
	<expr>
	Returns <expr> as a lowercase string, ie.
	any uppercase characters are changed, others
	are left alone.

	The converse is performed by UCASE.
ENDHELP
LEAFNAME	FN
	<filespec>
	Returns just the filename of <filespec>, ie.
	LEAFNAME("$.File") is "File".
ENDHELP
LOADACK		PROC

	If a file has been double clicked or dragged
	to your application, LOADACK should be called
	as soon as possible after you have decided
	that you do not want other applications to
	be informed.

	Once POLL has been called then it is too
	late so if you need use a message box use
	STDBOX.
ENDHELP
LTRIM		FN
	<expr>
	Returns <expr> with any leading whitespace
	(spaces or tabs) removed. Trailing whitespace
	can be removed using RTRIM and both can be
	removed using TRIM.
ENDHELP
MEMCOPY		PROC
	<source>, <dest>, <len>
	Copies <len> bytes from <source> to <dest>.
	(<source> and <dest> may be overlapping)
ENDHELP
MESSAGE		FN
	<txt>,<title>,<spr>,<dflt>,<b>,<c>,<d>
	Opens a multitasking message box with the
	following properties:
	  <txt>   Text to use as the message
	  <title> Title of the window
	  <spr>   Lower sprite to use, if cannot be
	          found then "error" is used.
	  <dflt>  Text of default button (RETURN/F5)
	  <b>     Text of next button (ESCAPE/F4)
	  <c>     Text of third button (F3)
	  <d>     Text of final button (F2)

	If a button's text is "" then that button is
	hidden. <dflt> being selected will return 1,
	<b> will return 2 and so on.

	The sprite can come from the Wimp sprite pool
	or the "Sprites" file. The upper sprite will
	be the application sprite or "switcher" if
	that cannot be found.
ENDHELP
OSVAR		FN
	<expr>
	Returns the contents of the string system
	variable held in <expr>. "" is returned if
	the variable does not exist.
ENDHELP
POLL		FN

	Returns the action code returned from
	Wimp_Poll after all the system events have
	been taken care of.

	Can be used inside a loop to ensure that
	your application multitasks.
ENDHELP
ROUND		FN
	<expr>, <places>
	Returns <expr> rounded off to <places>
	decimal places.
ENDHELP
RTRIM		FN
	<expr>
	Returns <expr> with any trailing whitespace
	(spaces or tabs) removed. Leading whitespace
	can be removed using LTRIM and both can be
	removed using TRIM.
ENDHELP
SETCARET	PROC
	<window>, <icon>, <position>
	Places the caret (cursor) in the specified
	icon at index <position> within the icon.

	If a value is -1 then it has special meaning:
	  <window>   Hide caret
	  <icon>     Background of window
	  <position> End of string
ENDHELP
SHELL		PROC
	<expr>
	Starts a new Wimp task by executing the
	command <expr>.

	Returns when the new task completes or calls
	Wimp_Poll - whichever is sooner.
ENDHELP
STDBOX		FN
	<text>, <title>, <flags>
	Opens a standard system message box (which is
	non-multitasking) and returns the button
	pressed (1 = OK, 2 = Cancel).

	<flags> consists of:
	 Bit  Meaning when set
	  0   "OK" box
	  1   "Cancel" box
	  2   Highlight Cancel (or OK if no Cancel)
	  4   Don't prefix <title> with "Error from "
	  5   Return immediately with 0 and box open
	  6   Simulate click in box according to 0-1
	  7   Don't beep
	  8   Use categories (not supported)
	 9-11 Category (see PRMs or StrongHelp)
ENDHELP
SURE		FN
	<text>, <title>
	Opens a multitasking "OK"/"Cancel" box and
	returns TRUE if OK selected or FALSE if
	Cancel is.

	Uses the "question" sprite if present.
ENDHELP
SYSDATE		FN

	Returns the system date in the form:
	  dd mon yyyy
ENDHELP
SYSTIME		FN

	Returns the system time in the form:
	  hh:mm:ss
ENDHELP
TRANSLATE	FN
	<expr>, <source>, <dest>
	Converts any characters from <source> in
	<expr> to the corresponding character in
	<dest>, ie.
	  TRANSLATE("ABCD","BC","CB") = "ACBD"

	If there is no corresponding character in
	<dest> then the character is left unchanged.
ENDHELP
TRIM		FN
	<expr>
	Returns <expr> with any leading or trailing
	whitespace (spaces or tabs) removed. Leading
	whitespace can be removed with LTRIM and
	trailing with RTRIM.
ENDHELP
UCASE		FN
	<expr>
	Returns <expr> with any lowercase letters
	converted to uppercase and any others left
	alone.

	LCASE can be used to convert uppercase to
	lower.
ENDHELP
WARNING		PROC
	<text>, <title>
	Opens a multitasking box with just an "OK"
	button.

	Uses the "information" sprite if present.
ENDHELP
WGET		FN
	<file>
	Returns the next 4-byte word from <file> and
	increments the current pointer (readable
	using PTR#<file>).
ENDHELP
WPUT		PROC
	<file>, <word>
	Puts the 4-byte word <word> into <file> at
	the current position (writable using
	PTR#<file>).
ENDHELP
ZSTRING		FN
	<expr>
	Returns the ctrl-terminated (< 31) string
	starting at <expr>.
ENDHELP
ENDDRAG		PROC

	Ends the current drag operation, if one is
	in progress.
ENDHELP
STARTDRAG	PROC
	<type>,<subr>,<window>,<X0>,<Y0>,...
	Starts a new drag operation (ending any
	currently in progress). The full syntax is:
	  <type>    Type of drag: 1 fixed box
	                          2 rubber box
	                          3 reserved
	                          4 sprite
	  <subr>    Subroutine to call when drag
	            complete, parameters must be:
	            <subr>(x0, y0, x1, y1)
	  <window>  Window to base coordinates on or
	            -1 if absolute
	  <X0>,<Y0> Top-left of start position
	  <width0>  Width of start box
	  <height0> Height of start box
	  <X1>,<Y1> Top-left of bounding box
	  <width1>  Width of bounding box
	  <height1> Height of bounding box
	  <param>   Extra parameters, eg. sprite name

	If all the bounding box points are 0 then
	the bounding box is taken to be the screen.
ENDHELP
HOUROFF		PROC

	Decreases the number of hourglasses switched
	on - if the number = 0 then the pointer is
	restored to normal.
ENDHELP
HOURON		PROC

	Increases the number of hourglasses currently
	switched on.
ENDHELP
HOURPERCENT	PROC
	<current>, <maximum>
	Shows the percentage of <current> within
	<maximum> on the hourglass.

	If <current> and <maximum> are both 0 then
	the percentage is no longer displayed.
ENDHELP
HOURSMASH	PROC

	Sets the number of current hourglasses
	to 0 and resets the pointer shape.
ENDHELP
COMMAND		FN
	<task>, <command>
	Returns the unique reference number of
	the ActiveApps command.

	If <task> = "" then all applications will
	receive the command.

	All ActiveApps applications will respond to
	the following commands:
	  Ping  Replies with "Pong"
	  Quit  Equivalent to selecting "Quit" from
	        the Task Manager
	  KILL  Should exit immediately, performing
	        minimal tidying up

	In addition WimpWorks 2 applications will
	recognise "Exec" and will execute the
	tokenised Basic command passed.
ENDHELP
EXECCMD		PROC
	<expr>
	Executes <expr> as a tokenised Basic string,
	or if starts with PROC or FN then will
	tokenise the subroutine call.

	To assign a variable no tokenisation is
	necessary, ie. EXECCMD("global_var%=42")
ENDHELP
REDEFINE	PROC
	<old>, <new>, <type>
	Redefines the name of the function (<type> =
	&A4) or procedure (<type> = &F2) <old> to
	<new> allowing you to supply your own new
	subroutine which may call the original by
	calling <new>.
ENDHELP
REPLY		PROC
	<task>, <ref>, <reply>
	Sends an ActiveApps reply to the specified
	task (name) with reference <ref>.
ENDHELP
TASKHANDLE	FN
	<task>
	Returns the numeric system task handle of the
	specified task. <task> must be identical to
	the name in the Task Manager's task list.

	If there is more than one task with the same
	name the handle will be that of the first
	task.
ENDHELP
TASKNAME	FN
	<task handle>
	Takes <task handle> and returns the textual
	task name of the task as it appears in the
	Task Manager's task list.
ENDHELP
SUBST		FN
	<token>, <%0>, <%1>, <%2>, <%3>
	Returns <token> with the parameters %0-%3
	replaced with the relevant string.

	<token> is looked for in the "Messages" file
	and "" is returned if it could not be found.
ENDHELP
TOKEN		FN
	<token>
	Returns <token> from the "Messages" file
	without substitution. "" is returned if it
	could not be found.
ENDHELP
CLOSESAVE	PROC

	Closes the save box if open.
ENDHELP
OPENSAVE	PROC

	Opens the save box at the current pointer
	position or moves it there if it is already
	open.
ENDHELP
SETSAVE		PROC
	<expr>, <sprite>
	Sets the default filename (<expr>) and sprite
	to show and drag (<sprite>) in the save box
	when next opened using OPENSAVE or from a
	menu.
ENDHELP
MAKESLIDER	PROC
	<window>, <icon>
	Informs WimpWorks that the icons <icon> and
	<icon>+1 form a slider, where <icon> is the
	background and <icon>+1 the slider itself.

	The system will then take care of updating
	the slider automatically and whilst the bar
	is being dragged your task will receive
	"Slider changed" events.
ENDHELP
READSLIDER	FN
	<window>, <icon>
	Returns the current value of the slider in
	the range 0-100 representing the percentage
	of the slider to the right.

	The value can be set using SETSLIDER or by
	the user physically dragging the bar.
ENDHELP
SETSLIDER	PROC
	<window>, <icon>, <expr>
	Sets the value of the slider to <expr>, if it
	is in the range 0-100, representing the
	percentage of the slider to the right.

	The value can be read using READSLIDER and
	is passed in the "Slider changed" event.
ENDHELP
CIRCLE		PROC
	<window>, <X>, <Y>, <radius>, <colour>
	Draws a circle outline in <window> centred at
	<X>, <Y> with 24-bit colour <colour>.

	24-bit colours are of the format:
	  &BBGGRR00, eg. &FF00FF00 is magenta.
ENDHELP
CIRCLEFILL	PROC
	<window>,<X>,<Y>,<radius>,<colour>
	Draws a filled circle in <window> centred at
	<X>, <Y> with 24-bit colour <colour>.

	24-bit colours are of the format:
	  &BBGGRR00, eg. &FF00FF00 is magenta.
ENDHELP
CLWIN		PROC
	<window>
	Clears all the graphics (not icons) in
	<window> and refreshes the screen if the
	window is open.
ENDHELP
DRAW		PROC
	<win>,<X>,<Y>,<ratio>,<scl>,<mem>,<size>
	Places the Draw file pointed to by <mem> of
	length <size> bytes in <win> with top-left
	corner at <X>, <Y> and aspect ratio <ratio>
	and scale <scl> (both are percentages).

	<ratio> is the horizontal size:vertical size
	ratio - hence if <ratio> = 50 (ie. 50%) then
	the picture will be squashed to half size in
	the horizontal direction.
ENDHELP
ELLIPSE		PROC
	<win>,<X>,<Y>,<maj>,<min>,<ang>,<col>
	Draws an ellipse outline in <win> with the
	top-left of the bounding box at <X>, <Y> and
	the lengths of the major and minor axes in
	<maj> and <min> respectively.

	<ang> is the angle of the ellipse from the
	horizontal.

	24-bit colours are of the format:
	  &BBGGRR00, eg. &FF00FF00 is magenta.
ENDHELP
ELLIPSEFILL	PROC
	<win>,<X>,<Y>,<maj>,<min>,<a>,<c>
	Draws a filled ellipse in <win> with the top-
	left of the bounding box at <X>, <Y> and the
	lengths of the major and minor axes in <maj>
	and <min> respectively.

	<a> is the angle of the ellipse from the
	horizontal.

	24-bit colours (<c>) are of the format:
	  &BBGGRR00, eg. &FF00FF00 is magenta.
ENDHELP
LINE		PROC
	<window>,<X0>,<Y0>,<X1>,<Y1>,<colour>
	Draws a line in <window> from <X0>, <Y0> to
	<X1>, <Y1> in the 24-bit colour <colour>.

	24-bit colours are of the format:
	  &BBGGRR00, eg. &FF00FF00 is magenta.
ENDHELP
RECTANGLE	PROC
	<window>,<X>,<Y>,<wdth>,<hght>,<col>
	Draws a rectangle outline in <window> with
	the top-left corner at <X>, <Y> and the
	width and height in <wdth> and <hght>
	respectively.

	24-bit colours are of the format:
	  &BBGGRR00, eg. &FF00FF00 is magenta.
ENDHELP
RECTANGLEFILL	PROC
	<win>,<X>,<Y>,<wdth>,<hght>,<c>
	Draws a filled rectangle in <win> with the
	top-left corner at <X>, <Y> and the width and
	height in <wth> and <hght> respectively.

	24-bit colours (<c>) are of the format:
	  &BBGGRR00, eg. &FF00FF00 is magenta.
ENDHELP
SPRITE		PROC
	<win>,<X>,<Y>,<ratio>,<scl>,<mem>,<nme>
	Draws the sprite <nme> in <win> from the
	sprite file pointed to by <mem>. The top-left
	of the sprite is at <X>, <Y> and the ratio
	and scale are passed in <ratio> and <scl>
	respectively (both are percentages)

	<ratio> is the horizontal size:vertical size
	ratio - hence if <ratio> = 50 (ie. 50%) then
	the picture will be squashed to half size in
	the horizontal direction.
ENDHELP
TEXT		PROC
	<window>, <X>, <Y>, <text>, <colour>
	Draws <text> in the system font (with top-
	left coordinates at <X>, <Y>) in <window>
	with 24-bit colour <colour>.

	24-bit colours are of the format:
	  &BBGGRR00, eg. &FF00FF00 is magenta.
ENDHELP
