TITLE "mp4/test.a by Douglas Jones" INT ITEM1 USE "hawk.macs" ; ----- The items in the following list should form this display ------ ; +---------------+ +---+ + 6 ; | text in a box |------+ | A | | A ; 2---------------+ | | B | 5-----------+ BC ; | | | C | | DEF ; 1-------------------+ 3---+ 4 ; note that, in the above, the lower left plus in the rendering ; of the item has been replaced with the item number. ; Item 6 has a height and width of zero, and the triangle of text is ; plotted in an odd order (ACBFED, using CR, LF and blanks). ; ----- Item data structures ----- ; distinguished pointer value NULL = 0 ITEM1: W ITEM2 ; NEXT W 8 ; X +-------------------+ W 2 ; Y | | W 20 ; WIDTH | | W 3 ; HEIGHT +-------------------+ W NULL ; TEXT ITEM2: W ITEM3 ; NEXT W 5 ; X +---------------+ W 1 ; Y | | W 16 ; WIDTH +---------------+ W 2 ; HEIGHT W TEXT2 ; TEXT ITEM3: W ITEM4 ; NEXT W 33 ; X +---+ W 1 ; Y | | W 4 ; WIDTH | | W 4 ; HEIGHT | | W TEXT3 ; TEXT +---+ ITEM4: W ITEM5 ; NEXT W 42 ; X + W 1 ; Y | W 0 ; WIDTH | W 4 ; HEIGHT | W NOTEXT ; TEXT + ITEM5: W ITEM6 ; NEXT W 39 ; X W 3 ; Y W 12 ; WIDTH +------------+ W 0 ; HEIGHT W NULL ; TEXT ITEM6: W NULL ; NEXT W 54 ; X W 1 ; Y W 0 ; WIDTH + W 0 ; HEIGHT W TEXT6 ; TEXT ; ----- Text strings for the items ----- ; ASCII codes NUL = 0 CR = 13 LF = 10 NOTEXT: B NUL TEXT2: ASCII "text in a box",NUL TEXT3: ASCII "A",CR,LF,"B",CR,LF,"C",NUL TEXT6: ASCII "A",LF,"C",CR,"B",LF," F",CR," E",CR,"D",NUL END