AMOSi:Hypertext

From Amiga Coding
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
Jump to: navigation, search

Generates a hypertext window, similar to the help system. Your text can include either normal ascii characters, or "hypertext zones". Each zone consists of the following;


???
or ???


HT zone,x,y,width,height,textaddress,startline,buffer,paper,pen;[changes]


zone = number of your zone


x,y set the coordinates of top left hand corner of text window. x will be rounded down to the nearest multiple of 16.


width,height = the size of the display window in characters.


textaddress = address in memory of the first character in your text.


startline = the number of the first line to be displayed in your text.


buffer sets the size of an internal buffer area. Each hypertext zone requires eight bytes.


paper,pen are the colour of the ink and paper colours used by your text.


[changes] is a routine which will be called whenever the user clicks on one of your hypertext zones.