Home » Archimedes archive » Acorn User » AU 1998-02 B.adf » JFShared » !JFShared/Help/DynMenuLib
!JFShared/Help/DynMenuLib
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1998-02 B.adf » JFShared |
Filename: | !JFShared/Help/DynMenuLib |
Read OK: | ✔ |
File size: | 10C0 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
HELP( � ����, ��� � $ DIR$� � � G���Z�h�G !Root � G���⛴�� info � G����Q�\ FN G���R�L PROC DATAG DynMenuLib routines #Parent StrongHelp:!Menu #Table Columns 2 <PROCinit_dynmenu> <PROCdynmenu_menu> <PROCdynmenu_destroy> <PROCdynmenu_submenu> <FNdynmenu_end> <PROCdynmenu_add> <PROCdynmenu_attach> <PROCdynmenu_lastflags> <FNdynmenu_preserve> <PROCdynmenu_restore> #EndTable #Indent <Information=>info> on DynMenuLib DATA� DynMenuLib help #Align Centre {fh3}JFShared DynMenuLib v1.01{f} #Align Left The Dynamic Menu Library is a Basic Library file which allows you to create and manage menus 'on the fly'. In conjunction with the WimpLib, HeapLib and JFShared skeleton application this allows you to create applications which have changing menus depending on their context, eg history lists. This help file details the routines provided in DynMenuLib. The Dynamic Menu Library is referenced by \<DynMenuLibrary$File> and should be loaded with : {fCode}LIBRARY "\<DynMenuLibrary$File>":PROCinit_dynmenu{f} However, you will also require the Heap Library as well, so you will probably have to add : {fCode}LIBRARY "\<HeapLibrary$File>":PROCinitheap{f} The JFShared application is � <Justin Fletcher=>Filetypes:Authors_JustinFletcher>, 1996 and is released into the Public Domain with the same restrictions as subsist in most PD software. This includes the fact that when distributed the entire application must remain intact.DIR$\ \ L G���� � dynmenu_end H G�����1� dynmenu_preserve DATA� FNdynmenu_end #Parent !Root <= pointer to <menu structure=>Wimp:Wimp_CreateMenu.block> This call is used to end a dynamic menu. Usually it will be used in conjunction with <PROCdynmenu_attach> or to return the final handle of the structure. DATA� FNdynmenu_preserve #Parent !Root <= pointer to dynamic menu handle This call is used to preserve the current dynamic menu state. To restore the state, use <PROCdynmenu_restore>. DIR$L L P G������1� init_dynmenu � G����,�1� dynmenu_menu � G���q�1� dynmenu_destroy \ G����)�1� dynmenu_submenu G���`u�1� dynmenu_add � G����_��� dynmenu_attach X G���!���� dynmenu_restore P G���e�h�n dynmenu_lastflags DATA� PROCinit_dynmenu #Parent !Root Initialises library variables. Call this routine at the start of any program that uses the DynMenuLib file. DATA� PROCdynmenu_menu(title$) #Parent !Root => {/}title${/} title of the menu This call is used to start creation of a dynamic menu structure. The previous dynamic menu structure will be destroyed. End the menu with <FNdynmenu_end>.DATA� PROCdynmenu_destroy #Parent !Root This call is used to destroy the last dynamic menu structure created and release all it's memory. DATA� PROCdynmenu_submenu(title$) #Parent !Root => {/}title${/} title of the menu This call is used to start a sub-menu within a dynamic menu structure. End the menu with <FNdynmenu_end>. DATA� PROCdynmenu_add(item$,sprite$,flags%) #Parent !Root => {/}item${/} text of the item to add {/}sprite${/} the name of any sprite to use {/}flags{/} <menu flags=>.flags> This call is used to add an item to the current dynamic menu. # #Subpage flags Dynamic menu flags Bit Meaning #Line 0 item is ticked 1 item is followed by a line 2 item is writable 3 item will produce a message 4 item is shaded DATA� PROCdynmenu_attach(handle) #Parent !Root => {/}handle{/} handle returned by <FNdynmenu_end>. This call is used to attach a sub-menu to the current item. DATA� PROCdynmenu_restore(handle) #Parent !Root => {/}handle{/} handle returned by <FNdynmenu_preserve>, or 0 to do nothing. This call is used to restore a saved dynamic menu state. You might was to use 0 when initialising the menu structures. DATAn PROCdynmenu_lastflags(bic,eor) #Parent !Root => {/}bic{/} <bits=>PROCdynmenu_add.flags> to clear (first) {/}eor{/} <bits=>PROCdynmenu_add.flags> to toggle (second) This call is used to modify the flags of the last item added. This can sometimes be useful when, whilst adding the items you don't know whether the last has been reached to add a dotted line.
00000000 48 45 4c 50 28 00 00 00 fa 00 00 00 ff ff ff ff |HELP(...........| 00000010 2c 00 00 00 00 fd ff ff 00 00 00 00 80 00 00 00 |,...............| 00000020 00 01 00 00 00 00 00 00 24 00 00 00 44 49 52 24 |........$...DIR$| 00000030 88 00 00 00 88 00 00 00 b4 00 00 00 47 fd ff ff |............G...| 00000040 5a c4 68 b5 47 01 00 00 13 00 00 00 00 00 00 00 |Z.h.G...........| 00000050 21 52 6f 6f 74 00 00 00 fc 01 00 00 47 fd ff ff |!Root.......G...| 00000060 e2 9b b4 98 f4 03 00 00 13 00 00 00 00 00 00 00 |................| 00000070 69 6e 66 6f 00 00 00 00 f0 05 00 00 47 fd ff ff |info........G...| 00000080 dc 51 06 d7 5c 00 00 00 13 01 00 00 00 00 00 00 |.Q..\...........| 00000090 46 4e 00 00 04 08 00 00 47 fd ff ff 13 52 06 d7 |FN......G....R..| 000000a0 4c 01 00 00 13 01 00 00 00 00 00 00 50 52 4f 43 |L...........PROC| 000000b0 00 00 00 00 44 41 54 41 47 01 00 00 44 79 6e 4d |....DATAG...DynM| 000000c0 65 6e 75 4c 69 62 20 72 6f 75 74 69 6e 65 73 0a |enuLib routines.| 000000d0 23 50 61 72 65 6e 74 20 53 74 72 6f 6e 67 48 65 |#Parent StrongHe| 000000e0 6c 70 3a 21 4d 65 6e 75 0a 23 54 61 62 6c 65 20 |lp:!Menu.#Table | 000000f0 43 6f 6c 75 6d 6e 73 20 32 0a 3c 50 52 4f 43 69 |Columns 2.<PROCi| 00000100 6e 69 74 5f 64 79 6e 6d 65 6e 75 3e 0a 3c 50 52 |nit_dynmenu>.<PR| 00000110 4f 43 64 79 6e 6d 65 6e 75 5f 6d 65 6e 75 3e 0a |OCdynmenu_menu>.| 00000120 3c 50 52 4f 43 64 79 6e 6d 65 6e 75 5f 64 65 73 |<PROCdynmenu_des| 00000130 74 72 6f 79 3e 0a 3c 50 52 4f 43 64 79 6e 6d 65 |troy>.<PROCdynme| 00000140 6e 75 5f 73 75 62 6d 65 6e 75 3e 0a 3c 46 4e 64 |nu_submenu>.<FNd| 00000150 79 6e 6d 65 6e 75 5f 65 6e 64 3e 0a 3c 50 52 4f |ynmenu_end>.<PRO| 00000160 43 64 79 6e 6d 65 6e 75 5f 61 64 64 3e 0a 3c 50 |Cdynmenu_add>.<P| 00000170 52 4f 43 64 79 6e 6d 65 6e 75 5f 61 74 74 61 63 |ROCdynmenu_attac| 00000180 68 3e 0a 3c 50 52 4f 43 64 79 6e 6d 65 6e 75 5f |h>.<PROCdynmenu_| 00000190 6c 61 73 74 66 6c 61 67 73 3e 0a 3c 46 4e 64 79 |lastflags>.<FNdy| 000001a0 6e 6d 65 6e 75 5f 70 72 65 73 65 72 76 65 3e 0a |nmenu_preserve>.| 000001b0 3c 50 52 4f 43 64 79 6e 6d 65 6e 75 5f 72 65 73 |<PROCdynmenu_res| 000001c0 74 6f 72 65 3e 0a 23 45 6e 64 54 61 62 6c 65 0a |tore>.#EndTable.| 000001d0 23 49 6e 64 65 6e 74 0a 0a 3c 49 6e 66 6f 72 6d |#Indent..<Inform| 000001e0 61 74 69 6f 6e 3d 3e 69 6e 66 6f 3e 20 6f 6e 20 |ation=>info> on | 000001f0 44 79 6e 4d 65 6e 75 4c 69 62 0a 00 44 41 54 41 |DynMenuLib..DATA| 00000200 f4 03 00 00 44 79 6e 4d 65 6e 75 4c 69 62 20 68 |....DynMenuLib h| 00000210 65 6c 70 0a 23 41 6c 69 67 6e 20 43 65 6e 74 72 |elp.#Align Centr| 00000220 65 0a 7b 66 68 33 7d 4a 46 53 68 61 72 65 64 20 |e.{fh3}JFShared | 00000230 44 79 6e 4d 65 6e 75 4c 69 62 20 76 31 2e 30 31 |DynMenuLib v1.01| 00000240 7b 66 7d 0a 23 41 6c 69 67 6e 20 4c 65 66 74 0a |{f}.#Align Left.| 00000250 0a 54 68 65 20 44 79 6e 61 6d 69 63 20 4d 65 6e |.The Dynamic Men| 00000260 75 20 4c 69 62 72 61 72 79 20 69 73 20 61 20 42 |u Library is a B| 00000270 61 73 69 63 20 4c 69 62 72 61 72 79 20 66 69 6c |asic Library fil| 00000280 65 20 77 68 69 63 68 20 61 6c 6c 6f 77 73 20 79 |e which allows y| 00000290 6f 75 20 74 6f 20 63 72 65 61 74 65 20 61 6e 64 |ou to create and| 000002a0 20 6d 61 6e 61 67 65 20 6d 65 6e 75 73 20 27 6f | manage menus 'o| 000002b0 6e 20 74 68 65 20 66 6c 79 27 2e 20 49 6e 20 63 |n the fly'. In c| 000002c0 6f 6e 6a 75 6e 63 74 69 6f 6e 20 77 69 74 68 20 |onjunction with | 000002d0 74 68 65 20 57 69 6d 70 4c 69 62 2c 20 48 65 61 |the WimpLib, Hea| 000002e0 70 4c 69 62 20 61 6e 64 20 4a 46 53 68 61 72 65 |pLib and JFShare| 000002f0 64 20 73 6b 65 6c 65 74 6f 6e 20 61 70 70 6c 69 |d skeleton appli| 00000300 63 61 74 69 6f 6e 20 74 68 69 73 20 61 6c 6c 6f |cation this allo| 00000310 77 73 20 79 6f 75 20 74 6f 20 63 72 65 61 74 65 |ws you to create| 00000320 20 61 70 70 6c 69 63 61 74 69 6f 6e 73 20 77 68 | applications wh| 00000330 69 63 68 20 68 61 76 65 20 63 68 61 6e 67 69 6e |ich have changin| 00000340 67 20 6d 65 6e 75 73 20 64 65 70 65 6e 64 69 6e |g menus dependin| 00000350 67 20 6f 6e 20 74 68 65 69 72 20 63 6f 6e 74 65 |g on their conte| 00000360 78 74 2c 20 65 67 20 68 69 73 74 6f 72 79 20 6c |xt, eg history l| 00000370 69 73 74 73 2e 20 54 68 69 73 20 68 65 6c 70 20 |ists. This help | 00000380 66 69 6c 65 20 64 65 74 61 69 6c 73 20 74 68 65 |file details the| 00000390 20 72 6f 75 74 69 6e 65 73 20 70 72 6f 76 69 64 | routines provid| 000003a0 65 64 20 69 6e 20 44 79 6e 4d 65 6e 75 4c 69 62 |ed in DynMenuLib| 000003b0 2e 0a 0a 54 68 65 20 44 79 6e 61 6d 69 63 20 4d |...The Dynamic M| 000003c0 65 6e 75 20 4c 69 62 72 61 72 79 20 69 73 20 72 |enu Library is r| 000003d0 65 66 65 72 65 6e 63 65 64 20 62 79 20 5c 3c 44 |eferenced by \<D| 000003e0 79 6e 4d 65 6e 75 4c 69 62 72 61 72 79 24 46 69 |ynMenuLibrary$Fi| 000003f0 6c 65 3e 20 61 6e 64 20 73 68 6f 75 6c 64 20 62 |le> and should b| 00000400 65 20 6c 6f 61 64 65 64 20 77 69 74 68 20 3a 0a |e loaded with :.| 00000410 7b 66 43 6f 64 65 7d 4c 49 42 52 41 52 59 20 22 |{fCode}LIBRARY "| 00000420 5c 3c 44 79 6e 4d 65 6e 75 4c 69 62 72 61 72 79 |\<DynMenuLibrary| 00000430 24 46 69 6c 65 3e 22 3a 50 52 4f 43 69 6e 69 74 |$File>":PROCinit| 00000440 5f 64 79 6e 6d 65 6e 75 7b 66 7d 0a 0a 48 6f 77 |_dynmenu{f}..How| 00000450 65 76 65 72 2c 20 79 6f 75 20 77 69 6c 6c 20 61 |ever, you will a| 00000460 6c 73 6f 20 72 65 71 75 69 72 65 20 74 68 65 20 |lso require the | 00000470 48 65 61 70 20 4c 69 62 72 61 72 79 20 61 73 20 |Heap Library as | 00000480 77 65 6c 6c 2c 20 73 6f 20 79 6f 75 20 77 69 6c |well, so you wil| 00000490 6c 20 70 72 6f 62 61 62 6c 79 20 68 61 76 65 20 |l probably have | 000004a0 74 6f 20 61 64 64 20 3a 0a 7b 66 43 6f 64 65 7d |to add :.{fCode}| 000004b0 4c 49 42 52 41 52 59 20 22 5c 3c 48 65 61 70 4c |LIBRARY "\<HeapL| 000004c0 69 62 72 61 72 79 24 46 69 6c 65 3e 22 3a 50 52 |ibrary$File>":PR| 000004d0 4f 43 69 6e 69 74 68 65 61 70 7b 66 7d 0a 0a 54 |OCinitheap{f}..T| 000004e0 68 65 20 4a 46 53 68 61 72 65 64 20 61 70 70 6c |he JFShared appl| 000004f0 69 63 61 74 69 6f 6e 20 69 73 20 a9 20 3c 4a 75 |ication is . <Ju| 00000500 73 74 69 6e 20 46 6c 65 74 63 68 65 72 3d 3e 46 |stin Fletcher=>F| 00000510 69 6c 65 74 79 70 65 73 3a 41 75 74 68 6f 72 73 |iletypes:Authors| 00000520 5f 4a 75 73 74 69 6e 46 6c 65 74 63 68 65 72 3e |_JustinFletcher>| 00000530 2c 20 31 39 39 36 20 61 6e 64 20 69 73 20 72 65 |, 1996 and is re| 00000540 6c 65 61 73 65 64 20 69 6e 74 6f 20 74 68 65 20 |leased into the | 00000550 50 75 62 6c 69 63 20 44 6f 6d 61 69 6e 20 77 69 |Public Domain wi| 00000560 74 68 20 74 68 65 20 73 61 6d 65 20 72 65 73 74 |th the same rest| 00000570 72 69 63 74 69 6f 6e 73 20 61 73 20 73 75 62 73 |rictions as subs| 00000580 69 73 74 20 69 6e 20 6d 6f 73 74 20 50 44 20 73 |ist in most PD s| 00000590 6f 66 74 77 61 72 65 2e 20 54 68 69 73 20 69 6e |oftware. This in| 000005a0 63 6c 75 64 65 73 20 74 68 65 20 66 61 63 74 20 |cludes the fact | 000005b0 74 68 61 74 20 77 68 65 6e 20 64 69 73 74 72 69 |that when distri| 000005c0 62 75 74 65 64 20 74 68 65 20 65 6e 74 69 72 65 |buted the entire| 000005d0 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 6d 75 73 | application mus| 000005e0 74 20 72 65 6d 61 69 6e 20 69 6e 74 61 63 74 2e |t remain intact.| 000005f0 44 49 52 24 5c 00 00 00 5c 00 00 00 4c 06 00 00 |DIR$\...\...L...| 00000600 47 ff ff ff 15 94 00 d7 fa 00 00 00 13 00 00 00 |G...............| 00000610 00 00 00 00 64 79 6e 6d 65 6e 75 5f 65 6e 64 00 |....dynmenu_end.| 00000620 48 07 00 00 47 ff ff ff 80 08 c4 31 bb 00 00 00 |H...G......1....| 00000630 13 00 00 00 00 00 00 00 64 79 6e 6d 65 6e 75 5f |........dynmenu_| 00000640 70 72 65 73 65 72 76 65 00 00 00 00 44 41 54 41 |preserve....DATA| 00000650 fa 00 00 00 46 4e 64 79 6e 6d 65 6e 75 5f 65 6e |....FNdynmenu_en| 00000660 64 0a 23 50 61 72 65 6e 74 20 21 52 6f 6f 74 0a |d.#Parent !Root.| 00000670 3c 3d 09 70 6f 69 6e 74 65 72 20 74 6f 20 3c 6d |<=.pointer to <m| 00000680 65 6e 75 20 73 74 72 75 63 74 75 72 65 3d 3e 57 |enu structure=>W| 00000690 69 6d 70 3a 57 69 6d 70 5f 43 72 65 61 74 65 4d |imp:Wimp_CreateM| 000006a0 65 6e 75 2e 62 6c 6f 63 6b 3e 0a 0a 54 68 69 73 |enu.block>..This| 000006b0 20 63 61 6c 6c 20 69 73 20 75 73 65 64 20 74 6f | call is used to| 000006c0 20 65 6e 64 20 61 20 64 79 6e 61 6d 69 63 20 6d | end a dynamic m| 000006d0 65 6e 75 2e 20 55 73 75 61 6c 6c 79 20 69 74 20 |enu. Usually it | 000006e0 77 69 6c 6c 20 62 65 20 75 73 65 64 20 69 6e 20 |will be used in | 000006f0 63 6f 6e 6a 75 6e 63 74 69 6f 6e 20 77 69 74 68 |conjunction with| 00000700 20 3c 50 52 4f 43 64 79 6e 6d 65 6e 75 5f 61 74 | <PROCdynmenu_at| 00000710 74 61 63 68 3e 20 6f 72 20 74 6f 20 72 65 74 75 |tach> or to retu| 00000720 72 6e 20 74 68 65 20 66 69 6e 61 6c 20 68 61 6e |rn the final han| 00000730 64 6c 65 20 6f 66 20 74 68 65 20 73 74 72 75 63 |dle of the struc| 00000740 74 75 72 65 2e 0a 00 00 44 41 54 41 bb 00 00 00 |ture....DATA....| 00000750 46 4e 64 79 6e 6d 65 6e 75 5f 70 72 65 73 65 72 |FNdynmenu_preser| 00000760 76 65 0a 23 50 61 72 65 6e 74 20 21 52 6f 6f 74 |ve.#Parent !Root| 00000770 0a 3c 3d 09 70 6f 69 6e 74 65 72 20 74 6f 20 64 |.<=.pointer to d| 00000780 79 6e 61 6d 69 63 20 6d 65 6e 75 20 68 61 6e 64 |ynamic menu hand| 00000790 6c 65 0a 0a 54 68 69 73 20 63 61 6c 6c 20 69 73 |le..This call is| 000007a0 20 75 73 65 64 20 74 6f 20 70 72 65 73 65 72 76 | used to preserv| 000007b0 65 20 74 68 65 20 63 75 72 72 65 6e 74 20 64 79 |e the current dy| 000007c0 6e 61 6d 69 63 20 6d 65 6e 75 20 73 74 61 74 65 |namic menu state| 000007d0 2e 20 54 6f 20 72 65 73 74 6f 72 65 20 74 68 65 |. To restore the| 000007e0 20 73 74 61 74 65 2c 20 75 73 65 20 3c 50 52 4f | state, use <PRO| 000007f0 43 64 79 6e 6d 65 6e 75 5f 72 65 73 74 6f 72 65 |Cdynmenu_restore| 00000800 3e 2e 0a 00 44 49 52 24 4c 01 00 00 4c 01 00 00 |>...DIR$L...L...| 00000810 50 09 00 00 47 ff ff ff 94 d9 c2 31 94 00 00 00 |P...G......1....| 00000820 13 00 00 00 00 00 00 00 69 6e 69 74 5f 64 79 6e |........init_dyn| 00000830 6d 65 6e 75 00 00 00 00 e4 09 00 00 47 ff ff ff |menu........G...| 00000840 bd 2c c3 31 ec 00 00 00 13 00 00 00 00 00 00 00 |.,.1............| 00000850 64 79 6e 6d 65 6e 75 5f 6d 65 6e 75 00 00 00 00 |dynmenu_menu....| 00000860 d0 0a 00 00 47 ff ff ff 71 11 c3 31 8b 00 00 00 |....G...q..1....| 00000870 13 00 00 00 00 00 00 00 64 79 6e 6d 65 6e 75 5f |........dynmenu_| 00000880 64 65 73 74 72 6f 79 00 5c 0b 00 00 47 ff ff ff |destroy.\...G...| 00000890 d0 29 c3 31 be 00 00 00 13 00 00 00 00 00 00 00 |.).1............| 000008a0 64 79 6e 6d 65 6e 75 5f 73 75 62 6d 65 6e 75 00 |dynmenu_submenu.| 000008b0 1c 0c 00 00 47 ff ff ff 60 75 c3 31 97 01 00 00 |....G...`u.1....| 000008c0 13 00 00 00 00 00 00 00 64 79 6e 6d 65 6e 75 5f |........dynmenu_| 000008d0 61 64 64 00 b4 0d 00 00 47 ff ff ff 96 5f 83 85 |add.....G...._..| 000008e0 a2 00 00 00 13 00 00 00 00 00 00 00 64 79 6e 6d |............dynm| 000008f0 65 6e 75 5f 61 74 74 61 63 68 00 00 58 0e 00 00 |enu_attach..X...| 00000900 47 ff ff ff 21 99 b4 98 f7 00 00 00 13 00 00 00 |G...!...........| 00000910 00 00 00 00 64 79 6e 6d 65 6e 75 5f 72 65 73 74 |....dynmenu_rest| 00000920 6f 72 65 00 50 0f 00 00 47 ff ff ff 65 fb 68 b5 |ore.P...G...e.h.| 00000930 6e 01 00 00 13 00 00 00 00 00 00 00 64 79 6e 6d |n...........dynm| 00000940 65 6e 75 5f 6c 61 73 74 66 6c 61 67 73 00 00 00 |enu_lastflags...| 00000950 44 41 54 41 94 00 00 00 50 52 4f 43 69 6e 69 74 |DATA....PROCinit| 00000960 5f 64 79 6e 6d 65 6e 75 0a 23 50 61 72 65 6e 74 |_dynmenu.#Parent| 00000970 20 21 52 6f 6f 74 0a 49 6e 69 74 69 61 6c 69 73 | !Root.Initialis| 00000980 65 73 20 6c 69 62 72 61 72 79 20 76 61 72 69 61 |es library varia| 00000990 62 6c 65 73 2e 0a 0a 43 61 6c 6c 20 74 68 69 73 |bles...Call this| 000009a0 20 72 6f 75 74 69 6e 65 20 61 74 20 74 68 65 20 | routine at the | 000009b0 73 74 61 72 74 20 6f 66 20 61 6e 79 20 70 72 6f |start of any pro| 000009c0 67 72 61 6d 20 74 68 61 74 20 75 73 65 73 20 74 |gram that uses t| 000009d0 68 65 20 44 79 6e 4d 65 6e 75 4c 69 62 20 66 69 |he DynMenuLib fi| 000009e0 6c 65 2e 0a 44 41 54 41 ec 00 00 00 50 52 4f 43 |le..DATA....PROC| 000009f0 64 79 6e 6d 65 6e 75 5f 6d 65 6e 75 28 74 69 74 |dynmenu_menu(tit| 00000a00 6c 65 24 29 0a 23 50 61 72 65 6e 74 20 21 52 6f |le$).#Parent !Ro| 00000a10 6f 74 0a 3d 3e 09 7b 2f 7d 74 69 74 6c 65 24 7b |ot.=>.{/}title${| 00000a20 2f 7d 09 74 69 74 6c 65 20 6f 66 20 74 68 65 20 |/}.title of the | 00000a30 6d 65 6e 75 0a 0a 54 68 69 73 20 63 61 6c 6c 20 |menu..This call | 00000a40 69 73 20 75 73 65 64 20 74 6f 20 73 74 61 72 74 |is used to start| 00000a50 20 63 72 65 61 74 69 6f 6e 20 6f 66 20 61 20 64 | creation of a d| 00000a60 79 6e 61 6d 69 63 20 6d 65 6e 75 20 73 74 72 75 |ynamic menu stru| 00000a70 63 74 75 72 65 2e 20 54 68 65 20 70 72 65 76 69 |cture. The previ| 00000a80 6f 75 73 20 64 79 6e 61 6d 69 63 20 6d 65 6e 75 |ous dynamic menu| 00000a90 20 73 74 72 75 63 74 75 72 65 20 77 69 6c 6c 20 | structure will | 00000aa0 62 65 20 64 65 73 74 72 6f 79 65 64 2e 20 45 6e |be destroyed. En| 00000ab0 64 20 74 68 65 20 6d 65 6e 75 20 77 69 74 68 20 |d the menu with | 00000ac0 3c 46 4e 64 79 6e 6d 65 6e 75 5f 65 6e 64 3e 2e |<FNdynmenu_end>.| 00000ad0 44 41 54 41 8b 00 00 00 50 52 4f 43 64 79 6e 6d |DATA....PROCdynm| 00000ae0 65 6e 75 5f 64 65 73 74 72 6f 79 0a 23 50 61 72 |enu_destroy.#Par| 00000af0 65 6e 74 20 21 52 6f 6f 74 0a 54 68 69 73 20 63 |ent !Root.This c| 00000b00 61 6c 6c 20 69 73 20 75 73 65 64 20 74 6f 20 64 |all is used to d| 00000b10 65 73 74 72 6f 79 20 74 68 65 20 6c 61 73 74 20 |estroy the last | 00000b20 64 79 6e 61 6d 69 63 20 6d 65 6e 75 20 73 74 72 |dynamic menu str| 00000b30 75 63 74 75 72 65 20 63 72 65 61 74 65 64 20 61 |ucture created a| 00000b40 6e 64 20 72 65 6c 65 61 73 65 20 61 6c 6c 20 69 |nd release all i| 00000b50 74 27 73 20 6d 65 6d 6f 72 79 2e 00 44 41 54 41 |t's memory..DATA| 00000b60 be 00 00 00 50 52 4f 43 64 79 6e 6d 65 6e 75 5f |....PROCdynmenu_| 00000b70 73 75 62 6d 65 6e 75 28 74 69 74 6c 65 24 29 0a |submenu(title$).| 00000b80 23 50 61 72 65 6e 74 20 21 52 6f 6f 74 0a 3d 3e |#Parent !Root.=>| 00000b90 09 7b 2f 7d 74 69 74 6c 65 24 7b 2f 7d 09 74 69 |.{/}title${/}.ti| 00000ba0 74 6c 65 20 6f 66 20 74 68 65 20 6d 65 6e 75 0a |tle of the menu.| 00000bb0 0a 54 68 69 73 20 63 61 6c 6c 20 69 73 20 75 73 |.This call is us| 00000bc0 65 64 20 74 6f 20 73 74 61 72 74 20 61 20 73 75 |ed to start a su| 00000bd0 62 2d 6d 65 6e 75 20 77 69 74 68 69 6e 20 61 20 |b-menu within a | 00000be0 64 79 6e 61 6d 69 63 20 6d 65 6e 75 20 73 74 72 |dynamic menu str| 00000bf0 75 63 74 75 72 65 2e 20 45 6e 64 20 74 68 65 20 |ucture. End the | 00000c00 6d 65 6e 75 20 77 69 74 68 20 3c 46 4e 64 79 6e |menu with <FNdyn| 00000c10 6d 65 6e 75 5f 65 6e 64 3e 2e 00 00 44 41 54 41 |menu_end>...DATA| 00000c20 97 01 00 00 50 52 4f 43 64 79 6e 6d 65 6e 75 5f |....PROCdynmenu_| 00000c30 61 64 64 28 69 74 65 6d 24 2c 73 70 72 69 74 65 |add(item$,sprite| 00000c40 24 2c 66 6c 61 67 73 25 29 0a 23 50 61 72 65 6e |$,flags%).#Paren| 00000c50 74 20 21 52 6f 6f 74 0a 3d 3e 09 7b 2f 7d 69 74 |t !Root.=>.{/}it| 00000c60 65 6d 24 7b 2f 7d 09 74 65 78 74 20 6f 66 20 74 |em${/}.text of t| 00000c70 68 65 20 69 74 65 6d 20 74 6f 20 61 64 64 0a 09 |he item to add..| 00000c80 7b 2f 7d 73 70 72 69 74 65 24 7b 2f 7d 09 74 68 |{/}sprite${/}.th| 00000c90 65 20 6e 61 6d 65 20 6f 66 20 61 6e 79 20 73 70 |e name of any sp| 00000ca0 72 69 74 65 20 74 6f 20 75 73 65 0a 09 7b 2f 7d |rite to use..{/}| 00000cb0 66 6c 61 67 73 7b 2f 7d 09 3c 6d 65 6e 75 20 66 |flags{/}.<menu f| 00000cc0 6c 61 67 73 3d 3e 2e 66 6c 61 67 73 3e 0a 0a 54 |lags=>.flags>..T| 00000cd0 68 69 73 20 63 61 6c 6c 20 69 73 20 75 73 65 64 |his call is used| 00000ce0 20 74 6f 20 61 64 64 20 61 6e 20 69 74 65 6d 20 | to add an item | 00000cf0 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 64 |to the current d| 00000d00 79 6e 61 6d 69 63 20 6d 65 6e 75 2e 0a 23 0a 23 |ynamic menu..#.#| 00000d10 53 75 62 70 61 67 65 20 66 6c 61 67 73 0a 44 79 |Subpage flags.Dy| 00000d20 6e 61 6d 69 63 20 6d 65 6e 75 20 66 6c 61 67 73 |namic menu flags| 00000d30 0a 42 69 74 09 4d 65 61 6e 69 6e 67 0a 23 4c 69 |.Bit.Meaning.#Li| 00000d40 6e 65 0a 30 09 69 74 65 6d 20 69 73 20 74 69 63 |ne.0.item is tic| 00000d50 6b 65 64 0a 31 09 69 74 65 6d 20 69 73 20 66 6f |ked.1.item is fo| 00000d60 6c 6c 6f 77 65 64 20 62 79 20 61 20 6c 69 6e 65 |llowed by a line| 00000d70 0a 32 09 69 74 65 6d 20 69 73 20 77 72 69 74 61 |.2.item is writa| 00000d80 62 6c 65 0a 33 09 69 74 65 6d 20 77 69 6c 6c 20 |ble.3.item will | 00000d90 70 72 6f 64 75 63 65 20 61 20 6d 65 73 73 61 67 |produce a messag| 00000da0 65 0a 34 09 69 74 65 6d 20 69 73 20 73 68 61 64 |e.4.item is shad| 00000db0 65 64 0a 00 44 41 54 41 a2 00 00 00 50 52 4f 43 |ed..DATA....PROC| 00000dc0 64 79 6e 6d 65 6e 75 5f 61 74 74 61 63 68 28 68 |dynmenu_attach(h| 00000dd0 61 6e 64 6c 65 29 0a 23 50 61 72 65 6e 74 20 21 |andle).#Parent !| 00000de0 52 6f 6f 74 0a 3d 3e 09 7b 2f 7d 68 61 6e 64 6c |Root.=>.{/}handl| 00000df0 65 7b 2f 7d 09 68 61 6e 64 6c 65 20 72 65 74 75 |e{/}.handle retu| 00000e00 72 6e 65 64 20 62 79 20 3c 46 4e 64 79 6e 6d 65 |rned by <FNdynme| 00000e10 6e 75 5f 65 6e 64 3e 2e 0a 0a 54 68 69 73 20 63 |nu_end>...This c| 00000e20 61 6c 6c 20 69 73 20 75 73 65 64 20 74 6f 20 61 |all is used to a| 00000e30 74 74 61 63 68 20 61 20 73 75 62 2d 6d 65 6e 75 |ttach a sub-menu| 00000e40 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 20 | to the current | 00000e50 69 74 65 6d 2e 0a 00 00 44 41 54 41 f7 00 00 00 |item....DATA....| 00000e60 50 52 4f 43 64 79 6e 6d 65 6e 75 5f 72 65 73 74 |PROCdynmenu_rest| 00000e70 6f 72 65 28 68 61 6e 64 6c 65 29 0a 23 50 61 72 |ore(handle).#Par| 00000e80 65 6e 74 20 21 52 6f 6f 74 0a 3d 3e 09 7b 2f 7d |ent !Root.=>.{/}| 00000e90 68 61 6e 64 6c 65 7b 2f 7d 09 68 61 6e 64 6c 65 |handle{/}.handle| 00000ea0 20 72 65 74 75 72 6e 65 64 20 62 79 20 3c 46 4e | returned by <FN| 00000eb0 64 79 6e 6d 65 6e 75 5f 70 72 65 73 65 72 76 65 |dynmenu_preserve| 00000ec0 3e 2c 20 6f 72 20 30 20 74 6f 20 64 6f 20 6e 6f |>, or 0 to do no| 00000ed0 74 68 69 6e 67 2e 0a 0a 54 68 69 73 20 63 61 6c |thing...This cal| 00000ee0 6c 20 69 73 20 75 73 65 64 20 74 6f 20 72 65 73 |l is used to res| 00000ef0 74 6f 72 65 20 61 20 73 61 76 65 64 20 64 79 6e |tore a saved dyn| 00000f00 61 6d 69 63 20 6d 65 6e 75 20 73 74 61 74 65 2e |amic menu state.| 00000f10 20 59 6f 75 20 6d 69 67 68 74 20 77 61 73 20 74 | You might was t| 00000f20 6f 20 75 73 65 20 30 20 77 68 65 6e 20 69 6e 69 |o use 0 when ini| 00000f30 74 69 61 6c 69 73 69 6e 67 20 74 68 65 20 6d 65 |tialising the me| 00000f40 6e 75 20 73 74 72 75 63 74 75 72 65 73 2e 0a 00 |nu structures...| 00000f50 44 41 54 41 6e 01 00 00 50 52 4f 43 64 79 6e 6d |DATAn...PROCdynm| 00000f60 65 6e 75 5f 6c 61 73 74 66 6c 61 67 73 28 62 69 |enu_lastflags(bi| 00000f70 63 2c 65 6f 72 29 0a 23 50 61 72 65 6e 74 20 21 |c,eor).#Parent !| 00000f80 52 6f 6f 74 0a 3d 3e 09 7b 2f 7d 62 69 63 7b 2f |Root.=>.{/}bic{/| 00000f90 7d 09 3c 62 69 74 73 3d 3e 50 52 4f 43 64 79 6e |}.<bits=>PROCdyn| 00000fa0 6d 65 6e 75 5f 61 64 64 2e 66 6c 61 67 73 3e 20 |menu_add.flags> | 00000fb0 74 6f 20 63 6c 65 61 72 20 28 66 69 72 73 74 29 |to clear (first)| 00000fc0 0a 09 7b 2f 7d 65 6f 72 7b 2f 7d 09 3c 62 69 74 |..{/}eor{/}.<bit| 00000fd0 73 3d 3e 50 52 4f 43 64 79 6e 6d 65 6e 75 5f 61 |s=>PROCdynmenu_a| 00000fe0 64 64 2e 66 6c 61 67 73 3e 20 74 6f 20 74 6f 67 |dd.flags> to tog| 00000ff0 67 6c 65 20 28 73 65 63 6f 6e 64 29 0a 0a 54 68 |gle (second)..Th| 00001000 69 73 20 63 61 6c 6c 20 69 73 20 75 73 65 64 20 |is call is used | 00001010 74 6f 20 6d 6f 64 69 66 79 20 74 68 65 20 66 6c |to modify the fl| 00001020 61 67 73 20 6f 66 20 74 68 65 20 6c 61 73 74 20 |ags of the last | 00001030 69 74 65 6d 20 61 64 64 65 64 2e 20 54 68 69 73 |item added. This| 00001040 20 63 61 6e 20 73 6f 6d 65 74 69 6d 65 73 20 62 | can sometimes b| 00001050 65 20 75 73 65 66 75 6c 20 77 68 65 6e 2c 20 77 |e useful when, w| 00001060 68 69 6c 73 74 20 61 64 64 69 6e 67 20 74 68 65 |hilst adding the| 00001070 20 69 74 65 6d 73 20 79 6f 75 20 64 6f 6e 27 74 | items you don't| 00001080 20 6b 6e 6f 77 20 77 68 65 74 68 65 72 20 74 68 | know whether th| 00001090 65 20 6c 61 73 74 20 68 61 73 20 62 65 65 6e 20 |e last has been | 000010a0 72 65 61 63 68 65 64 20 74 6f 20 61 64 64 20 61 |reached to add a| 000010b0 20 64 6f 74 74 65 64 20 6c 69 6e 65 2e 0a 00 00 | dotted line....| 000010c0