home *** CD-ROM | disk | FTP | other *** search
MetaCard/Revolution Stack | 2004-04-01 | 200.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MetaCard/Revolution Stack
(archive/metaCardStack).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| MetaCard/Revolution Stack (archive/metaCardStack)
| magic
| Unsupported |
100%
| file
| POSIX shell script executable (binary data)
| default
| |
99%
| file
| a /bin/sh script executable (binary data)
| default (weak)
| |
98%
| file
| data
| default
| |
75%
| TrID
| MetaCard/Revolution stack (old)
| default
| |
25%
| TrID
| Linux/UNIX shell script
| default
| |
100%
| siegfried
| fmt/1918 MetaCard Stack (2.x)
| default
| |
100%
| binwalkID
| Executable script, shebang: "/bin/sh"
| default (weak)
| |
100%
| xdgMime
| application/x-shellscript
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 23 21 2f 62 69 6e 2f 73 | 68 0a 23 20 4d 65 74 61 |#!/bin/s|h.# Meta|
|00000010| 43 61 72 64 20 32 2e 34 | 20 73 74 61 63 6b 0a 23 |Card 2.4| stack.#|
|00000020| 20 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 69 | The fol|lowing i|
|00000030| 73 20 6e 6f 74 20 41 53 | 43 49 49 20 74 65 78 74 |s not AS|CII text|
|00000040| 2c 0a 23 20 73 6f 20 6e | 6f 77 20 77 6f 75 6c 64 |,.# so n|ow would|
|00000050| 20 62 65 20 61 20 67 6f | 6f 64 20 74 69 6d 65 20 | be a go|od time |
|00000060| 74 6f 20 71 20 6f 75 74 | 20 6f 66 20 6d 6f 72 65 |to q out| of more|
|00000070| 0c 0a 65 78 65 63 20 6d | 63 20 24 30 20 22 24 40 |..exec m|c $0 "$@|
|00000080| 22 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |".......|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 02 00 00 03 00 00 17 f5 | 00 0f 72 65 76 4d 65 6e |........|..revMen|
|00000110| 75 4d 61 6e 61 67 65 72 | 00 02 00 88 00 00 00 00 |uManager|........|
|00000120| 00 80 00 01 b7 01 42 01 | 92 01 7d 00 00 00 0d 09 |......B.|..}.....|
|00000130| 63 42 75 69 6c 64 4e 6f | 00 00 01 31 0b 63 52 45 |cBuildNo|...1.cRE|
|00000140| 56 4d 65 6e 75 49 44 00 | 00 00 0c 63 52 45 56 4d |VMenuID.|...cREVM|
|00000150| 65 6e 75 62 61 72 00 00 | 00 12 63 52 45 56 49 74 |enubar..|..cREVIt|
|00000160| 65 6d 73 44 69 73 61 62 | 6c 65 64 00 00 00 0f 63 |emsDisab|led....c|
|00000170| 52 45 56 4d 65 6e 75 4f | 62 6a 65 63 74 00 00 05 |REVMenuO|bject...|
|00000180| 67 72 6f 75 70 0b 63 56 | 65 72 73 69 6f 6e 4e 6f |group.cV|ersionNo|
|00000190| 00 00 03 32 2e 32 0c 63 | 52 45 56 43 6c 6f 73 69 |...2.2.c|REVClosi|
|000001a0| 6e 67 00 00 05 66 61 6c | 73 65 15 63 52 45 56 4d |ng...fal|se.cREVM|
|000001b0| 65 6e 75 42 75 74 74 6f | 6e 43 61 72 64 49 44 00 |enuButto|nCardID.|
|000001c0| 00 00 12 63 52 45 56 4d | 65 6e 75 42 75 74 74 6f |...cREVM|enuButto|
|000001d0| 6e 49 64 73 00 00 00 09 | 72 65 76 73 74 61 63 6b |nIds....|revstack|
|000001e0| 00 00 05 66 61 6c 73 65 | 11 63 52 45 56 44 65 66 |...false|.cREVDef|
|000001f0| 61 75 6c 74 53 74 61 63 | 6b 00 00 00 12 63 52 45 |aultStac|k....cRE|
|00000200| 56 4d 65 6e 75 62 61 72 | 4e 75 6d 62 65 72 00 00 |VMenubar|Number..|
|00000210| 01 30 17 63 52 45 56 46 | 69 72 73 74 53 65 6c 65 |.0.cREVF|irstSele|
|00000220| 63 74 65 64 53 74 61 63 | 6b 00 00 00 00 00 00 00 |ctedStac|k.......|
|00000230| 00 00 00 00 00 0d 4d 65 | 6e 75 20 42 75 69 6c 64 |......Me|nu Build|
|00000240| 65 72 00 00 00 00 0b 00 | 0a 00 55 00 0a 48 65 6c |er......|..U..Hel|
|00000250| 76 65 74 69 63 61 00 00 | 0a 10 55 00 0a 48 65 6c |vetica..|..U..Hel|
|00000260| 76 65 74 69 63 61 00 00 | 0e 00 55 00 0a 68 65 6c |vetica..|..U..hel|
|00000270| 76 65 74 69 63 61 00 00 | 0a 01 55 00 0a 48 65 6c |vetica..|..U..Hel|
|00000280| 76 65 74 69 63 61 00 00 | 0a 00 55 00 0a 75 6e 64 |vetica..|..U..und|
|00000290| 65 72 6c 69 6e 65 00 00 | 0a 10 55 00 0e 4d 53 20 |erline..|..U..MS |
|000002a0| 53 61 6e 73 20 53 65 72 | 69 66 00 00 0a 10 55 00 |Sans Ser|if....U.|
|000002b0| 07 47 65 6e 65 76 61 00 | 00 0a 00 55 00 07 47 65 |.Geneva.|...U..Ge|
|000002c0| 6e 65 76 61 00 00 0a 00 | 55 00 0e 4d 53 20 53 61 |neva....|U..MS Sa|
|000002d0| 6e 73 20 53 65 72 69 66 | 00 00 0a 00 55 00 0e 6d |ns Serif|....U..m|
|000002e0| 73 20 73 61 6e 73 20 73 | 65 72 69 66 00 00 0a 10 |s sans s|erif....|
|000002f0| 55 00 0e 6d 73 20 73 61 | 6e 73 20 73 65 72 69 66 |U..ms sa|ns serif|
|00000300| 00 18 00 12 63 52 45 56 | 47 65 6f 6d 65 74 72 79 |....cREV|Geometry|
|00000310| 43 61 63 68 65 00 00 00 | 00 01 08 73 74 61 63 6b |Cache...|...stack|
|00000320| 49 44 00 00 04 36 31 33 | 33 18 00 0c 63 52 45 56 |ID...613|3...cREV|
|00000330| 47 65 6e 65 72 61 6c 00 | 00 00 00 06 0a 62 6f 6f |General.|.....boo|
|00000340| 6b 6d 61 72 6b 73 00 00 | 00 0c 68 61 6e 64 6c 65 |kmarks..|..handle|
|00000350| 72 4c 69 73 74 00 00 00 | 0b 74 65 6d 70 53 63 72 |rList...|.tempScr|
|00000360| 69 70 74 00 00 00 0c 70 | 72 65 76 48 61 6e 64 6c |ipt....p|revHandl|
|00000370| 65 72 00 00 00 10 73 63 | 72 69 70 74 53 65 6c 65 |er....sc|riptSele|
|00000380| 63 74 69 6f 6e 00 00 0b | 63 68 61 72 20 31 20 74 |ction...|char 1 t|
|00000390| 6f 20 30 07 73 63 72 69 | 70 74 00 00 00 04 00 00 |o 0.scri|pt......|
|000003a0| 03 ea 00 0d 4d 65 6e 75 | 20 4d 61 6e 61 67 65 72 |....Menu| Manager|
|000003b0| 00 00 00 09 50 42 a8 6f | 6e 20 70 72 65 4f 70 65 |....PB.o|n preOpe|
|000003c0| 6e 53 74 61 63 6b 0a 20 | 20 2d 2d 77 69 6e 64 6f |nStack. | --windo|
|000003d0| 77 20 70 6f 73 69 74 69 | 6f 6e 69 6e 67 0a 20 20 |w positi|oning. |
|000003e0| 70 75 74 20 74 68 65 20 | 63 52 45 56 4d 65 6e 75 |put the |cREVMenu|
|000003f0| 4d 61 6e 61 67 65 72 54 | 6f 70 4c 65 66 74 20 6f |ManagerT|opLeft o|
|00000400| 66 20 73 74 61 63 6b 20 | 22 72 65 76 50 72 65 66 |f stack |"revPref|
|00000410| 65 72 65 6e 63 65 73 22 | 20 69 6e 74 6f 20 74 54 |erences"| into tT|
|00000420| 6f 70 4c 65 66 74 0a 20 | 20 69 66 20 74 54 6f 70 |opLeft. | if tTop|
|00000430| 4c 65 66 74 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |Left is |not empt|
|00000440| 79 20 74 68 65 6e 0a 20 | 20 20 20 69 66 20 69 74 |y then. | if it|
|00000450| 65 6d 20 31 20 6f 66 20 | 74 54 6f 70 4c 65 66 74 |em 1 of |tTopLeft|
|00000460| 20 2b 20 74 68 65 20 77 | 69 64 74 68 20 6f 66 20 | + the w|idth of |
|00000470| 74 68 69 73 20 73 74 61 | 63 6b 20 3c 20 69 74 65 |this sta|ck < ite|
|00000480| 6d 20 33 20 6f 66 20 74 | 68 65 20 77 69 6e 64 6f |m 3 of t|he windo|
|00000490| 77 42 6f 75 6e 64 69 6e | 67 52 65 63 74 20 5c 0a |wBoundin|gRect \.|
|000004a0| 20 20 20 20 20 20 20 20 | 61 6e 64 20 69 74 65 6d | |and item|
|000004b0| 20 32 20 6f 66 20 74 54 | 6f 70 4c 65 66 74 20 2b | 2 of tT|opLeft +|
|000004c0| 20 74 68 65 20 68 65 69 | 67 68 74 20 6f 66 20 74 | the hei|ght of t|
|000004d0| 68 69 73 20 73 74 61 63 | 6b 20 3c 20 69 74 65 6d |his stac|k < item|
|000004e0| 20 34 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 | 4 of th|e window|
|000004f0| 42 6f 75 6e 64 69 6e 67 | 52 65 63 74 20 74 68 65 |Bounding|Rect the|
|00000500| 6e 0a 20 20 20 20 20 20 | 73 65 74 20 74 68 65 20 |n. |set the |
|00000510| 74 6f 70 4c 65 66 74 20 | 6f 66 20 74 68 69 73 20 |topLeft |of this |
|00000520| 73 74 61 63 6b 20 74 6f | 20 74 54 6f 70 4c 65 66 |stack to| tTopLef|
|00000530| 74 0a 20 20 20 20 65 6c | 73 65 20 0a 20 20 20 20 |t. el|se . |
|00000540| 20 20 73 65 74 20 6c 6f | 63 20 6f 66 20 74 68 69 | set lo|c of thi|
|00000550| 73 20 73 74 61 63 6b 20 | 74 6f 20 74 68 65 20 73 |s stack |to the s|
|00000560| 63 72 65 65 6e 4c 6f 63 | 0a 20 20 20 20 65 6e 64 |creenLoc|. end|
|00000570| 20 69 66 0a 20 20 65 6c | 73 65 20 73 65 74 20 74 | if. el|se set t|
|00000580| 68 65 20 6c 6f 63 20 6f | 66 20 74 68 69 73 20 73 |he loc o|f this s|
|00000590| 74 61 63 6b 20 74 6f 20 | 74 68 65 20 73 63 72 65 |tack to |the scre|
|000005a0| 65 6e 4c 6f 63 0a 20 20 | 0a 20 20 72 65 76 4d 65 |enLoc. |. revMe|
|000005b0| 6e 75 4d 61 6e 61 67 65 | 72 49 6e 69 74 69 61 6c |nuManage|rInitial|
|000005c0| 69 73 61 74 69 6f 6e 0a | 20 20 72 65 76 52 65 73 |isation.| revRes|
|000005d0| 65 74 0a 20 20 72 65 76 | 49 6e 69 74 69 61 6c 69 |et. rev|Initiali|
|000005e0| 73 65 0a 20 20 70 61 73 | 73 20 70 72 65 4f 70 65 |se. pas|s preOpe|
|000005f0| 6e 53 74 61 63 6b 0a 65 | 6e 64 20 70 72 65 4f 70 |nStack.e|nd preOp|
|00000600| 65 6e 53 74 61 63 6b 0a | 0a 6f 6e 20 72 65 73 75 |enStack.|.on resu|
|00000610| 6d 65 53 74 61 63 6b 0a | 20 20 69 66 20 74 68 65 |meStack.| if the|
|00000620| 20 68 69 6c 69 74 65 20 | 6f 66 20 62 74 6e 20 22 | hilite |of btn "|
|00000630| 4d 61 63 4f 53 20 50 72 | 65 76 69 65 77 22 0a 20 |MacOS Pr|eview". |
|00000640| 20 74 68 65 6e 20 73 65 | 74 20 74 68 65 20 64 65 | then se|t the de|
|00000650| 66 61 75 6c 74 4d 65 6e | 75 42 61 72 20 74 6f 20 |faultMen|uBar to |
|00000660| 74 68 65 20 73 68 6f 72 | 74 20 6e 61 6d 65 20 6f |the shor|t name o|
|00000670| 66 20 62 67 20 69 64 20 | 28 74 68 65 20 63 52 45 |f bg id |(the cRE|
|00000680| 56 4d 65 6e 75 49 44 20 | 6f 66 20 74 68 69 73 20 |VMenuID |of this |
|00000690| 73 74 61 63 6b 29 20 5c | 0a 20 20 20 20 20 20 6f |stack) \|. o|
|000006a0| 66 20 73 74 61 63 6b 20 | 28 74 68 65 20 63 52 45 |f stack |(the cRE|
|000006b0| 56 44 65 66 61 75 6c 74 | 53 74 61 63 6b 20 6f 66 |VDefault|Stack of|
|000006c0| 20 74 68 69 73 20 73 74 | 61 63 6b 29 0a 65 6e 64 | this st|ack).end|
|000006d0| 20 72 65 73 75 6d 65 53 | 74 61 63 6b 0a 0a 6f 6e | resumeS|tack..on|
|000006e0| 20 64 65 6c 65 74 65 4b | 65 79 0a 20 20 69 66 20 | deleteK|ey. if |
|000006f0| 74 68 65 20 74 61 72 67 | 65 74 20 69 73 20 6d 65 |the targ|et is me|
|00000700| 0a 20 20 74 68 65 6e 20 | 63 6c 69 63 6b 20 61 74 |. then |click at|
|00000710| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 62 74 6e 20 | the loc| of btn |
|00000720| 22 44 65 6c 65 74 65 20 | 4d 65 6e 75 22 0a 20 20 |"Delete |Menu". |
|00000730| 70 61 73 73 20 64 65 6c | 65 74 65 4b 65 79 0a 65 |pass del|eteKey.e|
|00000740| 6e 64 20 64 65 6c 65 74 | 65 4b 65 79 0a 0a 6f 6e |nd delet|eKey..on|
|00000750| 20 72 65 76 4d 65 6e 75 | 4d 61 6e 61 67 65 72 49 | revMenu|ManagerI|
|00000760| 6e 69 74 69 61 6c 69 73 | 61 74 69 6f 6e 0a 20 20 |nitialis|ation. |
|00000770| 67 6c 6f 62 61 6c 20 67 | 52 45 56 54 65 78 74 48 |global g|REVTextH|
|00000780| 65 69 67 68 74 0a 20 20 | 2d 2d 73 74 75 66 66 20 |eight. |--stuff |
|00000790| 74 68 61 74 20 6f 6e 6c | 79 20 6e 65 65 64 73 20 |that onl|y needs |
|000007a0| 74 6f 20 62 65 20 64 6f | 6e 65 20 6f 6e 63 65 0a |to be do|ne once.|
|000007b0| 20 20 2d 2d 69 6e 69 74 | 69 61 6c 69 73 61 74 69 | --init|ialisati|
|000007c0| 6f 6e 0a 20 20 69 66 20 | 67 52 45 56 54 65 78 74 |on. if |gREVText|
|000007d0| 48 65 69 67 68 74 20 69 | 73 20 65 6d 70 74 79 20 |Height i|s empty |
|000007e0| 74 68 65 6e 20 70 75 74 | 20 31 36 20 69 6e 74 6f |then put| 16 into|
|000007f0| 20 67 52 45 56 54 65 78 | 74 48 65 69 67 68 74 0a | gREVTex|tHeight.|
|00000800| 20 20 73 65 74 20 74 68 | 65 20 74 65 78 74 48 65 | set th|e textHe|
|00000810| 69 67 68 74 20 6f 66 20 | 66 6c 64 20 22 4d 65 6e |ight of |fld "Men|
|00000820| 75 20 42 75 74 74 6f 6e | 73 22 20 74 6f 20 67 52 |u Button|s" to gR|
|00000830| 45 56 54 65 78 74 48 65 | 69 67 68 74 0a 20 20 73 |EVTextHe|ight. s|
|00000840| 65 74 20 74 68 65 20 74 | 65 78 74 48 65 69 67 68 |et the t|extHeigh|
|00000850| 74 20 6f 66 20 66 6c 64 | 20 22 4d 65 6e 75 20 49 |t of fld| "Menu I|
|00000860| 74 65 6d 73 22 20 74 6f | 20 67 52 45 56 54 65 78 |tems" to| gREVTex|
|00000870| 74 48 65 69 67 68 74 0a | 20 20 72 65 76 49 6e 69 |tHeight.| revIni|
|00000880| 74 69 61 6c 69 73 65 46 | 69 65 6c 64 49 63 6f 6e |tialiseF|ieldIcon|
|00000890| 73 0a 20 20 0a 20 20 2d | 2d 61 76 6f 69 64 20 73 |s. . -|-avoid s|
|000008a0| 65 6e 64 69 6e 67 20 6d | 65 73 73 61 67 65 20 74 |ending m|essage t|
|000008b0| 72 69 67 67 65 72 65 64 | 20 62 79 20 63 6c 6f 73 |riggered| by clos|
|000008c0| 65 20 66 69 65 6c 64 20 | 77 68 65 6e 20 74 68 65 |e field |when the|
|000008d0| 20 73 74 61 63 6b 20 69 | 73 20 63 6c 6f 73 65 64 | stack i|s closed|
|000008e0| 0a 20 20 73 65 74 20 74 | 68 65 20 63 52 45 56 43 |. set t|he cREVC|
|000008f0| 6c 6f 73 69 6e 67 20 6f | 66 20 74 68 69 73 20 73 |losing o|f this s|
|00000900| 74 61 63 6b 20 74 6f 20 | 66 61 6c 73 65 0a 20 20 |tack to |false. |
|00000910| 20 20 0a 20 20 2d 2d 62 | 75 67 20 69 6e 20 74 68 | . --b|ug in th|
|00000920| 65 20 73 63 72 6f 6c 6c | 62 61 72 77 69 64 74 68 |e scroll|barwidth|
|00000930| 20 6f 6e 20 6d 6f 74 69 | 66 20 20 0a 20 20 69 66 | on moti|f . if|
|00000940| 20 74 68 65 20 6c 6f 6f | 6b 41 6e 64 46 65 65 6c | the loo|kAndFeel|
|00000950| 20 69 73 20 22 4d 6f 74 | 69 66 22 0a 20 20 74 68 | is "Mot|if". th|
|00000960| 65 6e 20 73 65 74 20 74 | 68 65 20 72 69 67 68 74 |en set t|he right|
|00000970| 20 6f 66 20 62 74 6e 20 | 22 4d 65 6e 75 20 49 6e | of btn |"Menu In|
|00000980| 73 65 72 74 69 6f 6e 20 | 41 72 72 6f 77 22 20 74 |sertion |Arrow" t|
|00000990| 6f 20 31 34 30 0a 20 20 | 65 6c 73 65 20 73 65 74 |o 140. |else set|
|000009a0| 20 74 68 65 20 72 69 67 | 68 74 20 6f 66 20 62 74 | the rig|ht of bt|
|000009b0| 6e 20 22 4d 65 6e 75 20 | 49 6e 73 65 72 74 69 6f |n "Menu |Insertio|
|000009c0| 6e 20 41 72 72 6f 77 22 | 20 74 6f 20 31 34 34 0a |n Arrow"| to 144.|
|000009d0| 20 20 0a 20 20 2d 2d 73 | 68 6f 77 49 6e 76 69 73 | . --s|howInvis|
|000009e0| 69 62 6c 65 73 20 63 6f | 6d 70 61 74 69 62 6c 65 |ibles co|mpatible|
|000009f0| 20 73 65 6c 65 63 74 69 | 6f 6e 20 6f 66 20 64 69 | selecti|on of di|
|00000a00| 66 66 65 72 65 6e 74 20 | 70 72 65 76 69 65 77 20 |fferent |preview |
|00000a10| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 70 6c 61 |accordin|g to pla|
|00000a20| 74 66 6f 72 6d 0a 20 20 | 2d 2d 4d 61 63 4f 53 20 |tform. |--MacOS |
|00000a30| 68 61 73 20 63 68 65 63 | 6b 62 6f 78 20 74 6f 20 |has chec|kbox to |
|00000a40| 70 72 65 76 69 65 77 20 | 6d 65 6e 75 20 62 61 72 |preview |menu bar|
|00000a50| 0a 20 20 2d 2d 57 69 6e | 64 6f 77 73 2f 55 6e 69 |. --Win|dows/Uni|
|00000a60| 78 20 68 61 73 20 61 20 | 6d 65 6e 75 20 62 75 74 |x has a |menu but|
|00000a70| 74 6f 6e 20 77 68 69 63 | 68 20 70 72 65 76 69 65 |ton whic|h previe|
|00000a80| 77 73 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 20 |ws the s|elected |
|00000a90| 6d 65 6e 75 0a 20 20 0a | 20 20 69 66 20 74 68 65 |menu. .| if the|
|00000aa0| 20 70 6c 61 74 66 6f 72 | 6d 20 69 73 20 22 4d 61 | platfor|m is "Ma|
|00000ab0| 63 4f 53 22 20 20 74 68 | 65 6e 20 20 20 20 20 0a |cOS" th|en .|
|00000ac0| 20 20 20 20 73 65 74 20 | 74 68 65 20 74 6f 70 4c | set |the topL|
|00000ad0| 65 66 74 20 6f 66 20 62 | 74 6e 20 22 4d 61 63 4f |eft of b|tn "MacO|
|00000ae0| 53 20 50 72 65 76 69 65 | 77 22 20 74 6f 20 74 68 |S Previe|w" to th|
|00000af0| 65 20 63 54 6f 70 4c 65 | 66 74 20 6f 66 20 62 74 |e cTopLe|ft of bt|
|00000b00| 6e 20 22 4d 61 63 4f 53 | 20 50 72 65 76 69 65 77 |n "MacOS| Preview|
|00000b10| 22 0a 20 20 20 20 73 65 | 74 20 74 68 65 20 62 6f |". se|t the bo|
|00000b20| 74 74 6f 6d 20 6f 66 20 | 67 72 70 20 22 57 69 6e |ttom of |grp "Win|
|00000b30| 64 6f 77 73 20 50 72 65 | 76 69 65 77 22 20 74 6f |dows Pre|view" to|
|00000b40| 20 2d 31 30 30 0a 20 20 | 65 6c 73 65 20 0a 20 20 | -100. |else . |
|00000b50| 20 20 73 65 74 20 74 68 | 65 20 62 6f 74 74 6f 6d | set th|e bottom|
|00000b60| 20 6f 66 20 62 74 6e 20 | 22 4d 61 63 4f 53 20 50 | of btn |"MacOS P|
|00000b70| 72 65 76 69 65 77 22 20 | 74 6f 20 2d 31 30 30 0a |review" |to -100.|
|00000b80| 20 20 20 20 73 65 74 20 | 74 68 65 20 62 6f 74 74 | set |the bott|
|00000b90| 6f 6d 20 6f 66 20 67 72 | 70 20 22 57 69 6e 64 6f |om of gr|p "Windo|
|00000ba0| 77 73 20 50 72 65 76 69 | 65 77 22 20 74 6f 20 32 |ws Previ|ew" to 2|
|00000bb0| 34 0a 20 20 65 6e 64 20 | 69 66 20 20 20 0a 20 20 |4. end |if . |
|00000bc0| 20 0a 20 20 73 65 74 20 | 74 68 65 20 63 52 45 56 | . set |the cREV|
|00000bd0| 46 69 72 73 74 53 65 6c | 65 63 74 65 64 53 74 61 |FirstSel|ectedSta|
|00000be0| 63 6b 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |ck of th|is stack|
|00000bf0| 20 74 6f 20 65 6d 70 74 | 79 20 20 0a 65 6e 64 20 | to empt|y .end |
|00000c00| 72 65 76 4d 65 6e 75 4d | 61 6e 61 67 65 72 49 6e |revMenuM|anagerIn|
|00000c10| 69 74 69 61 6c 69 73 61 | 74 69 6f 6e 0a 0a 6f 6e |itialisa|tion..on|
|00000c20| 20 72 65 76 52 65 73 65 | 74 0a 20 20 70 75 74 20 | revRese|t. put |
|00000c30| 65 6d 70 74 79 20 69 6e | 74 6f 20 66 6c 64 20 22 |empty in|to fld "|
|00000c40| 4d 65 6e 75 62 61 72 22 | 0a 20 20 70 75 74 20 65 |Menubar"|. put e|
|00000c50| 6d 70 74 79 20 69 6e 74 | 6f 20 66 6c 64 20 22 4d |mpty int|o fld "M|
|00000c60| 65 6e 75 20 42 75 74 74 | 6f 6e 73 22 0a 20 20 73 |enu Butt|ons". s|
|00000c70| 65 74 20 74 68 65 20 63 | 52 45 56 4d 65 6e 75 42 |et the c|REVMenuB|
|00000c80| 75 74 74 6f 6e 43 61 72 | 64 49 44 20 6f 66 20 74 |uttonCar|dID of t|
|00000c90| 68 69 73 20 73 74 61 63 | 6b 20 74 6f 20 65 6d 70 |his stac|k to emp|
|00000ca0| 74 79 0a 20 20 73 65 74 | 20 74 68 65 20 63 52 45 |ty. set| the cRE|
|00000cb0| 56 4d 65 6e 75 62 61 72 | 20 6f 66 20 74 68 69 73 |VMenubar| of this|
|00000cc0| 20 73 74 61 63 6b 20 74 | 6f 20 65 6d 70 74 79 0a | stack t|o empty.|
|00000cd0| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 44 65 | set th|e cREVDe|
|00000ce0| 66 61 75 6c 74 53 74 61 | 63 6b 20 6f 66 20 74 68 |faultSta|ck of th|
|00000cf0| 69 73 20 73 74 61 63 6b | 20 74 6f 20 65 6d 70 74 |is stack| to empt|
|00000d00| 79 0a 20 20 73 65 74 20 | 74 68 65 20 63 52 45 56 |y. set |the cREV|
|00000d10| 4d 65 6e 75 42 75 74 74 | 6f 6e 49 44 73 20 6f 66 |MenuButt|onIDs of|
|00000d20| 20 74 68 69 73 20 73 74 | 61 63 6b 20 74 6f 20 65 | this st|ack to e|
|00000d30| 6d 70 74 79 0a 20 20 73 | 65 74 20 74 68 65 20 63 |mpty. s|et the c|
|00000d40| 52 45 56 49 74 65 6d 73 | 44 69 73 61 62 6c 65 64 |REVItems|Disabled|
|00000d50| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 20 74 | of this| stack t|
|00000d60| 6f 20 65 6d 70 74 79 0a | 20 20 73 65 74 20 74 68 |o empty.| set th|
|00000d70| 65 20 63 52 45 56 4d 65 | 6e 75 62 61 72 4e 75 6d |e cREVMe|nubarNum|
|00000d80| 62 65 72 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |ber of t|his stac|
|00000d90| 6b 20 74 6f 20 30 0a 20 | 20 73 65 74 20 74 68 65 |k to 0. | set the|
|00000da0| 20 63 52 45 56 4d 65 6e | 75 49 44 20 6f 66 20 74 | cREVMen|uID of t|
|00000db0| 68 69 73 20 73 74 61 63 | 6b 20 74 6f 20 65 6d 70 |his stac|k to emp|
|00000dc0| 74 79 0a 20 20 73 65 74 | 20 74 68 65 20 74 69 74 |ty. set| the tit|
|00000dd0| 6c 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |le of th|is stack|
|00000de0| 20 74 6f 20 22 4d 65 6e | 75 20 42 75 69 6c 64 65 | to "Men|u Builde|
|00000df0| 72 22 0a 65 6e 64 20 72 | 65 76 52 65 73 65 74 0a |r".end r|evReset.|
|00000e00| 0a 6f 6e 20 63 6c 6f 73 | 65 53 74 61 63 6b 52 65 |.on clos|eStackRe|
|00000e10| 71 75 65 73 74 0a 20 20 | 2d 2d 61 76 6f 69 64 20 |quest. |--avoid |
|00000e20| 73 65 6e 64 69 6e 67 20 | 6d 65 73 73 61 67 65 73 |sending |messages|
|00000e30| 20 74 72 69 67 67 65 72 | 65 64 20 62 79 20 63 6c | trigger|ed by cl|
|00000e40| 6f 73 65 46 69 65 6c 64 | 0a 20 20 2d 2d 77 68 65 |oseField|. --whe|
|00000e50| 6e 20 74 68 65 20 73 74 | 61 63 6b 20 69 73 20 61 |n the st|ack is a|
|00000e60| 63 74 75 61 6c 6c 79 20 | 63 6c 6f 73 69 6e 67 0a |ctually |closing.|
|00000e70| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 43 6c | set th|e cREVCl|
|00000e80| 6f 73 69 6e 67 20 6f 66 | 20 74 68 69 73 20 73 74 |osing of| this st|
|00000e90| 61 63 6b 20 74 6f 20 74 | 72 75 65 0a 20 20 70 61 |ack to t|rue. pa|
|00000ea0| 73 73 20 63 6c 6f 73 65 | 53 74 61 63 6b 52 65 71 |ss close|StackReq|
|00000eb0| 75 65 73 74 0a 65 6e 64 | 20 63 6c 6f 73 65 53 74 |uest.end| closeSt|
|00000ec0| 61 63 6b 52 65 71 75 65 | 73 74 0a 0a 6f 6e 20 63 |ackReque|st..on c|
|00000ed0| 6c 6f 73 65 53 74 61 63 | 6b 0a 20 20 73 65 74 20 |loseStac|k. set |
|00000ee0| 74 68 65 20 64 65 66 61 | 75 6c 74 4d 65 6e 75 62 |the defa|ultMenub|
|00000ef0| 61 72 20 74 6f 20 74 68 | 65 20 73 68 6f 72 74 20 |ar to th|e short |
|00000f00| 6e 61 6d 65 20 6f 66 20 | 67 72 70 20 22 72 65 76 |name of |grp "rev|
|00000f10| 4d 65 6e 75 42 61 72 22 | 20 6f 66 20 63 64 20 31 |MenuBar"| of cd 1|
|00000f20| 20 6f 66 20 73 74 61 63 | 6b 20 22 72 65 76 4d 65 | of stac|k "revMe|
|00000f30| 6e 75 42 61 72 22 0a 20 | 20 73 65 74 20 74 68 65 |nuBar". | set the|
|00000f40| 20 63 52 45 56 4d 65 6e | 75 4d 61 6e 61 67 65 72 | cREVMen|uManager|
|00000f50| 54 6f 70 6c 65 66 74 20 | 6f 66 20 73 74 61 63 6b |Topleft |of stack|
|00000f60| 20 22 72 65 76 50 72 65 | 66 65 72 65 6e 63 65 73 | "revPre|ferences|
|00000f70| 22 20 74 6f 20 74 68 65 | 20 74 6f 70 4c 65 66 74 |" to the| topLeft|
|00000f80| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 0a 20 | of this| stack. |
|00000f90| 20 70 61 73 73 20 63 6c | 6f 73 65 53 74 61 63 6b | pass cl|oseStack|
|00000fa0| 0a 65 6e 64 20 63 6c 6f | 73 65 53 74 61 63 6b 0a |.end clo|seStack.|
|00000fb0| 0a 6f 6e 20 72 65 76 49 | 6e 69 74 69 61 6c 69 73 |.on revI|nitialis|
|00000fc0| 65 46 69 65 6c 64 49 63 | 6f 6e 73 0a 20 20 2d 2d |eFieldIc|ons. --|
|00000fd0| 63 6c 6f 6e 65 20 66 6f | 6c 64 6f 75 74 20 74 72 |clone fo|ldout tr|
|00000fe0| 69 61 6e 67 6c 65 73 20 | 61 63 63 6f 72 64 69 6e |iangles |accordin|
|00000ff0| 67 20 74 6f 20 73 69 7a | 65 20 6f 66 20 49 74 65 |g to siz|e of Ite|
|00001000| 6d 73 20 66 6c 64 0a 20 | 20 67 6c 6f 62 61 6c 20 |ms fld. | global |
|00001010| 67 52 45 56 54 65 78 74 | 48 65 69 67 68 74 0a 20 |gREVText|Height. |
|00001020| 20 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0a 20 20 6c | lock sc|reen. l|
|00001030| 6f 63 6b 20 6d 65 73 73 | 61 67 65 73 0a 20 20 70 |ock mess|ages. p|
|00001040| 75 74 20 74 68 65 20 6e | 75 6d 20 6f 66 20 62 74 |ut the n|um of bt|
|00001050| 6e 73 20 69 6e 20 67 72 | 70 20 22 46 6f 6c 64 6f |ns in gr|p "Foldo|
|00001060| 75 74 20 54 72 69 61 6e | 67 6c 65 73 22 20 69 6e |ut Trian|gles" in|
|00001070| 74 6f 20 74 4e 75 6d 4f | 6c 64 42 75 74 74 6f 6e |to tNumO|ldButton|
|00001080| 73 0a 20 20 69 66 20 74 | 4e 75 6d 4f 6c 64 42 75 |s. if t|NumOldBu|
|00001090| 74 74 6f 6e 73 20 3e 20 | 31 20 74 68 65 6e 0a 20 |ttons > |1 then. |
|000010a0| 20 20 20 72 65 70 65 61 | 74 20 77 69 74 68 20 69 | repea|t with i|
|000010b0| 20 3d 20 74 4e 75 6d 4f | 6c 64 42 75 74 74 6f 6e | = tNumO|ldButton|
|000010c0| 73 20 64 6f 77 6e 20 74 | 6f 20 32 0a 20 20 20 20 |s down t|o 2. |
|000010d0| 20 20 64 65 6c 65 74 65 | 20 62 74 6e 20 69 20 6f | delete| btn i o|
|000010e0| 66 20 67 72 70 20 22 46 | 6f 6c 64 6f 75 74 20 54 |f grp "F|oldout T|
|000010f0| 72 69 61 6e 67 6c 65 73 | 22 0a 20 20 20 20 65 6e |riangles|". en|
|00001100| 64 20 72 65 70 65 61 74 | 0a 20 20 65 6e 64 20 69 |d repeat|. end i|
|00001110| 66 0a 20 20 0a 20 20 69 | 66 20 74 68 65 20 70 6c |f. . i|f the pl|
|00001120| 61 74 66 6f 72 6d 20 69 | 73 20 22 4d 61 63 4f 53 |atform i|s "MacOS|
|00001130| 22 20 74 68 65 6e 0a 20 | 20 20 20 73 65 74 20 74 |" then. | set t|
|00001140| 68 65 20 69 63 6f 6e 20 | 6f 66 20 62 74 6e 20 31 |he icon |of btn 1|
|00001150| 20 6f 66 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | of grp |"Foldout|
|00001160| 20 54 72 69 61 6e 67 6c | 65 73 22 20 74 6f 20 32 | Triangl|es" to 2|
|00001170| 30 30 39 34 36 0a 20 20 | 20 20 73 65 74 20 74 68 |00946. | set th|
|00001180| 65 20 63 52 45 56 49 63 | 6f 6e 20 6f 66 20 62 74 |e cREVIc|on of bt|
|00001190| 6e 20 31 20 6f 66 20 67 | 72 70 20 22 46 6f 6c 64 |n 1 of g|rp "Fold|
|000011a0| 6f 75 74 20 54 72 69 61 | 6e 67 6c 65 73 22 20 74 |out Tria|ngles" t|
|000011b0| 6f 20 32 30 30 39 34 36 | 0a 20 20 20 20 73 65 74 |o 200946|. set|
|000011c0| 20 74 68 65 20 68 69 6c | 69 74 65 49 63 6f 6e 20 | the hil|iteIcon |
|000011d0| 6f 66 20 62 74 6e 20 31 | 20 6f 66 20 67 72 70 20 |of btn 1| of grp |
|000011e0| 22 46 6f 6c 64 6f 75 74 | 20 54 72 69 61 6e 67 6c |"Foldout| Triangl|
|000011f0| 65 73 22 20 74 6f 20 32 | 30 30 39 35 31 0a 20 20 |es" to 2|00951. |
|00001200| 65 6c 73 65 0a 20 20 20 | 20 73 65 74 20 74 68 65 |else. | set the|
|00001210| 20 69 63 6f 6e 20 6f 66 | 20 62 74 6e 20 31 20 6f | icon of| btn 1 o|
|00001220| 66 20 67 72 70 20 22 46 | 6f 6c 64 6f 75 74 20 54 |f grp "F|oldout T|
|00001230| 72 69 61 6e 67 6c 65 73 | 22 20 74 6f 20 32 30 30 |riangles|" to 200|
|00001240| 30 38 36 0a 20 20 20 20 | 73 65 74 20 74 68 65 20 |086. |set the |
|00001250| 63 52 45 56 49 63 6f 6e | 20 6f 66 20 62 74 6e 20 |cREVIcon| of btn |
|00001260| 31 20 6f 66 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |1 of grp| "Foldou|
|00001270| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 20 74 6f 20 |t Triang|les" to |
|00001280| 32 30 30 30 38 36 0a 20 | 20 20 20 73 65 74 20 74 |200086. | set t|
|00001290| 68 65 20 68 69 6c 69 74 | 65 49 63 6f 6e 20 6f 66 |he hilit|eIcon of|
|000012a0| 20 62 74 6e 20 31 20 6f | 66 20 67 72 70 20 22 46 | btn 1 o|f grp "F|
|000012b0| 6f 6c 64 6f 75 74 20 54 | 72 69 61 6e 67 6c 65 73 |oldout T|riangles|
|000012c0| 22 20 74 6f 20 32 30 30 | 30 38 37 0a 20 20 65 6e |" to 200|087. en|
|000012d0| 64 20 69 66 0a 20 20 65 | 6e 61 62 6c 65 20 62 74 |d if. e|nable bt|
|000012e0| 6e 20 31 20 6f 66 20 67 | 72 70 20 22 46 6f 6c 64 |n 1 of g|rp "Fold|
|000012f0| 6f 75 74 20 54 72 69 61 | 6e 67 6c 65 73 22 0a 20 |out Tria|ngles". |
|00001300| 20 75 6e 68 69 6c 69 74 | 65 20 62 74 6e 20 31 20 | unhilit|e btn 1 |
|00001310| 6f 66 20 67 72 70 20 22 | 46 6f 6c 64 6f 75 74 20 |of grp "|Foldout |
|00001320| 54 72 69 61 6e 67 6c 65 | 73 22 0a 20 20 73 65 74 |Triangle|s". set|
|00001330| 20 74 68 65 20 73 68 6f | 77 49 63 6f 6e 20 6f 66 | the sho|wIcon of|
|00001340| 20 62 74 6e 20 31 20 6f | 66 20 67 72 70 20 22 46 | btn 1 o|f grp "F|
|00001350| 6f 6c 64 6f 75 74 20 54 | 72 69 61 6e 67 6c 65 73 |oldout T|riangles|
|00001360| 22 20 74 6f 20 66 61 6c | 73 65 0a 20 20 0a 20 20 |" to fal|se. . |
|00001370| 70 75 74 20 72 6f 75 6e | 64 28 28 74 68 65 20 68 |put roun|d((the h|
|00001380| 65 69 67 68 74 20 6f 66 | 20 66 6c 64 20 22 4d 65 |eight of| fld "Me|
|00001390| 6e 75 20 49 74 65 6d 73 | 22 29 2f 67 52 45 56 54 |nu Items|")/gREVT|
|000013a0| 65 78 74 48 65 69 67 68 | 74 29 20 69 6e 74 6f 20 |extHeigh|t) into |
|000013b0| 74 4e 75 6d 4c 69 6e 65 | 73 0a 20 20 70 75 74 20 |tNumLine|s. put |
|000013c0| 74 68 65 20 74 6f 70 4c | 65 66 74 20 6f 66 20 62 |the topL|eft of b|
|000013d0| 74 6e 20 31 20 6f 66 20 | 67 72 70 20 22 46 6f 6c |tn 1 of |grp "Fol|
|000013e0| 64 6f 75 74 20 54 72 69 | 61 6e 67 6c 65 73 22 20 |dout Tri|angles" |
|000013f0| 69 6e 74 6f 20 74 54 6f | 70 4c 65 66 74 0a 20 20 |into tTo|pLeft. |
|00001400| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|00001410| 32 20 74 6f 20 74 4e 75 | 6d 4c 69 6e 65 73 0a 20 |2 to tNu|mLines. |
|00001420| 20 20 20 63 6c 6f 6e 65 | 20 62 74 6e 20 31 20 6f | clone| btn 1 o|
|00001430| 66 20 67 72 70 20 22 46 | 6f 6c 64 6f 75 74 20 54 |f grp "F|oldout T|
|00001440| 72 69 61 6e 67 6c 65 73 | 22 20 20 20 20 0a 20 20 |riangles|" . |
|00001450| 20 20 61 64 64 20 67 52 | 45 56 54 65 78 74 48 65 | add gR|EVTextHe|
|00001460| 69 67 68 74 20 74 6f 20 | 69 74 65 6d 20 32 20 6f |ight to |item 2 o|
|00001470| 66 20 74 54 6f 70 4c 65 | 66 74 0a 20 20 20 20 73 |f tTopLe|ft. s|
|00001480| 65 74 20 74 68 65 20 74 | 6f 70 4c 65 66 74 20 6f |et the t|opLeft o|
|00001490| 66 20 62 74 6e 20 69 20 | 6f 66 20 67 72 70 20 22 |f btn i |of grp "|
|000014a0| 46 6f 6c 64 6f 75 74 20 | 54 72 69 61 6e 67 6c 65 |Foldout |Triangle|
|000014b0| 73 22 20 74 6f 20 74 54 | 6f 70 4c 65 66 74 0a 20 |s" to tT|opLeft. |
|000014c0| 20 65 6e 64 20 72 65 70 | 65 61 74 0a 20 20 75 6e | end rep|eat. un|
|000014d0| 6c 6f 63 6b 20 6d 65 73 | 73 61 67 65 73 0a 20 20 |lock mes|sages. |
|000014e0| 75 6e 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0a 65 6e |unlock s|creen.en|
|000014f0| 64 20 72 65 76 49 6e 69 | 74 69 61 6c 69 73 65 46 |d revIni|tialiseF|
|00001500| 69 65 6c 64 49 63 6f 6e | 73 0a 0a 6f 6e 20 72 65 |ieldIcon|s..on re|
|00001510| 76 4c 61 79 6f 75 74 4d | 65 6e 75 42 75 74 74 6f |vLayoutM|enuButto|
|00001520| 6e 73 0a 20 20 2d 2d 6c | 61 79 6f 75 74 20 62 75 |ns. --l|ayout bu|
|00001530| 74 74 6f 6e 73 20 66 72 | 6f 6d 20 6c 65 66 74 20 |ttons fr|om left |
|00001540| 74 6f 20 72 69 67 68 74 | 20 61 63 63 6f 72 64 69 |to right| accordi|
|00001550| 6e 67 20 74 6f 20 6f 72 | 64 65 72 20 69 6e 20 4d |ng to or|der in M|
|00001560| 65 6e 75 20 42 75 74 74 | 6f 6e 73 20 66 69 65 6c |enu Butt|ons fiel|
|00001570| 64 0a 20 20 2d 2d 61 6e | 64 20 73 65 74 20 74 68 |d. --an|d set th|
|00001580| 65 20 76 69 73 75 61 6c | 20 72 65 70 72 65 73 65 |e visual| represe|
|00001590| 6e 74 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 6d |ntation |of the m|
|000015a0| 65 6e 75 20 6d 6e 65 6d | 6f 6e 69 63 73 0a 20 20 |enu mnem|onics. |
|000015b0| 70 75 74 20 74 68 65 20 | 63 52 45 56 4d 65 6e 75 |put the |cREVMenu|
|000015c0| 42 75 74 74 6f 6e 49 44 | 73 20 6f 66 20 74 68 69 |ButtonID|s of thi|
|000015d0| 73 20 73 74 61 63 6b 20 | 69 6e 74 6f 20 74 4d 65 |s stack |into tMe|
|000015e0| 6e 75 42 75 74 74 6f 6e | 49 44 73 0a 20 20 70 75 |nuButton|IDs. pu|
|000015f0| 74 20 74 68 65 20 63 52 | 45 56 4d 65 6e 75 49 44 |t the cR|EVMenuID|
|00001600| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 20 69 | of this| stack i|
|00001610| 6e 74 6f 20 74 4d 65 6e | 75 49 44 0a 20 20 70 75 |nto tMen|uID. pu|
|00001620| 74 20 74 68 65 20 63 52 | 45 56 4d 65 6e 75 42 75 |t the cR|EVMenuBu|
|00001630| 74 74 6f 6e 43 61 72 64 | 49 44 20 6f 66 20 74 68 |ttonCard|ID of th|
|00001640| 69 73 20 73 74 61 63 6b | 20 69 6e 74 6f 20 74 43 |is stack| into tC|
|00001650| 61 72 64 49 44 0a 20 20 | 70 75 74 20 31 20 69 6e |ardID. |put 1 in|
|00001660| 74 6f 20 74 4e 65 78 74 | 4c 65 66 74 0a 20 20 20 |to tNext|Left. |
|00001670| 0a 20 20 73 65 74 20 74 | 68 65 20 64 65 66 61 75 |. set t|he defau|
|00001680| 6c 74 53 74 61 63 6b 20 | 74 6f 20 74 68 65 20 63 |ltStack |to the c|
|00001690| 52 45 56 44 65 66 61 75 | 6c 74 53 74 61 63 6b 20 |REVDefau|ltStack |
|000016a0| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 0a 20 20 |of this |stack. |
|000016b0| 2d 2d 61 72 72 61 6e 67 | 65 20 72 65 63 74 20 6f |--arrang|e rect o|
|000016c0| 66 20 62 74 6e 73 20 66 | 6f 72 20 70 72 6f 70 65 |f btns f|or prope|
|000016d0| 72 20 70 6f 73 69 74 69 | 6f 6e 69 6e 67 20 69 6e |r positi|oning in|
|000016e0| 20 73 74 61 63 6b 20 77 | 69 6e 64 6f 77 0a 20 20 | stack w|indow. |
|000016f0| 72 65 70 65 61 74 20 66 | 6f 72 20 65 61 63 68 20 |repeat f|or each |
|00001700| 6c 69 6e 65 20 6c 20 69 | 6e 20 74 4d 65 6e 75 42 |line l i|n tMenuB|
|00001710| 75 74 74 6f 6e 49 44 73 | 0a 20 20 20 20 73 65 74 |uttonIDs|. set|
|00001720| 20 74 68 65 20 72 65 63 | 74 20 6f 66 20 62 74 6e | the rec|t of btn|
|00001730| 20 69 64 20 6c 20 6f 66 | 20 62 67 20 69 64 20 74 | id l of| bg id t|
|00001740| 4d 65 6e 75 49 44 20 74 | 6f 20 74 4e 65 78 74 4c |MenuID t|o tNextL|
|00001750| 65 66 74 2c 20 2d 31 2c | 20 74 4e 65 78 74 4c 65 |eft, -1,| tNextLe|
|00001760| 66 74 20 2b 20 74 68 65 | 20 66 6f 72 6d 61 74 74 |ft + the| formatt|
|00001770| 65 64 57 69 64 74 68 20 | 6f 66 20 62 74 6e 20 69 |edWidth |of btn i|
|00001780| 64 20 6c 20 6f 66 20 62 | 67 20 69 64 20 74 4d 65 |d l of b|g id tMe|
|00001790| 6e 75 49 44 20 2b 20 34 | 2c 20 2d 31 20 2b 20 74 |nuID + 4|, -1 + t|
|000017a0| 68 65 20 66 6f 72 6d 61 | 74 74 65 64 48 65 69 67 |he forma|ttedHeig|
|000017b0| 68 74 20 6f 66 20 62 74 | 6e 20 69 64 20 6c 20 6f |ht of bt|n id l o|
|000017c0| 66 20 62 67 20 69 64 20 | 74 4d 65 6e 75 49 44 20 |f bg id |tMenuID |
|000017d0| 2d 32 0a 20 20 20 20 61 | 64 64 20 74 68 65 20 77 |-2. a|dd the w|
|000017e0| 69 64 74 68 20 6f 66 20 | 62 74 6e 20 69 64 20 6c |idth of |btn id l|
|000017f0| 20 6f 66 20 62 67 20 69 | 64 20 74 4d 65 6e 75 49 | of bg i|d tMenuI|
|00001800| 44 20 74 6f 20 74 4e 65 | 78 74 4c 65 66 74 0a 20 |D to tNe|xtLeft. |
|00001810| 20 65 6e 64 20 72 65 70 | 65 61 74 0a 20 20 2d 2d | end rep|eat. --|
|00001820| 61 72 72 61 6e 67 65 20 | 6c 61 79 65 72 20 6f 66 |arrange |layer of|
|00001830| 20 62 74 6e 73 20 66 6f | 72 20 70 72 6f 70 65 72 | btns fo|r proper|
|00001840| 20 70 6f 73 69 74 69 6f | 6e 69 6e 67 20 6f 6e 20 | positio|ning on |
|00001850| 4d 61 63 4f 53 20 6d 65 | 6e 75 62 61 72 0a 20 20 |MacOS me|nubar. |
|00001860| 6c 6f 63 6b 20 6d 65 6e | 75 73 0a 20 20 70 75 74 |lock men|us. put|
|00001870| 20 74 68 65 20 72 65 6c | 61 79 65 72 47 72 6f 75 | the rel|ayerGrou|
|00001880| 70 65 64 43 6f 6e 74 72 | 6f 6c 73 20 69 6e 74 6f |pedContr|ols into|
|00001890| 20 74 4f 72 69 67 69 6e | 61 6c 52 65 6c 61 79 65 | tOrigin|alRelaye|
|000018a0| 72 47 72 6f 75 70 65 64 | 43 6f 6e 74 72 6f 6c 73 |rGrouped|Controls|
|000018b0| 0a 20 20 70 75 74 20 74 | 68 65 20 6d 65 6e 75 42 |. put t|he menuB|
|000018c0| 61 72 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |ar of th|is stack|
|000018d0| 20 69 6e 74 6f 20 74 4f | 72 69 67 69 6e 61 6c 4d | into tO|riginalM|
|000018e0| 65 6e 75 42 61 72 0a 20 | 20 70 75 74 20 74 68 65 |enuBar. | put the|
|000018f0| 20 64 65 66 61 75 6c 74 | 4d 65 6e 75 42 61 72 20 | default|MenuBar |
|00001900| 69 6e 74 6f 20 74 4f 72 | 69 67 69 6e 61 6c 44 65 |into tOr|iginalDe|
|00001910| 66 61 75 6c 74 4d 65 6e | 75 42 61 72 0a 20 20 0a |faultMen|uBar. .|
|00001920| 20 20 73 65 74 20 74 68 | 65 20 72 65 6c 61 79 65 | set th|e relaye|
|00001930| 72 47 72 6f 75 70 65 64 | 43 6f 6e 74 72 6f 6c 73 |rGrouped|Controls|
|00001940| 20 74 6f 20 74 72 75 65 | 0a 20 20 70 75 74 20 74 | to true|. put t|
|00001950| 68 65 20 6e 75 6d 20 6f | 66 20 6c 69 6e 65 73 20 |he num o|f lines |
|00001960| 69 6e 20 74 4d 65 6e 75 | 42 75 74 74 6f 6e 49 44 |in tMenu|ButtonID|
|00001970| 73 20 69 6e 74 6f 20 74 | 4e 75 6d 4c 69 6e 65 73 |s into t|NumLines|
|00001980| 0a 20 20 70 75 74 20 74 | 68 65 20 6c 61 79 65 72 |. put t|he layer|
|00001990| 20 6f 66 20 62 67 20 69 | 64 20 74 4d 65 6e 75 49 | of bg i|d tMenuI|
|000019a0| 44 20 2b 20 31 20 69 6e | 74 6f 20 74 4c 61 79 65 |D + 1 in|to tLaye|
|000019b0| 72 0a 20 20 72 65 70 65 | 61 74 20 77 69 74 68 20 |r. repe|at with |
|000019c0| 69 20 3d 20 74 4e 75 6d | 4c 69 6e 65 73 20 64 6f |i = tNum|Lines do|
|000019d0| 77 6e 20 74 6f 20 31 0a | 20 20 20 20 2d 2d 73 65 |wn to 1.| --se|
|000019e0| 74 20 6c 61 79 65 72 20 | 74 6f 20 62 65 20 63 6f |t layer |to be co|
|000019f0| 72 72 65 63 74 20 66 6f | 72 20 6d 65 6e 75 62 61 |rrect fo|r menuba|
|00001a00| 72 20 77 69 74 68 6f 75 | 74 20 72 65 6d 6f 76 69 |r withou|t removi|
|00001a10| 6e 67 20 74 68 65 20 62 | 75 74 74 6f 6e 20 66 72 |ng the b|utton fr|
|00001a20| 6f 6d 20 74 68 65 20 6d | 65 6e 75 20 67 72 6f 75 |om the m|enu grou|
|00001a30| 70 0a 20 20 20 20 70 75 | 74 20 74 68 65 20 6c 6f |p. pu|t the lo|
|00001a40| 6e 67 20 69 64 20 6f 66 | 20 62 74 6e 20 69 64 20 |ng id of| btn id |
|00001a50| 28 6c 69 6e 65 20 69 20 | 6f 66 20 74 4d 65 6e 75 |(line i |of tMenu|
|00001a60| 42 75 74 74 6f 6e 49 44 | 73 29 20 6f 66 20 62 67 |ButtonID|s) of bg|
|00001a70| 20 69 64 20 74 4d 65 6e | 75 49 44 20 69 6e 74 6f | id tMen|uID into|
|00001a80| 20 74 4d 65 6e 75 42 75 | 74 74 6f 6e 49 44 0a 20 | tMenuBu|ttonID. |
|00001a90| 20 20 20 73 65 74 20 74 | 68 65 20 6c 61 79 65 72 | set t|he layer|
|00001aa0| 20 6f 66 20 74 4d 65 6e | 75 42 75 74 74 6f 6e 49 | of tMen|uButtonI|
|00001ab0| 44 20 74 6f 20 74 4c 61 | 79 65 72 0a 20 20 20 20 |D to tLa|yer. |
|00001ac0| 2d 2d 74 68 65 20 6d 6e | 65 6d 6f 6e 69 63 20 76 |--the mn|emonic v|
|00001ad0| 69 73 75 61 6c 20 72 65 | 70 72 65 73 65 6e 74 61 |isual re|presenta|
|00001ae0| 74 69 6f 6e 20 69 6e 20 | 74 68 65 20 4d 65 6e 75 |tion in |the Menu|
|00001af0| 20 42 75 74 74 6f 6e 73 | 20 66 6c 64 0a 20 20 20 | Buttons| fld. |
|00001b00| 20 73 65 74 20 74 68 65 | 20 74 65 78 74 53 74 79 | set the| textSty|
|00001b10| 6c 65 20 6f 66 20 63 68 | 61 72 20 28 74 68 65 20 |le of ch|ar (the |
|00001b20| 6d 6e 65 6d 6f 6e 69 63 | 20 6f 66 20 74 4d 65 6e |mnemonic| of tMen|
|00001b30| 75 42 75 74 74 6f 6e 49 | 44 29 20 6f 66 20 6c 69 |uButtonI|D) of li|
|00001b40| 6e 65 20 69 20 6f 66 20 | 66 6c 64 20 22 4d 65 6e |ne i of |fld "Men|
|00001b50| 75 20 42 75 74 74 6f 6e | 73 22 20 5c 0a 20 20 20 |u Button|s" \. |
|00001b60| 20 20 20 20 20 6f 66 20 | 74 68 69 73 20 63 64 20 | of |this cd |
|00001b70| 6f 66 20 73 74 61 63 6b | 20 22 72 65 76 4d 65 6e |of stack| "revMen|
|00001b80| 75 4d 61 6e 61 67 65 72 | 22 20 74 6f 20 22 75 6e |uManager|" to "un|
|00001b90| 64 65 72 6c 69 6e 65 22 | 0a 20 20 65 6e 64 20 72 |derline"|. end r|
|00001ba0| 65 70 65 61 74 0a 20 20 | 0a 20 20 73 65 74 20 74 |epeat. |. set t|
|00001bb0| 68 65 20 72 65 6c 61 79 | 65 72 47 72 6f 75 70 65 |he relay|erGroupe|
|00001bc0| 64 43 6f 6e 74 72 6f 6c | 73 20 74 6f 20 74 4f 72 |dControl|s to tOr|
|00001bd0| 69 67 69 6e 61 6c 52 65 | 6c 61 79 65 72 47 72 6f |iginalRe|layerGro|
|00001be0| 75 70 65 64 43 6f 6e 74 | 72 6f 6c 73 0a 20 20 2d |upedCont|rols. -|
|00001bf0| 2d 6e 65 65 64 20 74 6f | 20 72 65 73 65 74 20 74 |-need to| reset t|
|00001c00| 68 65 20 6d 65 6e 75 62 | 61 72 20 74 6f 20 68 61 |he menub|ar to ha|
|00001c10| 76 65 20 69 74 20 75 70 | 64 61 74 65 0a 20 20 73 |ve it up|date. s|
|00001c20| 65 74 20 74 68 65 20 6d | 65 6e 75 42 61 72 20 6f |et the m|enuBar o|
|00001c30| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 74 6f 20 |f this s|tack to |
|00001c40| 65 6d 70 74 79 0a 20 20 | 73 65 74 20 74 68 65 20 |empty. |set the |
|00001c50| 64 65 66 61 75 6c 74 4d | 65 6e 75 42 61 72 20 74 |defaultM|enuBar t|
|00001c60| 6f 20 74 68 65 20 73 68 | 6f 72 74 20 6e 61 6d 65 |o the sh|ort name|
|00001c70| 20 6f 66 20 67 72 6f 75 | 70 20 22 72 65 76 4d 65 | of grou|p "revMe|
|00001c80| 6e 75 42 61 72 22 20 6f | 66 20 63 64 20 31 20 6f |nuBar" o|f cd 1 o|
|00001c90| 66 20 73 74 61 63 6b 20 | 22 72 65 76 4d 65 6e 75 |f stack |"revMenu|
|00001ca0| 42 61 72 22 0a 20 20 73 | 65 74 20 74 68 65 20 6d |Bar". s|et the m|
|00001cb0| 65 6e 75 42 61 72 20 6f | 66 20 74 68 69 73 20 73 |enuBar o|f this s|
|00001cc0| 74 61 63 6b 20 74 6f 20 | 74 4f 72 69 67 69 6e 61 |tack to |tOrigina|
|00001cd0| 6c 4d 65 6e 75 42 61 72 | 0a 20 20 73 65 74 20 74 |lMenuBar|. set t|
|00001ce0| 68 65 20 64 65 66 61 75 | 6c 74 4d 65 6e 75 42 61 |he defau|ltMenuBa|
|00001cf0| 72 20 74 6f 20 74 4f 72 | 69 67 69 6e 61 6c 44 65 |r to tOr|iginalDe|
|00001d00| 66 61 75 6c 74 4d 65 6e | 75 42 61 72 0a 20 20 75 |faultMen|uBar. u|
|00001d10| 6e 6c 6f 63 6b 20 6d 65 | 6e 75 73 0a 20 20 73 65 |nlock me|nus. se|
|00001d20| 74 20 74 68 65 20 64 65 | 66 61 75 6c 74 53 74 61 |t the de|faultSta|
|00001d30| 63 6b 20 74 6f 20 22 72 | 65 76 4d 65 6e 75 4d 61 |ck to "r|evMenuMa|
|00001d40| 6e 61 67 65 72 22 0a 65 | 6e 64 20 72 65 76 4c 61 |nager".e|nd revLa|
|00001d50| 79 6f 75 74 4d 65 6e 75 | 42 75 74 74 6f 6e 73 0a |youtMenu|Buttons.|
|00001d60| 0a 6f 6e 20 72 65 76 49 | 6e 69 74 69 61 6c 69 73 |.on revI|nitialis|
|00001d70| 65 0a 20 20 2d 2d 64 69 | 73 61 62 6c 65 20 65 76 |e. --di|sable ev|
|00001d80| 65 72 79 74 68 69 6e 67 | 0a 20 20 67 6c 6f 62 61 |erything|. globa|
|00001d90| 6c 20 67 52 45 56 4d 4d | 4d 65 6e 75 49 74 65 6d |l gREVMM|MenuItem|
|00001da0| 73 2c 20 67 52 45 56 41 | 63 74 69 76 65 4d 65 6e |s, gREVA|ctiveMen|
|00001db0| 75 42 75 74 74 6f 6e 0a | 20 20 0a 20 20 75 6e 68 |uButton.| . unh|
|00001dc0| 69 6c 69 74 65 20 62 74 | 6e 20 22 4d 61 63 4f 53 |ilite bt|n "MacOS|
|00001dd0| 20 50 72 65 76 69 65 77 | 22 0a 20 20 73 65 74 20 | Preview|". set |
|00001de0| 74 68 65 20 64 65 66 61 | 75 6c 74 4d 65 6e 75 62 |the defa|ultMenub|
|00001df0| 61 72 20 74 6f 20 74 68 | 65 20 73 68 6f 72 74 20 |ar to th|e short |
|00001e00| 6e 61 6d 65 20 6f 66 20 | 67 72 70 20 22 72 65 76 |name of |grp "rev|
|00001e10| 4d 65 6e 75 42 61 72 22 | 20 6f 66 20 63 64 20 31 |MenuBar"| of cd 1|
|00001e20| 20 6f 66 20 73 74 61 63 | 6b 20 22 72 65 76 4d 65 | of stac|k "revMe|
|00001e30| 6e 75 42 61 72 22 0a 20 | 20 70 75 74 20 65 6d 70 |nuBar". | put emp|
|00001e40| 74 79 20 69 6e 74 6f 20 | 67 52 45 56 4d 4d 4d 65 |ty into |gREVMMMe|
|00001e50| 6e 75 49 74 65 6d 73 0a | 20 20 70 75 74 20 65 6d |nuItems.| put em|
|00001e60| 70 74 79 20 69 6e 74 6f | 20 67 52 45 56 41 63 74 |pty into| gREVAct|
|00001e70| 69 76 65 4d 65 6e 75 42 | 75 74 74 6f 6e 0a 20 20 |iveMenuB|utton. |
|00001e80| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 66 |put empt|y into f|
|00001e90| 6c 64 20 22 4d 65 6e 75 | 20 49 74 65 6d 73 22 0a |ld "Menu| Items".|
|00001ea0| 20 20 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f | put em|pty into|
|00001eb0| 20 66 6c 64 20 22 4d 65 | 6e 75 20 42 75 74 74 6f | fld "Me|nu Butto|
|00001ec0| 6e 73 22 0a 20 20 70 75 | 74 20 65 6d 70 74 79 20 |ns". pu|t empty |
|00001ed0| 69 6e 74 6f 20 66 6c 64 | 20 22 4d 65 6e 75 62 61 |into fld| "Menuba|
|00001ee0| 72 22 0a 20 20 70 75 74 | 20 65 6d 70 74 79 20 69 |r". put| empty i|
|00001ef0| 6e 74 6f 20 66 6c 64 20 | 22 4d 65 6e 75 20 4e 61 |nto fld |"Menu Na|
|00001f00| 6d 65 22 0a 20 20 75 6e | 68 69 6c 69 74 65 20 62 |me". un|hilite b|
|00001f10| 74 6e 20 22 4d 61 63 4f | 53 20 4d 65 6e 75 20 42 |tn "MacO|S Menu B|
|00001f20| 61 72 22 0a 20 20 70 75 | 74 20 65 6d 70 74 79 20 |ar". pu|t empty |
|00001f30| 69 6e 74 6f 20 66 6c 64 | 20 22 49 74 65 6d 20 4e |into fld| "Item N|
|00001f40| 61 6d 65 22 0a 20 20 73 | 65 74 20 74 68 65 20 62 |ame". s|et the b|
|00001f50| 6f 74 74 6f 6d 20 6f 66 | 20 67 72 70 20 22 4d 65 |ottom of| grp "Me|
|00001f60| 6e 75 20 49 6e 73 65 72 | 74 22 20 74 6f 20 2d 31 |nu Inser|t" to -1|
|00001f70| 30 30 30 0a 20 20 73 65 | 74 20 74 68 65 20 62 6f |000. se|t the bo|
|00001f80| 74 74 6f 6d 20 6f 66 20 | 67 72 70 20 22 49 74 65 |ttom of |grp "Ite|
|00001f90| 6d 20 49 6e 73 65 72 74 | 22 20 74 6f 20 2d 31 30 |m Insert|" to -10|
|00001fa0| 30 30 0a 20 20 73 65 74 | 20 74 68 65 20 63 52 45 |00. set| the cRE|
|00001fb0| 56 4c 61 73 74 57 69 64 | 67 65 74 4c 69 6e 65 20 |VLastWid|getLine |
|00001fc0| 6f 66 20 67 72 70 20 22 | 4d 65 6e 75 20 49 6e 73 |of grp "|Menu Ins|
|00001fd0| 65 72 74 22 20 74 6f 20 | 65 6d 70 74 79 0a 20 20 |ert" to |empty. |
|00001fe0| 73 65 74 20 74 68 65 20 | 63 52 45 56 4c 69 6e 65 |set the |cREVLine|
|00001ff0| 20 6f 66 20 67 72 70 20 | 22 4d 65 6e 75 20 49 6e | of grp |"Menu In|
|00002000| 73 65 72 74 22 20 74 6f | 20 65 6d 70 74 79 0a 20 |sert" to| empty. |
|00002010| 20 73 65 74 20 74 68 65 | 20 63 52 45 56 4c 69 6e | set the| cREVLin|
|00002020| 65 20 6f 66 20 67 72 70 | 20 22 49 74 65 6d 20 49 |e of grp| "Item I|
|00002030| 6e 73 65 72 74 22 20 74 | 6f 20 65 6d 70 74 79 0a |nsert" t|o empty.|
|00002040| 20 20 75 6e 68 69 6c 69 | 74 65 20 62 74 6e 20 22 | unhili|te btn "|
|00002050| 44 69 73 61 62 6c 65 20 | 4d 65 6e 75 22 20 0a 20 |Disable |Menu" . |
|00002060| 20 75 6e 68 69 6c 69 74 | 65 20 62 74 6e 20 22 4d | unhilit|e btn "M|
|00002070| 65 6e 75 20 4d 6e 65 6d | 6f 6e 69 63 22 0a 20 20 |enu Mnem|onic". |
|00002080| 73 65 74 20 74 68 65 20 | 6c 61 62 65 6c 20 6f 66 |set the |label of|
|00002090| 20 62 74 6e 20 22 49 74 | 65 6d 20 53 74 79 6c 65 | btn "It|em Style|
|000020a0| 22 20 74 6f 20 22 4e 6f | 6e 65 22 0a 20 20 73 65 |" to "No|ne". se|
|000020b0| 74 20 74 68 65 20 63 52 | 45 56 4c 61 62 65 6c 20 |t the cR|EVLabel |
|000020c0| 6f 66 20 62 74 6e 20 22 | 50 72 65 76 69 65 77 22 |of btn "|Preview"|
|000020d0| 20 74 6f 20 65 6d 70 74 | 79 0a 20 20 70 75 74 20 | to empt|y. put |
|000020e0| 74 68 65 20 6e 75 6d 20 | 6f 66 20 63 6f 6e 74 72 |the num |of contr|
|000020f0| 6f 6c 73 20 69 6e 74 6f | 20 74 4e 75 6d 43 6f 6e |ols into| tNumCon|
|00002100| 74 72 6f 6c 73 0a 20 20 | 72 65 70 65 61 74 20 77 |trols. |repeat w|
|00002110| 69 74 68 20 69 20 3d 20 | 31 20 74 6f 20 74 4e 75 |ith i = |1 to tNu|
|00002120| 6d 43 6f 6e 74 72 6f 6c | 73 0a 20 20 20 20 69 66 |mControl|s. if|
|00002130| 20 6e 6f 74 20 74 68 65 | 20 63 52 45 56 44 6f 6e | not the| cREVDon|
|00002140| 74 44 69 73 61 62 6c 65 | 20 6f 66 20 63 6f 6e 74 |tDisable| of cont|
|00002150| 72 6f 6c 20 69 20 74 68 | 65 6e 20 64 69 73 61 62 |rol i th|en disab|
|00002160| 6c 65 20 63 6f 6e 74 72 | 6f 6c 20 69 0a 20 20 65 |le contr|ol i. e|
|00002170| 6e 64 20 72 65 70 65 61 | 74 0a 20 20 73 65 74 20 |nd repea|t. set |
|00002180| 74 68 65 20 63 52 45 56 | 44 69 73 61 62 6c 65 64 |the cREV|Disabled|
|00002190| 20 6f 66 20 62 74 6e 20 | 22 4d 6f 76 65 20 4d 65 | of btn |"Move Me|
|000021a0| 6e 75 20 55 70 22 20 74 | 6f 20 74 72 75 65 0a 20 |nu Up" t|o true. |
|000021b0| 20 73 65 74 20 74 68 65 | 20 63 52 45 56 44 69 73 | set the| cREVDis|
|000021c0| 61 62 6c 65 64 20 6f 66 | 20 62 74 6e 20 22 4d 6f |abled of| btn "Mo|
|000021d0| 76 65 20 4d 65 6e 75 20 | 44 6f 77 6e 22 20 74 6f |ve Menu |Down" to|
|000021e0| 20 74 72 75 65 0a 20 20 | 73 65 74 20 74 68 65 20 | true. |set the |
|000021f0| 63 52 45 56 44 69 73 61 | 62 6c 65 64 20 6f 66 20 |cREVDisa|bled of |
|00002200| 62 74 6e 20 22 52 65 64 | 75 63 65 20 49 74 65 6d |btn "Red|uce Item|
|00002210| 20 4e 65 73 74 69 6e 67 | 22 20 74 6f 20 74 72 75 | Nesting|" to tru|
|00002220| 65 0a 20 20 73 65 74 20 | 74 68 65 20 63 52 45 56 |e. set |the cREV|
|00002230| 44 69 73 61 62 6c 65 64 | 20 6f 66 20 62 74 6e 20 |Disabled| of btn |
|00002240| 22 49 6e 63 72 65 61 73 | 65 20 49 74 65 6d 20 4e |"Increas|e Item N|
|00002250| 65 73 74 69 6e 67 22 20 | 74 6f 20 74 72 75 65 0a |esting" |to true.|
|00002260| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 44 69 | set th|e cREVDi|
|00002270| 73 61 62 6c 65 64 20 6f | 66 20 62 74 6e 20 22 4d |sabled o|f btn "M|
|00002280| 6f 76 65 20 49 74 65 6d | 20 55 70 22 20 74 6f 20 |ove Item| Up" to |
|00002290| 74 72 75 65 0a 20 20 73 | 65 74 20 74 68 65 20 63 |true. s|et the c|
|000022a0| 52 45 56 44 69 73 61 62 | 6c 65 64 20 6f 66 20 62 |REVDisab|led of b|
|000022b0| 74 6e 20 22 4d 6f 76 65 | 20 49 74 65 6d 20 44 6f |tn "Move| Item Do|
|000022c0| 77 6e 22 20 74 6f 20 74 | 72 75 65 0a 20 20 73 65 |wn" to t|rue. se|
|000022d0| 74 20 74 68 65 20 63 52 | 45 56 44 69 73 61 62 6c |t the cR|EVDisabl|
|000022e0| 65 64 20 6f 66 20 62 74 | 6e 20 22 49 6e 73 65 72 |ed of bt|n "Inser|
|000022f0| 74 20 44 69 76 69 64 65 | 72 22 20 74 6f 20 74 72 |t Divide|r" to tr|
|00002300| 75 65 0a 20 20 73 65 74 | 20 74 68 65 20 63 52 45 |ue. set| the cRE|
|00002310| 56 44 69 73 61 62 6c 65 | 64 20 6f 66 20 62 74 6e |VDisable|d of btn|
|00002320| 20 22 53 68 6f 72 74 63 | 75 74 22 20 74 6f 20 74 | "Shortc|ut" to t|
|00002330| 72 75 65 0a 20 20 75 6e | 68 69 6c 69 74 65 20 62 |rue. un|hilite b|
|00002340| 74 6e 20 22 49 74 65 6d | 20 44 69 73 61 62 6c 65 |tn "Item| Disable|
|00002350| 22 0a 20 20 75 6e 68 69 | 6c 69 74 65 20 62 74 6e |". unhi|lite btn|
|00002360| 20 22 49 74 65 6d 20 4d | 6e 65 6d 6f 6e 69 63 22 | "Item M|nemonic"|
|00002370| 0a 20 20 75 6e 68 69 6c | 69 74 65 20 62 74 6e 20 |. unhil|ite btn |
|00002380| 22 53 68 6f 72 74 63 75 | 74 20 43 68 65 63 6b 62 |"Shortcu|t Checkb|
|00002390| 6f 78 22 0a 20 20 70 75 | 74 20 65 6d 70 74 79 20 |ox". pu|t empty |
|000023a0| 69 6e 74 6f 20 66 6c 64 | 20 22 53 68 6f 72 74 63 |into fld| "Shortc|
|000023b0| 75 74 22 0a 20 20 73 65 | 74 20 74 68 65 20 6c 61 |ut". se|t the la|
|000023c0| 62 65 6c 20 6f 66 20 62 | 74 6e 20 22 49 74 65 6d |bel of b|tn "Item|
|000023d0| 20 4d 6e 65 6d 6f 6e 69 | 63 20 4c 65 74 74 65 72 | Mnemoni|c Letter|
|000023e0| 22 20 74 6f 20 73 70 61 | 63 65 0a 20 20 73 65 74 |" to spa|ce. set|
|000023f0| 20 74 68 65 20 6c 61 62 | 65 6c 20 6f 66 20 62 74 | the lab|el of bt|
|00002400| 6e 20 22 4d 65 6e 75 20 | 4d 6e 65 6d 6f 6e 69 63 |n "Menu |Mnemonic|
|00002410| 20 4c 65 74 74 65 72 22 | 20 74 6f 20 73 70 61 63 | Letter"| to spac|
|00002420| 65 0a 65 6e 64 20 72 65 | 76 49 6e 69 74 69 61 6c |e.end re|vInitial|
|00002430| 69 73 65 0a 0a 6f 6e 20 | 72 65 76 49 6e 69 74 69 |ise..on |revIniti|
|00002440| 61 6c 69 73 65 46 6f 72 | 4e 65 77 4d 65 6e 75 0a |aliseFor|NewMenu.|
|00002450| 20 20 2d 2d 75 70 64 61 | 74 65 20 4d 65 6e 75 20 | --upda|te Menu |
|00002460| 42 75 74 74 6f 6e 20 63 | 6f 6e 74 72 6f 6c 73 20 |Button c|ontrols |
|00002470| 66 6f 72 20 6e 65 77 20 | 6d 65 6e 75 0a 20 20 67 |for new |menu. g|
|00002480| 6c 6f 62 61 6c 20 67 52 | 45 56 41 63 74 69 76 65 |lobal gR|EVActive|
|00002490| 4d 65 6e 75 42 75 74 74 | 6f 6e 0a 20 20 20 0a 20 |MenuButt|on. . |
|000024a0| 20 2d 2d 72 65 73 65 74 | 20 6d 65 6e 75 62 61 72 | --reset| menubar|
|000024b0| 20 70 72 65 76 69 65 77 | 0a 20 20 73 65 74 20 74 | preview|. set t|
|000024c0| 68 65 20 64 65 66 61 75 | 6c 74 4d 65 6e 75 62 61 |he defau|ltMenuba|
|000024d0| 72 20 74 6f 20 74 68 65 | 20 73 68 6f 72 74 20 6e |r to the| short n|
|000024e0| 61 6d 65 20 6f 66 20 67 | 72 70 20 22 72 65 76 4d |ame of g|rp "revM|
|000024f0| 65 6e 75 42 61 72 22 20 | 6f 66 20 63 64 20 31 20 |enuBar" |of cd 1 |
|00002500| 6f 66 20 73 74 61 63 6b | 20 22 72 65 76 4d 65 6e |of stack| "revMen|
|00002510| 75 42 61 72 22 0a 20 20 | 20 0a 20 20 2d 2d 65 6e |uBar". | . --en|
|00002520| 61 62 6c 65 20 61 6c 6c | 20 62 75 74 74 6f 6e 20 |able all| button |
|00002530| 6d 65 6e 75 20 63 6f 6e | 74 72 6f 6c 73 0a 20 20 |menu con|trols. |
|00002540| 2d 2d 64 69 73 61 62 6c | 65 20 74 68 65 6e 20 65 |--disabl|e then e|
|00002550| 6e 61 62 6c 65 20 67 72 | 70 20 74 6f 20 72 65 6c |nable gr|p to rel|
|00002560| 69 61 62 6c 79 20 65 6e | 61 62 6c 65 20 61 6c 6c |iably en|able all|
|00002570| 20 69 74 73 20 63 6f 6e | 74 72 6f 6c 73 0a 20 20 | its con|trols. |
|00002580| 64 69 73 61 62 6c 65 20 | 67 72 70 20 22 42 75 74 |disable |grp "But|
|00002590| 74 6f 6e 20 4d 65 6e 75 | 73 3a 22 0a 20 20 65 6e |ton Menu|s:". en|
|000025a0| 61 62 6c 65 20 67 72 70 | 20 22 42 75 74 74 6f 6e |able grp| "Button|
|000025b0| 20 4d 65 6e 75 73 3a 22 | 0a 20 20 73 65 74 20 74 | Menus:"|. set t|
|000025c0| 68 65 20 6c 61 62 65 6c | 20 6f 66 20 62 74 6e 20 |he label| of btn |
|000025d0| 22 4d 65 6e 75 20 4d 6e | 65 6d 6f 6e 69 63 20 4c |"Menu Mn|emonic L|
|000025e0| 65 74 74 65 72 22 20 74 | 6f 20 73 70 61 63 65 0a |etter" t|o space.|
|000025f0| 20 20 73 65 74 20 74 68 | 65 20 63 52 45 56 44 69 | set th|e cREVDi|
|00002600| 73 61 62 6c 65 64 20 6f | 66 20 62 74 6e 20 22 4d |sabled o|f btn "M|
|00002610| 6f 76 65 20 4d 65 6e 75 | 20 55 70 22 20 74 6f 20 |ove Menu| Up" to |
|00002620| 66 61 6c 73 65 0a 20 20 | 73 65 74 20 74 68 65 20 |false. |set the |
|00002630| 63 52 45 56 44 69 73 61 | 62 6c 65 64 20 6f 66 20 |cREVDisa|bled of |
|00002640| 62 74 6e 20 22 4d 6f 76 | 65 20 4d 65 6e 75 20 44 |btn "Mov|e Menu D|
|00002650| 6f 77 6e 22 20 74 6f 20 | 66 61 6c 73 65 0a 20 20 |own" to |false. |
|00002660| 70 75 74 20 6c 69 6e 65 | 20 31 20 6f 66 20 66 6c |put line| 1 of fl|
|00002670| 64 20 22 4d 65 6e 75 20 | 42 75 74 74 6f 6e 73 22 |d "Menu |Buttons"|
|00002680| 20 69 6e 74 6f 20 66 6c | 64 20 22 4d 65 6e 75 20 | into fl|d "Menu |
|00002690| 4e 61 6d 65 22 0a 20 20 | 0a 20 20 65 6e 61 62 6c |Name". |. enabl|
|000026a0| 65 20 62 74 6e 20 22 4d | 61 63 4f 53 20 50 72 65 |e btn "M|acOS Pre|
|000026b0| 76 69 65 77 22 0a 20 20 | 65 6e 61 62 6c 65 20 67 |view". |enable g|
|000026c0| 72 70 20 22 57 69 6e 64 | 6f 77 73 20 50 72 65 76 |rp "Wind|ows Prev|
|000026d0| 69 65 77 22 0a 20 20 65 | 6e 61 62 6c 65 20 62 74 |iew". e|nable bt|
|000026e0| 6e 20 22 50 72 65 76 69 | 65 77 22 0a 20 20 65 6e |n "Previ|ew". en|
|000026f0| 61 62 6c 65 20 66 6c 64 | 20 22 4d 65 6e 75 62 61 |able fld| "Menuba|
|00002700| 72 22 0a 20 20 65 6e 61 | 62 6c 65 20 62 74 6e 20 |r". ena|ble btn |
|00002710| 22 4d 61 63 4f 53 20 4d | 65 6e 75 20 42 61 72 22 |"MacOS M|enu Bar"|
|00002720| 20 20 20 0a 20 20 65 6e | 61 62 6c 65 20 62 74 6e | . en|able btn|
|00002730| 20 22 44 65 6c 65 74 65 | 22 0a 20 20 65 6e 61 62 | "Delete|". enab|
|00002740| 6c 65 20 62 74 6e 20 22 | 45 64 69 74 20 4d 65 6e |le btn "|Edit Men|
|00002750| 75 20 42 61 72 20 53 63 | 72 69 70 74 22 0a 20 20 |u Bar Sc|ript". |
|00002760| 65 6e 61 62 6c 65 20 62 | 74 6e 20 22 74 6f 70 20 |enable b|tn "top |
|00002770| 6d 65 6e 75 20 62 61 72 | 22 0a 20 20 0a 20 20 65 |menu bar|". . e|
|00002780| 6e 61 62 6c 65 20 62 74 | 6e 20 22 4e 65 77 20 4d |nable bt|n "New M|
|00002790| 65 6e 75 22 0a 20 20 73 | 65 74 20 74 68 65 20 68 |enu". s|et the h|
|000027a0| 69 6c 69 74 65 64 4c 69 | 6e 65 20 6f 66 20 66 6c |ilitedLi|ne of fl|
|000027b0| 64 20 22 4d 65 6e 75 20 | 42 75 74 74 6f 6e 73 22 |d "Menu |Buttons"|
|000027c0| 20 74 6f 20 31 0a 65 6e | 64 20 72 65 76 49 6e 69 | to 1.en|d revIni|
|000027d0| 74 69 61 6c 69 73 65 46 | 6f 72 4e 65 77 4d 65 6e |tialiseF|orNewMen|
|000027e0| 75 0a 0a 6f 6e 20 72 65 | 76 46 69 6c 74 65 72 49 |u..on re|vFilterI|
|000027f0| 74 65 6d 4e 61 6d 65 0a | 20 20 2d 2d 66 69 6c 74 |temName.| --filt|
|00002800| 65 72 20 6f 75 74 20 73 | 70 65 63 69 61 6c 20 63 |er out s|pecial c|
|00002810| 68 61 72 61 63 74 65 72 | 73 20 66 72 6f 6d 20 74 |haracter|s from t|
|00002820| 68 65 20 6d 65 6e 75 20 | 69 74 65 6d 20 74 6f 20 |he menu |item to |
|00002830| 73 68 6f 77 20 69 74 20 | 61 73 20 69 74 20 77 6f |show it |as it wo|
|00002840| 75 6c 64 20 61 70 70 65 | 61 72 20 69 6e 20 69 74 |uld appe|ar in it|
|00002850| 73 20 6d 65 6e 75 0a 20 | 20 67 6c 6f 62 61 6c 20 |s menu. | global |
|00002860| 67 52 45 56 41 63 74 69 | 76 65 4d 65 6e 75 42 75 |gREVActi|veMenuBu|
|00002870| 74 74 6f 6e 2c 20 67 52 | 45 56 4d 4d 4d 65 6e 75 |tton, gR|EVMMMenu|
|00002880| 49 74 65 6d 73 0a 20 20 | 70 75 74 20 74 68 65 20 |Items. |put the |
|00002890| 68 69 6c 69 74 65 64 4c | 69 6e 65 20 6f 66 20 66 |hilitedL|ine of f|
|000028a0| 6c 64 20 22 4d 65 6e 75 | 20 49 74 65 6d 73 22 20 |ld "Menu| Items" |
|000028b0| 69 6e 74 6f 20 74 48 69 | 6c 69 74 65 64 4c 69 6e |into tHi|litedLin|
|000028c0| 65 0a 20 20 70 75 74 20 | 69 74 65 6d 20 33 20 6f |e. put |item 3 o|
|000028d0| 66 20 6c 69 6e 65 20 74 | 48 69 6c 69 74 65 64 4c |f line t|HilitedL|
|000028e0| 69 6e 65 20 6f 66 20 67 | 52 45 56 4d 4d 4d 65 6e |ine of g|REVMMMen|
|000028f0| 75 49 74 65 6d 73 20 69 | 6e 74 6f 20 74 4d 65 6e |uItems i|nto tMen|
|00002900| 75 4c 69 6e 65 0a 20 20 | 70 75 74 20 74 68 65 20 |uLine. |put the |
|00002910| 74 65 78 74 20 6f 66 20 | 67 52 45 56 41 63 74 69 |text of |gREVActi|
|00002920| 76 65 4d 65 6e 75 42 75 | 74 74 6f 6e 20 69 6e 74 |veMenuBu|tton int|
|00002930| 6f 20 74 54 65 78 74 0a | 20 20 20 0a 20 20 70 75 |o tText.| . pu|
|00002940| 74 20 69 74 65 6d 20 32 | 20 6f 66 20 6c 69 6e 65 |t item 2| of line|
|00002950| 20 74 48 69 6c 69 74 65 | 64 4c 69 6e 65 20 6f 66 | tHilite|dLine of|
|00002960| 20 67 52 45 56 4d 4d 4d | 65 6e 75 49 74 65 6d 73 | gREVMMM|enuItems|
|00002970| 20 69 6e 74 6f 20 74 49 | 74 65 6d 4e 61 6d 65 0a | into tI|temName.|
|00002980| 20 20 20 0a 20 20 2d 2d | 66 69 6c 74 65 72 20 6f | . --|filter o|
|00002990| 75 74 20 73 74 79 6c 65 | 2f 64 69 73 61 62 6c 65 |ut style|/disable|
|000029a0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 65 74 63 | informa|tion etc|
|000029b0| 0a 20 20 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |. put e|mpty int|
|000029c0| 6f 20 74 43 6f 6d 6d 61 | 6e 64 4b 65 79 53 68 6f |o tComma|ndKeySho|
|000029d0| 72 74 63 75 74 0a 20 20 | 69 66 20 63 68 61 72 20 |rtcut. |if char |
|000029e0| 2d 20 32 20 6f 66 20 74 | 49 74 65 6d 4e 61 6d 65 |- 2 of t|ItemName|
|000029f0| 20 69 73 20 22 2f 22 20 | 61 6e 64 20 63 68 61 72 | is "/" |and char|
|00002a00| 20 2d 20 31 20 6f 66 20 | 74 49 74 65 6d 4e 61 6d | - 1 of |tItemNam|
|00002a10| 65 20 69 73 20 6e 6f 74 | 20 22 2f 22 20 61 6e 64 |e is not| "/" and|
|00002a20| 20 63 68 61 72 20 2d 20 | 33 20 6f 66 20 74 49 74 | char - |3 of tIt|
|00002a30| 65 6d 4e 61 6d 65 20 69 | 73 20 6e 6f 74 20 22 2f |emName i|s not "/|
|00002a40| 22 20 74 68 65 6e 0a 20 | 20 20 20 70 75 74 20 63 |" then. | put c|
|00002a50| 68 61 72 20 2d 32 20 74 | 6f 20 2d 31 20 6f 66 20 |har -2 t|o -1 of |
|00002a60| 74 49 74 65 6d 4e 61 6d | 65 20 69 6e 74 6f 20 74 |tItemNam|e into t|
|00002a70| 43 6f 6d 6d 61 6e 64 4b | 65 79 53 68 6f 72 74 63 |CommandK|eyShortc|
|00002a80| 75 74 0a 20 20 20 20 64 | 65 6c 65 74 65 20 63 68 |ut. d|elete ch|
|00002a90| 61 72 20 2d 32 20 74 6f | 20 2d 31 20 6f 66 20 74 |ar -2 to| -1 of t|
|00002aa0| 49 74 65 6d 4e 61 6d 65 | 0a 20 20 65 6e 64 20 69 |ItemName|. end i|
|00002ab0| 66 0a 20 20 20 0a 20 20 | 2d 2d 20 41 6c 74 20 6b |f. . |-- Alt k|
|00002ac0| 65 79 20 6d 6e 65 6d 6f | 6e 69 63 0a 20 20 70 75 |ey mnemo|nic. pu|
|00002ad0| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 74 53 6b |t empty |into tSk|
|00002ae0| 69 70 0a 20 20 70 75 74 | 20 65 6d 70 74 79 20 69 |ip. put| empty i|
|00002af0| 6e 74 6f 20 74 4f 66 66 | 73 65 74 0a 20 20 70 75 |nto tOff|set. pu|
|00002b00| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 74 4d 6e |t empty |into tMn|
|00002b10| 65 6d 6f 6e 69 63 20 20 | 20 0a 20 20 72 65 70 65 |emonic | . repe|
|00002b20| 61 74 0a 20 20 20 20 70 | 75 74 20 6f 66 66 73 65 |at. p|ut offse|
|00002b30| 74 28 22 26 22 2c 20 74 | 49 74 65 6d 4e 61 6d 65 |t("&", t|ItemName|
|00002b40| 2c 20 74 53 6b 69 70 29 | 20 69 6e 74 6f 20 74 4f |, tSkip)| into tO|
|00002b50| 66 66 73 65 74 0a 20 20 | 20 20 61 64 64 20 74 4f |ffset. | add tO|
|00002b60| 66 66 73 65 74 20 74 6f | 20 74 53 6b 69 70 0a 20 |ffset to| tSkip. |
|00002b70| 20 20 20 69 66 20 74 4f | 66 66 73 65 74 20 69 73 | if tO|ffset is|
|00002b80| 20 30 20 74 68 65 6e 0a | 20 20 20 20 20 20 65 78 | 0 then.| ex|
|00002b90| 69 74 20 72 65 70 65 61 | 74 0a 20 20 20 20 65 6c |it repea|t. el|
|00002ba0| 73 65 20 69 66 20 63 68 | 61 72 20 74 53 6b 69 70 |se if ch|ar tSkip|
|00002bb0| 20 2d 31 20 6f 66 20 74 | 49 74 65 6d 4e 61 6d 65 | -1 of t|ItemName|
|00002bc0| 20 69 73 20 6e 6f 74 20 | 22 26 22 20 61 6e 64 20 | is not |"&" and |
|00002bd0| 63 68 61 72 20 74 53 6b | 69 70 20 2b 20 31 20 6f |char tSk|ip + 1 o|
|00002be0| 66 20 74 49 74 65 6d 4e | 61 6d 65 20 69 73 20 6e |f tItemN|ame is n|
|00002bf0| 6f 74 20 22 26 22 20 74 | 68 65 6e 0a 20 20 20 20 |ot "&" t|hen. |
|00002c00| 20 20 70 75 74 20 74 53 | 6b 69 70 20 69 6e 74 6f | put tS|kip into|
|00002c10| 20 74 4d 6e 65 6d 6f 6e | 69 63 0a 20 20 20 20 20 | tMnemon|ic. |
|00002c20| 20 64 65 6c 65 74 65 20 | 63 68 61 72 20 74 53 6b | delete |char tSk|
|00002c30| 69 70 20 6f 66 20 74 49 | 74 65 6d 4e 61 6d 65 0a |ip of tI|temName.|
|00002c40| 20 20 20 20 20 20 65 78 | 69 74 20 72 65 70 65 61 | ex|it repea|
|00002c50| 74 0a 20 20 20 20 65 6e | 64 20 69 66 0a 20 20 65 |t. en|d if. e|
|00002c60| 6e 64 20 72 65 70 65 61 | 74 0a 20 20 20 0a 20 20 |nd repea|t. . |
|00002c70| 20 0a 20 20 2d 2d 6c 65 | 76 65 6c 20 6f 66 20 73 | . --le|vel of s|
|00002c80| 75 62 6d 65 6e 75 0a 20 | 20 70 75 74 20 65 6d 70 |ubmenu. | put emp|
|00002c90| 74 79 20 69 6e 74 6f 20 | 74 54 61 62 43 6f 75 6e |ty into |tTabCoun|
|00002ca0| 74 0a 20 20 72 65 70 65 | 61 74 20 66 6f 72 20 65 |t. repe|at for e|
|00002cb0| 61 63 68 20 63 68 61 72 | 20 63 20 69 6e 20 74 49 |ach char| c in tI|
|00002cc0| 74 65 6d 4e 61 6d 65 0a | 20 20 20 20 69 66 20 63 |temName.| if c|
|00002cd0| 20 69 73 20 74 61 62 20 | 74 68 65 6e 20 61 64 64 | is tab |then add|
|00002ce0| 20 31 20 74 6f 20 74 54 | 61 62 43 6f 75 6e 74 0a | 1 to tT|abCount.|
|00002cf0| 20 20 65 6e 64 20 72 65 | 70 65 61 74 0a 20 20 72 | end re|peat. r|
|00002d00| 65 70 6c 61 63 65 20 74 | 61 62 20 77 69 74 68 20 |eplace t|ab with |
|00002d10| 65 6d 70 74 79 20 69 6e | 20 74 49 74 65 6d 4e 61 |empty in| tItemNa|
|00002d20| 6d 65 0a 20 20 20 0a 20 | 20 69 66 20 63 68 61 72 |me. . | if char|
|00002d30| 20 31 20 6f 66 20 74 49 | 74 65 6d 4e 61 6d 65 20 | 1 of tI|temName |
|00002d40| 69 73 20 22 28 22 20 74 | 68 65 6e 20 64 65 6c 65 |is "(" t|hen dele|
|00002d50| 74 65 20 63 68 61 72 20 | 31 20 6f 66 20 74 49 74 |te char |1 of tIt|
|00002d60| 65 6d 4e 61 6d 65 0a 20 | 20 72 65 70 65 61 74 20 |emName. | repeat |
|00002d70| 66 6f 72 20 65 61 63 68 | 20 69 74 65 6d 20 69 20 |for each| item i |
|00002d80| 69 6e 20 22 21 63 2c 21 | 6e 2c 21 72 2c 21 75 22 |in "!c,!|n,!r,!u"|
|00002d90| 0a 20 20 20 20 69 66 20 | 63 68 61 72 20 31 20 74 |. if |char 1 t|
|00002da0| 6f 20 32 20 6f 66 20 74 | 49 74 65 6d 4e 61 6d 65 |o 2 of t|ItemName|
|00002db0| 20 69 73 20 69 20 74 68 | 65 6e 0a 20 20 20 20 20 | is i th|en. |
|00002dc0| 20 64 65 6c 65 74 65 20 | 63 68 61 72 20 31 20 74 | delete |char 1 t|
|00002dd0| 6f 20 32 20 6f 66 20 74 | 49 74 65 6d 4e 61 6d 65 |o 2 of t|ItemName|
|00002de0| 0a 20 20 20 20 20 20 65 | 78 69 74 20 72 65 70 65 |. e|xit repe|
|00002df0| 61 74 0a 20 20 20 20 65 | 6e 64 20 69 66 0a 20 20 |at. e|nd if. |
|00002e00| 65 6e 64 20 72 65 70 65 | 61 74 0a 20 20 20 0a 20 |end repe|at. . |
|00002e10| 20 70 75 74 20 74 49 74 | 65 6d 4e 61 6d 65 20 69 | put tIt|emName i|
|00002e20| 6e 74 6f 20 66 6c 64 20 | 22 49 74 65 6d 20 4e 61 |nto fld |"Item Na|
|00002e30| 6d 65 22 0a 20 20 73 65 | 74 20 74 68 65 20 63 52 |me". se|t the cR|
|00002e40| 45 56 43 6f 6d 6d 61 6e | 64 4b 65 79 53 68 6f 72 |EVComman|dKeyShor|
|00002e50| 74 63 75 74 20 6f 66 20 | 66 6c 64 20 22 49 74 65 |tcut of |fld "Ite|
|00002e60| 6d 20 4e 61 6d 65 22 20 | 74 6f 20 74 43 6f 6d 6d |m Name" |to tComm|
|00002e70| 61 6e 64 4b 65 79 53 68 | 6f 72 74 63 75 74 0a 20 |andKeySh|ortcut. |
|00002e80| 20 73 65 74 20 74 68 65 | 20 63 52 45 56 4d 6e 65 | set the| cREVMne|
|00002e90| 6d 6f 6e 69 63 20 6f 66 | 20 66 6c 64 20 22 49 74 |monic of| fld "It|
|00002ea0| 65 6d 20 4e 61 6d 65 22 | 20 74 6f 20 74 4d 6e 65 |em Name"| to tMne|
|00002eb0| 6d 6f 6e 69 63 0a 20 20 | 73 65 74 20 74 68 65 20 |monic. |set the |
|00002ec0| 63 52 45 56 54 61 62 43 | 6f 75 6e 74 20 6f 66 20 |cREVTabC|ount of |
|00002ed0| 66 6c 64 20 22 49 74 65 | 6d 20 4e 61 6d 65 22 20 |fld "Ite|m Name" |
|00002ee0| 74 6f 20 74 54 61 62 43 | 6f 75 6e 74 0a 65 6e 64 |to tTabC|ount.end|
|00002ef0| 20 72 65 76 46 69 6c 74 | 65 72 49 74 65 6d 4e 61 | revFilt|erItemNa|
|00002f00| 6d 65 0a 20 20 20 20 0a | 6f 6e 20 72 65 76 49 6e |me. .|on revIn|
|00002f10| 69 74 69 61 6c 69 73 65 | 46 6f 72 4e 6f 49 74 65 |itialise|ForNoIte|
|00002f20| 6d 53 65 6c 65 63 74 69 | 6f 6e 0a 20 20 67 6c 6f |mSelecti|on. glo|
|00002f30| 62 61 6c 20 67 52 45 56 | 41 63 74 69 76 65 4d 65 |bal gREV|ActiveMe|
|00002f40| 6e 75 42 75 74 74 6f 6e | 0a 20 20 2d 2d 64 69 73 |nuButton|. --dis|
|00002f50| 61 62 6c 65 20 6d 65 6e | 75 20 69 74 65 6d 20 66 |able men|u item f|
|00002f60| 75 6e 63 74 69 6f 6e 61 | 6c 69 74 79 20 75 6e 74 |unctiona|lity unt|
|00002f70| 69 6c 20 6f 6e 65 20 69 | 73 20 73 65 6c 65 63 74 |il one i|s select|
|00002f80| 65 64 0a 20 20 69 66 20 | 67 52 45 56 41 63 74 69 |ed. if |gREVActi|
|00002f90| 76 65 4d 65 6e 75 42 75 | 74 74 6f 6e 20 69 73 20 |veMenuBu|tton is |
|00002fa0| 65 6d 70 74 79 20 74 68 | 65 6e 20 0a 20 20 20 20 |empty th|en . |
|00002fb0| 73 65 74 20 74 68 65 20 | 63 52 45 56 49 74 65 6d |set the |cREVItem|
|00002fc0| 73 44 69 73 61 62 6c 65 | 64 20 6f 66 20 74 68 69 |sDisable|d of thi|
|00002fd0| 73 20 73 74 61 63 6b 20 | 74 6f 20 74 72 75 65 0a |s stack |to true.|
|00002fe0| 20 20 20 20 73 65 74 20 | 74 68 65 20 63 52 45 56 | set |the cREV|
|00002ff0| 44 69 73 61 62 6c 65 64 | 20 6f 66 20 62 74 6e 20 |Disabled| of btn |
|00003000| 22 49 6e 73 65 72 74 20 | 44 69 76 69 64 65 72 22 |"Insert |Divider"|
|00003010| 20 74 6f 20 74 72 75 65 | 0a 20 20 20 20 64 69 73 | to true|. dis|
|00003020| 61 62 6c 65 20 67 72 70 | 20 22 4d 65 6e 75 20 49 |able grp| "Menu I|
|00003030| 74 65 6d 73 3a 22 20 0a | 20 20 65 6c 73 65 0a 20 |tems:" .| else. |
|00003040| 20 20 20 73 65 74 20 74 | 68 65 20 63 52 45 56 49 | set t|he cREVI|
|00003050| 74 65 6d 73 44 69 73 61 | 62 6c 65 64 20 6f 66 20 |temsDisa|bled of |
|00003060| 74 68 69 73 20 73 74 61 | 63 6b 20 74 6f 20 66 61 |this sta|ck to fa|
|00003070| 6c 73 65 0a 20 20 20 20 | 73 65 74 20 74 68 65 20 |lse. |set the |
|00003080| 63 52 45 56 44 69 73 61 | 62 6c 65 64 20 6f 66 20 |cREVDisa|bled of |
|00003090| 62 74 6e 20 22 49 6e 73 | 65 72 74 20 44 69 76 69 |btn "Ins|ert Divi|
|000030a0| 64 65 72 22 20 74 6f 20 | 66 61 6c 73 65 0a 20 20 |der" to |false. |
|000030b0| 20 20 65 6e 61 62 6c 65 | 20 67 72 70 20 22 4d 65 | enable| grp "Me|
|000030c0| 6e 75 20 49 74 65 6d 73 | 3a 22 20 20 20 0a 20 20 |nu Items|:" . |
|000030d0| 20 20 64 69 73 61 62 6c | 65 20 62 74 6e 20 22 44 | disabl|e btn "D|
|000030e0| 65 6c 65 74 65 20 49 74 | 65 6d 22 0a 20 20 20 20 |elete It|em". |
|000030f0| 64 69 73 61 62 6c 65 20 | 66 6c 64 20 22 49 74 65 |disable |fld "Ite|
|00003100| 6d 20 4e 61 6d 65 22 0a | 20 20 20 20 64 69 73 61 |m Name".| disa|
|00003110| 62 6c 65 20 62 74 6e 20 | 22 49 74 65 6d 20 53 74 |ble btn |"Item St|
|00003120| 79 6c 65 22 0a 20 20 65 | 6e 64 20 69 66 20 0a 20 |yle". e|nd if . |
|00003130| 20 20 0a 20 20 70 75 74 | 20 65 6d 70 74 79 20 69 | . put| empty i|
|00003140| 6e 74 6f 20 66 6c 64 20 | 22 49 74 65 6d 20 4e 61 |nto fld |"Item Na|
|00003150| 6d 65 22 0a 20 20 64 69 | 73 61 62 6c 65 20 66 6c |me". di|sable fl|
|00003160| 64 20 22 4d 61 72 6b 20 | 4c 61 62 65 6c 22 0a 20 |d "Mark |Label". |
|00003170| 20 73 65 74 20 74 68 65 | 20 6c 61 62 65 6c 20 6f | set the| label o|
|00003180| 66 20 62 74 6e 20 22 49 | 74 65 6d 20 53 74 79 6c |f btn "I|tem Styl|
|00003190| 65 22 20 74 6f 20 22 4e | 6f 6e 65 22 0a 20 20 73 |e" to "N|one". s|
|000031a0| 65 74 20 74 68 65 20 62 | 61 63 6b 50 61 74 74 65 |et the b|ackPatte|
|000031b0| 72 6e 20 6f 66 20 62 74 | 6e 20 22 49 74 65 6d 20 |rn of bt|n "Item |
|000031c0| 53 74 79 6c 65 22 20 74 | 6f 20 65 6d 70 74 79 0a |Style" t|o empty.|
|000031d0| 20 20 64 69 73 61 62 6c | 65 20 67 72 70 20 22 4d | disabl|e grp "M|
|000031e0| 65 6e 75 20 49 74 65 6d | 20 43 6f 6e 74 72 6f 6c |enu Item| Control|
|000031f0| 73 22 0a 20 20 75 6e 68 | 69 6c 69 74 65 20 62 74 |s". unh|ilite bt|
|00003200| 6e 20 22 49 74 65 6d 20 | 44 69 73 61 62 6c 65 22 |n "Item |Disable"|
|00003210| 0a 20 20 73 65 74 20 74 | 68 65 20 62 61 63 6b 50 |. set t|he backP|
|00003220| 61 74 74 65 72 6e 20 6f | 66 20 62 74 6e 20 22 49 |attern o|f btn "I|
|00003230| 74 65 6d 20 44 69 73 61 | 62 6c 65 22 20 74 6f 20 |tem Disa|ble" to |
|00003240| 65 6d 70 74 79 20 0a 20 | 20 75 6e 68 69 6c 69 74 |empty . | unhilit|
|00003250| 65 20 62 74 6e 20 22 49 | 74 65 6d 20 4d 6e 65 6d |e btn "I|tem Mnem|
|00003260| 6f 6e 69 63 22 0a 20 20 | 75 6e 68 69 6c 69 74 65 |onic". |unhilite|
|00003270| 20 62 74 6e 20 22 53 68 | 6f 72 74 43 75 74 20 43 | btn "Sh|ortCut C|
|00003280| 68 65 63 6b 62 6f 78 22 | 0a 20 20 0a 20 20 70 75 |heckbox"|. . pu|
|00003290| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 66 6c 64 |t empty |into fld|
|000032a0| 20 22 53 68 6f 72 74 63 | 75 74 22 0a 20 20 73 65 | "Shortc|ut". se|
|000032b0| 74 20 74 68 65 20 6c 61 | 62 65 6c 20 6f 66 20 62 |t the la|bel of b|
|000032c0| 74 6e 20 22 49 74 65 6d | 20 4d 6e 65 6d 6f 6e 69 |tn "Item| Mnemoni|
|000032d0| 63 20 4c 65 74 74 65 72 | 22 20 74 6f 20 73 70 61 |c Letter|" to spa|
|000032e0| 63 65 0a 20 20 0a 20 20 | 0a 20 20 73 65 74 20 74 |ce. . |. set t|
|000032f0| 68 65 20 63 52 45 56 44 | 69 73 61 62 6c 65 64 20 |he cREVD|isabled |
|00003300| 6f 66 20 62 74 6e 20 22 | 52 65 64 75 63 65 20 49 |of btn "|Reduce I|
|00003310| 74 65 6d 20 4e 65 73 74 | 69 6e 67 22 20 74 6f 20 |tem Nest|ing" to |
|00003320| 74 72 75 65 0a 20 20 73 | 65 74 20 74 68 65 20 63 |true. s|et the c|
|00003330| 52 45 56 44 69 73 61 62 | 6c 65 64 20 6f 66 20 62 |REVDisab|led of b|
|00003340| 74 6e 20 22 49 6e 63 72 | 65 61 73 65 20 49 74 65 |tn "Incr|ease Ite|
|00003350| 6d 20 4e 65 73 74 69 6e | 67 22 20 74 6f 20 74 72 |m Nestin|g" to tr|
|00003360| 75 65 0a 20 20 73 65 74 | 20 74 68 65 20 63 52 45 |ue. set| the cRE|
|00003370| 56 44 69 73 61 62 6c 65 | 64 20 6f 66 20 62 74 6e |VDisable|d of btn|
|00003380| 20 22 4d 6f 76 65 20 49 | 74 65 6d 20 55 70 22 20 | "Move I|tem Up" |
|00003390| 74 6f 20 74 72 75 65 0a | 20 20 73 65 74 20 74 68 |to true.| set th|
|000033a0| 65 20 63 52 45 56 44 69 | 73 61 62 6c 65 64 20 6f |e cREVDi|sabled o|
|000033b0| 66 20 62 74 6e 20 22 4d | 6f 76 65 20 49 74 65 6d |f btn "M|ove Item|
|000033c0| 20 44 6f 77 6e 22 20 74 | 6f 20 74 72 75 65 0a 20 | Down" t|o true. |
|000033d0| 20 73 65 74 20 74 68 65 | 20 63 52 45 56 44 69 73 | set the| cREVDis|
|000033e0| 61 62 6c 65 64 20 6f 66 | 20 62 74 6e 20 22 53 68 |abled of| btn "Sh|
|000033f0| 6f 72 74 43 75 74 22 20 | 74 6f 20 74 72 75 65 0a |ortCut" |to true.|
|00003400| 65 6e 64 20 72 65 76 49 | 6e 69 74 69 61 6c 69 73 |end revI|nitialis|
|00003410| 65 46 6f 72 4e 6f 49 74 | 65 6d 53 65 6c 65 63 74 |eForNoIt|emSelect|
|00003420| 69 6f 6e 0a 20 20 0a 66 | 75 6e 63 74 69 6f 6e 20 |ion. .f|unction |
|00003430| 72 65 76 4d 65 6e 75 4c | 6f 6e 67 49 44 20 70 53 |revMenuL|ongID pS|
|00003440| 68 6f 72 74 49 44 0a 20 | 20 2d 2d 72 65 74 75 72 |hortID. | --retur|
|00003450| 6e 20 74 68 65 20 6c 6f | 6e 67 20 69 64 20 6f 66 |n the lo|ng id of|
|00003460| 20 74 68 65 20 6d 65 6e | 75 20 62 75 74 74 6f 6e | the men|u button|
|00003470| 20 63 75 72 72 65 6e 74 | 6c 79 20 62 65 69 6e 67 | current|ly being|
|00003480| 20 65 64 69 74 65 64 0a | 20 20 69 66 20 74 68 65 | edited.| if the|
|00003490| 72 65 20 69 73 20 61 20 | 62 74 6e 20 69 64 20 70 |re is a |btn id p|
|000034a0| 53 68 6f 72 74 49 44 20 | 6f 66 20 62 67 20 69 64 |ShortID |of bg id|
|000034b0| 20 28 74 68 65 20 63 52 | 45 56 4d 65 6e 75 49 44 | (the cR|EVMenuID|
|000034c0| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 29 20 | of this| stack) |
|000034d0| 6f 66 20 73 74 61 63 6b | 20 28 74 68 65 20 63 52 |of stack| (the cR|
|000034e0| 45 56 44 65 66 61 75 6c | 74 53 74 61 63 6b 20 6f |EVDefaul|tStack o|
|000034f0| 66 20 74 68 69 73 20 73 | 74 61 63 6b 29 20 74 68 |f this s|tack) th|
|00003500| 65 6e 0a 20 20 20 20 72 | 65 74 75 72 6e 20 74 68 |en. r|eturn th|
|00003510| 65 20 6c 6f 6e 67 20 69 | 64 20 6f 66 20 62 74 6e |e long i|d of btn|
|00003520| 20 69 64 20 70 53 68 6f | 72 74 49 44 20 6f 66 20 | id pSho|rtID of |
|00003530| 62 67 20 69 64 20 28 74 | 68 65 20 63 52 45 56 4d |bg id (t|he cREVM|
|00003540| 65 6e 75 49 44 20 6f 66 | 20 74 68 69 73 20 73 74 |enuID of| this st|
|00003550| 61 63 6b 29 20 6f 66 20 | 73 74 61 63 6b 20 28 74 |ack) of |stack (t|
|00003560| 68 65 20 63 52 45 56 44 | 65 66 61 75 6c 74 53 74 |he cREVD|efaultSt|
|00003570| 61 63 6b 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |ack of t|his stac|
|00003580| 6b 29 0a 20 20 65 6c 73 | 65 0a 20 20 20 20 72 65 |k). els|e. re|
|00003590| 74 75 72 6e 20 65 6d 70 | 74 79 0a 20 20 65 6e 64 |turn emp|ty. end|
|000035a0| 20 69 66 0a 65 6e 64 20 | 72 65 76 4d 65 6e 75 4c | if.end |revMenuL|
|000035b0| 6f 6e 67 49 44 0a 0a 6f | 6e 20 72 65 76 55 70 64 |ongID..o|n revUpd|
|000035c0| 61 74 65 53 63 72 6f 6c | 6c 62 61 72 0a 20 20 2d |ateScrol|lbar. -|
|000035d0| 2d 75 70 64 61 74 65 20 | 74 68 65 20 6d 65 6e 75 |-update |the menu|
|000035e0| 20 69 74 65 6d 73 20 73 | 63 72 6f 6c 6c 62 61 72 | items s|crollbar|
|000035f0| 0a 20 20 67 6c 6f 62 61 | 6c 20 67 52 45 56 54 65 |. globa|l gREVTe|
|00003600| 78 74 48 65 69 67 68 74 | 0a 20 20 73 65 74 20 74 |xtHeight|. set t|
|00003610| 68 65 20 65 6e 64 56 61 | 6c 75 65 20 6f 66 20 73 |he endVa|lue of s|
|00003620| 63 72 6f 6c 6c 42 61 72 | 20 22 4d 65 6e 75 20 49 |crollBar| "Menu I|
|00003630| 74 65 6d 73 22 20 74 6f | 20 74 68 65 20 66 6f 72 |tems" to| the for|
|00003640| 6d 61 74 74 65 64 48 65 | 69 67 68 74 20 6f 66 20 |mattedHe|ight of |
|00003650| 66 69 65 6c 64 20 22 4d | 65 6e 75 20 49 74 65 6d |field "M|enu Item|
|00003660| 73 22 20 2d 20 74 68 65 | 20 74 6f 70 4d 61 72 67 |s" - the| topMarg|
|00003670| 69 6e 20 6f 66 20 66 6c | 64 20 22 4d 65 6e 75 20 |in of fl|d "Menu |
|00003680| 49 74 65 6d 73 22 0a 20 | 20 73 65 74 20 74 68 65 |Items". | set the|
|00003690| 20 74 68 75 6d 62 53 69 | 7a 65 20 6f 66 20 73 63 | thumbSi|ze of sc|
|000036a0| 72 6f 6c 6c 42 61 72 20 | 22 4d 65 6e 75 20 49 74 |rollBar |"Menu It|
|000036b0| 65 6d 73 22 20 74 6f 20 | 74 68 65 20 68 65 69 67 |ems" to |the heig|
|000036c0| 68 74 20 6f 66 20 66 69 | 65 6c 64 20 22 4d 65 6e |ht of fi|eld "Men|
|000036d0| 75 20 49 74 65 6d 73 22 | 0a 20 20 73 65 74 20 74 |u Items"|. set t|
|000036e0| 68 65 20 6c 69 6e 65 49 | 6e 63 20 6f 66 20 73 63 |he lineI|nc of sc|
|000036f0| 72 6f 6c 6c 42 61 72 20 | 22 4d 65 6e 75 20 49 74 |rollBar |"Menu It|
|00003700| 65 6d 73 22 20 74 6f 20 | 67 52 45 56 54 65 78 74 |ems" to |gREVText|
|00003710| 48 65 69 67 68 74 0a 20 | 20 73 65 74 20 74 68 65 |Height. | set the|
|00003720| 20 70 61 67 65 49 6e 63 | 20 6f 66 20 73 63 72 6f | pageInc| of scro|
|00003730| 6c 6c 42 61 72 20 22 4d | 65 6e 75 20 49 74 65 6d |llBar "M|enu Item|
|00003740| 73 22 20 74 6f 20 74 68 | 65 20 68 65 69 67 68 74 |s" to th|e height|
|00003750| 20 6f 66 20 66 69 65 6c | 64 20 22 4d 65 6e 75 20 | of fiel|d "Menu |
|00003760| 49 74 65 6d 73 22 0a 20 | 20 69 66 20 74 68 65 20 |Items". | if the |
|00003770| 65 6e 64 56 61 6c 75 65 | 20 6f 66 20 73 62 20 22 |endValue| of sb "|
|00003780| 4d 65 6e 75 20 49 74 65 | 6d 73 22 20 3e 20 74 68 |Menu Ite|ms" > th|
|00003790| 65 20 68 65 69 67 68 74 | 20 6f 66 20 66 6c 64 20 |e height| of fld |
|000037a0| 22 4d 65 6e 75 20 49 74 | 65 6d 73 22 20 74 68 65 |"Menu It|ems" the|
|000037b0| 6e 20 65 6e 61 62 6c 65 | 20 73 62 20 22 4d 65 6e |n enable| sb "Men|
|000037c0| 75 20 49 74 65 6d 73 22 | 0a 20 20 65 6c 73 65 20 |u Items"|. else |
|000037d0| 64 69 73 61 62 6c 65 20 | 73 62 20 22 4d 65 6e 75 |disable |sb "Menu|
|000037e0| 20 49 74 65 6d 73 22 0a | 65 6e 64 20 72 65 76 55 | Items".|end revU|
|000037f0| 70 64 61 74 65 53 63 72 | 6f 6c 6c 62 61 72 0a 0a |pdateScr|ollbar..|
|00003800| 6f 6e 20 72 65 76 52 65 | 73 65 74 54 72 69 61 6e |on revRe|setTrian|
|00003810| 67 6c 65 73 0a 20 20 2d | 2d 75 70 64 61 74 65 20 |gles. -|-update |
|00003820| 74 68 65 20 66 6f 6c 64 | 6f 75 74 20 74 72 69 61 |the fold|out tria|
|00003830| 6e 67 6c 65 73 20 69 6e | 20 74 68 65 20 6d 65 6e |ngles in| the men|
|00003840| 75 20 69 74 65 6d 73 20 | 66 6c 64 0a 20 20 67 6c |u items |fld. gl|
|00003850| 6f 62 61 6c 20 67 52 45 | 56 4d 4d 4d 65 6e 75 49 |obal gRE|VMMMenuI|
|00003860| 74 65 6d 73 2c 20 67 52 | 45 56 54 65 78 74 48 65 |tems, gR|EVTextHe|
|00003870| 69 67 68 74 0a 20 20 70 | 75 74 20 72 6f 75 6e 64 |ight. p|ut round|
|00003880| 28 74 68 65 20 73 63 72 | 6f 6c 6c 20 6f 66 20 66 |(the scr|oll of f|
|00003890| 6c 64 20 22 4d 65 6e 75 | 20 49 74 65 6d 73 22 2f |ld "Menu| Items"/|
|000038a0| 67 52 45 56 54 65 78 74 | 48 65 69 67 68 74 29 20 |gREVText|Height) |
|000038b0| 69 6e 74 6f 20 74 4c 69 | 6e 65 0a 20 20 70 75 74 |into tLi|ne. put|
|000038c0| 20 74 68 65 20 6e 75 6d | 20 6f 66 20 62 74 6e 73 | the num| of btns|
|000038d0| 20 69 6e 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | in grp |"Foldout|
|000038e0| 20 54 72 69 61 6e 67 6c | 65 73 22 20 69 6e 74 6f | Triangl|es" into|
|000038f0| 20 74 4e 75 6d 54 72 69 | 61 6e 67 6c 65 73 0a 20 | tNumTri|angles. |
|00003900| 20 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d | repeat |with i =|
|00003910| 20 31 20 74 6f 20 74 4e | 75 6d 54 72 69 61 6e 67 | 1 to tN|umTriang|
|00003920| 6c 65 73 0a 20 20 20 20 | 61 64 64 20 31 20 74 6f |les. |add 1 to|
|00003930| 20 74 4c 69 6e 65 0a 20 | 20 20 20 70 75 74 20 69 | tLine. | put i|
|00003940| 74 65 6d 20 31 20 6f 66 | 20 6c 69 6e 65 20 74 4c |tem 1 of| line tL|
|00003950| 69 6e 65 20 6f 66 20 67 | 52 45 56 4d 4d 4d 65 6e |ine of g|REVMMMen|
|00003960| 75 49 74 65 6d 73 20 69 | 6e 74 6f 20 74 49 63 6f |uItems i|nto tIco|
|00003970| 6e 0a 20 20 20 20 73 77 | 69 74 63 68 20 74 49 63 |n. sw|itch tIc|
|00003980| 6f 6e 20 20 20 20 20 20 | 0a 20 20 20 20 63 61 73 |on |. cas|
|00003990| 65 20 66 61 6c 73 65 0a | 20 20 20 20 20 20 65 6e |e false.| en|
|000039a0| 61 62 6c 65 20 62 74 6e | 20 69 20 6f 66 20 67 72 |able btn| i of gr|
|000039b0| 70 20 22 46 6f 6c 64 6f | 75 74 20 54 72 69 61 6e |p "Foldo|ut Trian|
|000039c0| 67 6c 65 73 22 0a 20 20 | 20 20 20 20 75 6e 68 69 |gles". | unhi|
|000039d0| 6c 69 74 65 20 62 74 6e | 20 69 20 6f 66 20 67 72 |lite btn| i of gr|
|000039e0| 70 20 22 46 6f 6c 64 6f | 75 74 20 54 72 69 61 6e |p "Foldo|ut Trian|
|000039f0| 67 6c 65 73 22 0a 20 20 | 20 20 20 20 73 65 74 20 |gles". | set |
|00003a00| 74 68 65 20 69 63 6f 6e | 20 6f 66 20 62 74 6e 20 |the icon| of btn |
|00003a10| 69 20 6f 66 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |i of grp| "Foldou|
|00003a20| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 20 74 6f 20 |t Triang|les" to |
|00003a30| 74 68 65 20 63 52 45 56 | 49 63 6f 6e 20 6f 66 20 |the cREV|Icon of |
|00003a40| 62 74 6e 20 69 20 6f 66 | 20 67 72 70 20 22 46 6f |btn i of| grp "Fo|
|00003a50| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|00003a60| 0a 20 20 20 20 20 20 62 | 72 65 61 6b 0a 20 20 20 |. b|reak. |
|00003a70| 20 63 61 73 65 20 74 72 | 75 65 0a 20 20 20 20 20 | case tr|ue. |
|00003a80| 20 65 6e 61 62 6c 65 20 | 62 74 6e 20 69 20 6f 66 | enable |btn i of|
|00003a90| 20 67 72 70 20 22 46 6f | 6c 64 6f 75 74 20 54 72 | grp "Fo|ldout Tr|
|00003aa0| 69 61 6e 67 6c 65 73 22 | 0a 20 20 20 20 20 20 68 |iangles"|. h|
|00003ab0| 69 6c 69 74 65 20 62 74 | 6e 20 69 20 6f 66 20 67 |ilite bt|n i of g|
|00003ac0| 72 70 20 22 46 6f 6c 64 | 6f 75 74 20 54 72 69 61 |rp "Fold|out Tria|
|00003ad0| 6e 67 6c 65 73 22 0a 20 | 20 20 20 20 20 73 65 74 |ngles". | set|
|00003ae0| 20 74 68 65 20 73 68 6f | 77 49 63 6f 6e 20 6f 66 | the sho|wIcon of|
|00003af0| 20 62 74 6e 20 69 20 6f | 66 20 67 72 70 20 22 46 | btn i o|f grp "F|
|00003b00| 6f 6c 64 6f 75 74 20 54 | 72 69 61 6e 67 6c 65 73 |oldout T|riangles|
|00003b10| 22 20 74 6f 20 74 72 75 | 65 0a 20 20 20 20 20 20 |" to tru|e. |
|00003b20| 62 72 65 61 6b 0a 20 20 | 20 20 64 65 66 61 75 6c |break. | defaul|
|00003b30| 74 0a 20 20 20 20 20 20 | 64 69 73 61 62 6c 65 20 |t. |disable |
|00003b40| 62 74 6e 20 69 20 6f 66 | 20 67 72 70 20 22 46 6f |btn i of| grp "Fo|
|00003b50| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|00003b60| 0a 20 20 20 20 20 20 75 | 6e 68 69 6c 69 74 65 20 |. u|nhilite |
|00003b70| 62 74 6e 20 69 20 6f 66 | 20 67 72 70 20 22 46 6f |btn i of| grp "Fo|
|00003b80| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|00003b90| 0a 20 20 20 20 20 20 73 | 65 74 20 74 68 65 20 73 |. s|et the s|
|00003ba0| 68 6f 77 49 63 6f 6e 20 | 6f 66 20 62 74 6e 20 69 |howIcon |of btn i|
|00003bb0| 20 6f 66 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | of grp |"Foldout|
|00003bc0| 20 54 72 69 61 6e 67 6c | 65 73 22 20 74 6f 20 66 | Triangl|es" to f|
|00003bd0| 61 6c 73 65 0a 20 20 20 | 20 20 20 62 72 65 61 6b |alse. | break|
|00003be0| 20 20 20 20 20 20 0a 20 | 20 20 20 65 6e 64 20 73 | . | end s|
|00003bf0| 77 69 74 63 68 0a 20 20 | 65 6e 64 20 72 65 70 65 |witch. |end repe|
|00003c00| 61 74 0a 65 6e 64 20 72 | 65 76 52 65 73 65 74 54 |at.end r|evResetT|
|00003c10| 72 69 61 6e 67 6c 65 73 | 0a 0a 6f 6e 20 72 65 76 |riangles|..on rev|
|00003c20| 55 70 64 61 74 65 46 69 | 65 6c 64 0a 20 20 2d 2d |UpdateFi|eld. --|
|00003c30| 75 70 64 61 74 65 20 74 | 68 65 20 63 6f 6e 74 65 |update t|he conte|
|00003c40| 6e 74 73 20 6f 66 20 74 | 68 65 20 4d 65 6e 75 20 |nts of t|he Menu |
|00003c50| 49 74 65 6d 73 20 66 6c | 64 0a 20 20 67 6c 6f 62 |Items fl|d. glob|
|00003c60| 61 6c 20 67 52 45 56 4d | 4d 4d 65 6e 75 49 74 65 |al gREVM|MMenuIte|
|00003c70| 6d 73 0a 20 20 70 75 74 | 20 65 6d 70 74 79 20 69 |ms. put| empty i|
|00003c80| 6e 74 6f 20 74 4d 65 6e | 75 49 74 65 6d 73 0a 20 |nto tMen|uItems. |
|00003c90| 20 72 65 70 65 61 74 20 | 66 6f 72 20 65 61 63 68 | repeat |for each|
|00003ca0| 20 6c 69 6e 65 20 6c 20 | 69 6e 20 67 52 45 56 4d | line l |in gREVM|
|00003cb0| 4d 4d 65 6e 75 49 74 65 | 6d 73 0a 20 20 20 20 70 |MMenuIte|ms. p|
|00003cc0| 75 74 20 74 61 62 20 26 | 20 69 74 65 6d 20 32 20 |ut tab &| item 2 |
|00003cd0| 6f 66 20 6c 20 26 20 63 | 72 20 61 66 74 65 72 20 |of l & c|r after |
|00003ce0| 74 4d 65 6e 75 49 74 65 | 6d 73 0a 20 20 65 6e 64 |tMenuIte|ms. end|
|00003cf0| 20 72 65 70 65 61 74 0a | 20 20 64 65 6c 65 74 65 | repeat.| delete|
|00003d00| 20 6c 61 73 74 20 63 68 | 61 72 20 6f 66 20 74 4d | last ch|ar of tM|
|00003d10| 65 6e 75 49 74 65 6d 73 | 0a 20 20 2d 2d 61 6e 73 |enuItems|. --ans|
|00003d20| 77 65 72 20 74 4d 65 6e | 75 49 74 65 6d 73 0a 20 |wer tMen|uItems. |
|00003d30| 20 70 75 74 20 74 4d 65 | 6e 75 49 74 65 6d 73 20 | put tMe|nuItems |
|00003d40| 69 6e 74 6f 20 66 6c 64 | 20 22 4d 65 6e 75 20 49 |into fld| "Menu I|
|00003d50| 74 65 6d 73 22 0a 65 6e | 64 20 72 65 76 55 70 64 |tems".en|d revUpd|
|00003d60| 61 74 65 46 69 65 6c 64 | 0a 0a 6f 6e 20 72 65 76 |ateField|..on rev|
|00003d70| 47 65 6e 65 72 61 74 65 | 49 74 65 6d 73 46 69 65 |Generate|ItemsFie|
|00003d80| 6c 64 0a 20 20 2d 2d 73 | 65 74 20 74 68 65 20 63 |ld. --s|et the c|
|00003d90| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 6d |ontents |of the m|
|00003da0| 65 6e 75 20 49 74 65 6d | 73 20 66 6c 64 2c 20 69 |enu Item|s fld, i|
|00003db0| 74 73 20 76 61 72 69 61 | 62 6c 65 20 61 6e 64 20 |ts varia|ble and |
|00003dc0| 69 6e 69 74 69 61 6c 69 | 73 65 20 74 68 65 20 66 |initiali|se the f|
|00003dd0| 6f 6c 64 6f 75 74 20 74 | 72 69 61 6e 67 6c 65 73 |oldout t|riangles|
|00003de0| 0a 20 20 67 6c 6f 62 61 | 6c 20 67 52 45 56 54 65 |. globa|l gREVTe|
|00003df0| 78 74 48 65 69 67 68 74 | 2c 20 67 52 45 56 4d 4d |xtHeight|, gREVMM|
|00003e00| 4d 65 6e 75 49 74 65 6d | 73 2c 20 67 52 45 56 41 |MenuItem|s, gREVA|
|00003e10| 63 74 69 76 65 4d 65 6e | 75 42 75 74 74 6f 6e 0a |ctiveMen|uButton.|
|00003e20| 20 20 6c 6f 63 6b 20 6d | 65 73 73 61 67 65 73 0a | lock m|essages.|
|00003e30| 20 20 70 75 74 20 74 68 | 65 20 74 65 78 74 20 6f | put th|e text o|
|00003e40| 66 20 67 52 45 56 41 63 | 74 69 76 65 4d 65 6e 75 |f gREVAc|tiveMenu|
|00003e50| 42 75 74 74 6f 6e 20 69 | 6e 74 6f 20 74 4d 65 6e |Button i|nto tMen|
|00003e60| 75 49 74 65 6d 73 0a 20 | 20 70 75 74 20 65 6d 70 |uItems. | put emp|
|00003e70| 74 79 20 69 6e 74 6f 20 | 74 43 6f 75 6e 74 65 72 |ty into |tCounter|
|00003e80| 0a 20 20 70 75 74 20 65 | 6d 70 74 79 20 69 6e 74 |. put e|mpty int|
|00003e90| 6f 20 67 52 45 56 4d 4d | 4d 65 6e 75 49 74 65 6d |o gREVMM|MenuItem|
|00003ea0| 73 0a 20 20 72 65 70 65 | 61 74 20 66 6f 72 20 65 |s. repe|at for e|
|00003eb0| 61 63 68 20 6c 69 6e 65 | 20 6c 20 69 6e 20 74 4d |ach line| l in tM|
|00003ec0| 65 6e 75 49 74 65 6d 73 | 0a 20 20 20 20 61 64 64 |enuItems|. add|
|00003ed0| 20 31 20 74 6f 20 74 43 | 6f 75 6e 74 65 72 0a 20 | 1 to tC|ounter. |
|00003ee0| 20 20 20 69 66 20 74 61 | 62 20 69 73 20 69 6e 20 | if ta|b is in |
|00003ef0| 6c 20 74 68 65 6e 0a 20 | 20 20 20 20 20 2d 2d 69 |l then. | --i|
|00003f00| 66 20 6c 61 73 74 20 69 | 74 65 6d 20 77 61 73 20 |f last i|tem was |
|00003f10| 63 61 73 63 61 64 65 20 | 6d 65 6e 75 2c 20 73 65 |cascade |menu, se|
|00003f20| 74 20 69 74 73 20 69 63 | 6f 6e 0a 20 20 20 20 20 |t its ic|on. |
|00003f30| 20 69 66 20 74 4e 6f 74 | 43 61 73 63 61 64 65 20 | if tNot|Cascade |
|00003f40| 74 68 65 6e 20 70 75 74 | 20 66 61 6c 73 65 20 69 |then put| false i|
|00003f50| 6e 74 6f 20 69 74 65 6d | 20 31 20 6f 66 20 74 68 |nto item| 1 of th|
|00003f60| 65 20 6c 61 73 74 20 6c | 69 6e 65 20 6f 66 20 67 |e last l|ine of g|
|00003f70| 52 45 56 4d 4d 4d 65 6e | 75 49 74 65 6d 73 0a 20 |REVMMMen|uItems. |
|00003f80| 20 20 20 20 20 70 75 74 | 20 66 61 6c 73 65 20 69 | put| false i|
|00003f90| 6e 74 6f 20 74 4e 6f 74 | 43 61 73 63 61 64 65 0a |nto tNot|Cascade.|
|00003fa0| 20 20 20 20 65 6c 73 65 | 0a 20 20 20 20 20 20 70 | else|. p|
|00003fb0| 75 74 20 74 72 75 65 20 | 69 6e 74 6f 20 74 4e 6f |ut true |into tNo|
|00003fc0| 74 43 61 73 63 61 64 65 | 0a 20 20 20 20 20 20 70 |tCascade|. p|
|00003fd0| 75 74 20 65 6d 70 74 79 | 2c 20 6c 2c 20 74 43 6f |ut empty|, l, tCo|
|00003fe0| 75 6e 74 65 72 20 26 20 | 63 72 20 61 66 74 65 72 |unter & |cr after|
|00003ff0| 20 67 52 45 56 4d 4d 4d | 65 6e 75 49 74 65 6d 73 | gREVMMM|enuItems|
|00004000| 0a 20 20 20 20 20 20 70 | 75 74 20 74 61 62 20 26 |. p|ut tab &|
|00004010| 20 6c 20 26 20 63 72 20 | 61 66 74 65 72 20 74 4d | l & cr |after tM|
|00004020| 65 6e 75 49 74 65 6d 73 | 46 69 65 6c 64 0a 20 20 |enuItems|Field. |
|00004030| 20 20 65 6e 64 20 69 66 | 0a 20 20 65 6e 64 20 72 | end if|. end r|
|00004040| 65 70 65 61 74 0a 20 20 | 64 65 6c 65 74 65 20 6c |epeat. |delete l|
|00004050| 61 73 74 20 63 68 61 72 | 20 6f 66 20 67 52 45 56 |ast char| of gREV|
|00004060| 4d 4d 4d 65 6e 75 49 74 | 65 6d 73 0a 20 20 64 65 |MMMenuIt|ems. de|
|00004070| 6c 65 74 65 20 6c 61 73 | 74 20 63 68 61 72 20 6f |lete las|t char o|
|00004080| 66 20 74 4d 65 6e 75 49 | 74 65 6d 73 46 69 65 6c |f tMenuI|temsFiel|
|00004090| 64 0a 20 20 70 75 74 20 | 74 4d 65 6e 75 49 74 65 |d. put |tMenuIte|
|000040a0| 6d 73 46 69 65 6c 64 20 | 69 6e 74 6f 20 66 6c 64 |msField |into fld|
|000040b0| 20 22 4d 65 6e 75 20 49 | 74 65 6d 73 22 0a 20 20 | "Menu I|tems". |
|000040c0| 2d 2d 69 6e 73 65 72 74 | 69 6f 6e 20 77 69 64 67 |--insert|ion widg|
|000040d0| 65 74 0a 20 20 70 75 74 | 20 72 6f 75 6e 64 28 28 |et. put| round((|
|000040e0| 69 74 65 6d 20 32 20 6f | 66 20 74 68 65 20 6c 6f |item 2 o|f the lo|
|000040f0| 63 20 6f 66 20 67 72 70 | 20 22 49 74 65 6d 20 49 |c of grp| "Item I|
|00004100| 6e 73 65 72 74 22 20 2d | 20 74 68 65 20 74 6f 70 |nsert" -| the top|
|00004110| 20 6f 66 20 66 6c 64 20 | 22 4d 65 6e 75 20 49 74 | of fld |"Menu It|
|00004120| 65 6d 73 22 29 2f 67 52 | 45 56 54 65 78 74 48 65 |ems")/gR|EVTextHe|
|00004130| 69 67 68 74 29 20 69 6e | 74 6f 20 74 57 69 64 67 |ight) in|to tWidg|
|00004140| 65 74 4c 69 6e 65 0a 20 | 20 69 66 20 74 68 65 20 |etLine. | if the |
|00004150| 6e 75 6d 20 6f 66 20 6c | 69 6e 65 73 20 69 6e 20 |num of l|ines in |
|00004160| 74 4d 65 6e 75 49 74 65 | 6d 73 46 69 65 6c 64 20 |tMenuIte|msField |
|00004170| 3c 20 74 57 69 64 67 65 | 74 4c 69 6e 65 20 74 68 |< tWidge|tLine th|
|00004180| 65 6e 20 0a 20 20 20 20 | 70 75 74 20 74 68 65 20 |en . |put the |
|00004190| 6e 75 6d 20 6f 66 20 6c | 69 6e 65 73 20 69 6e 20 |num of l|ines in |
|000041a0| 74 4d 65 6e 75 49 74 65 | 6d 73 46 69 65 6c 64 20 |tMenuIte|msField |
|000041b0| 69 6e 74 6f 20 74 57 69 | 64 67 65 74 4c 69 6e 65 |into tWi|dgetLine|
|000041c0| 0a 20 20 20 20 73 65 74 | 20 74 68 65 20 74 6f 70 |. set| the top|
|000041d0| 20 6f 66 20 67 72 70 20 | 22 49 74 65 6d 20 49 6e | of grp |"Item In|
|000041e0| 73 65 72 74 22 20 74 6f | 20 74 68 65 20 74 6f 70 |sert" to| the top|
|000041f0| 20 6f 66 20 66 6c 64 20 | 22 4d 65 6e 75 20 49 74 | of fld |"Menu It|
|00004200| 65 6d 73 22 20 2b 20 28 | 74 57 69 64 67 65 74 4c |ems" + (|tWidgetL|
|00004210| 69 6e 65 20 2a 20 67 52 | 45 56 54 65 78 74 48 65 |ine * gR|EVTextHe|
|00004220| 69 67 68 74 29 20 2d 20 | 74 68 65 20 74 6f 70 4d |ight) - |the topM|
|00004230| 61 72 67 69 6e 20 6f 66 | 20 66 6c 64 20 22 4d 65 |argin of| fld "Me|
|00004240| 6e 75 20 49 74 65 6d 73 | 22 20 2b 20 33 0a 20 20 |nu Items|" + 3. |
|00004250| 65 6e 64 20 69 66 0a 20 | 20 69 66 20 74 68 65 20 |end if. | if the |
|00004260| 62 6f 74 74 6f 6d 20 6f | 66 20 67 72 70 20 22 49 |bottom o|f grp "I|
|00004270| 74 65 6d 20 49 6e 73 65 | 72 74 22 20 69 73 20 2d |tem Inse|rt" is -|
|00004280| 20 31 30 30 30 20 74 68 | 65 6e 0a 20 20 20 20 73 | 1000 th|en. s|
|00004290| 65 74 20 74 68 65 20 74 | 6f 70 20 6f 66 20 67 72 |et the t|op of gr|
|000042a0| 70 20 22 49 74 65 6d 20 | 49 6e 73 65 72 74 22 20 |p "Item |Insert" |
|000042b0| 74 6f 20 74 68 65 20 74 | 6f 70 20 6f 66 20 66 6c |to the t|op of fl|
|000042c0| 64 20 22 4d 65 6e 75 20 | 49 74 65 6d 73 22 20 2d |d "Menu |Items" -|
|000042d0| 20 37 0a 20 20 20 20 73 | 65 74 20 74 68 65 20 63 | 7. s|et the c|
|000042e0| 52 45 56 4c 69 6e 65 20 | 6f 66 20 67 72 70 20 22 |REVLine |of grp "|
|000042f0| 49 74 65 6d 20 49 6e 73 | 65 72 74 22 20 74 6f 20 |Item Ins|ert" to |
|00004300| 30 0a 20 20 65 6c 73 65 | 0a 20 20 20 20 73 65 74 |0. else|. set|
|00004310| 20 74 68 65 20 63 52 45 | 56 4c 69 6e 65 20 6f 66 | the cRE|VLine of|
|00004320| 20 67 72 70 20 22 49 74 | 65 6d 20 49 6e 73 65 72 | grp "It|em Inser|
|00004330| 74 22 20 74 6f 20 74 57 | 69 64 67 65 74 4c 69 6e |t" to tW|idgetLin|
|00004340| 65 0a 20 20 65 6e 64 20 | 69 66 0a 20 20 2d 2d 66 |e. end |if. --f|
|00004350| 6f 6c 64 6f 75 74 20 74 | 72 69 61 6e 67 6c 65 73 |oldout t|riangles|
|00004360| 0a 20 20 70 75 74 20 74 | 68 65 20 6e 75 6d 20 6f |. put t|he num o|
|00004370| 66 20 62 74 6e 73 20 69 | 6e 20 67 72 70 20 22 46 |f btns i|n grp "F|
|00004380| 6f 6c 64 6f 75 74 20 54 | 72 69 61 6e 67 6c 65 73 |oldout T|riangles|
|00004390| 22 20 69 6e 74 6f 20 74 | 4e 75 6d 42 75 74 74 6f |" into t|NumButto|
|000043a0| 6e 73 0a 20 20 72 65 70 | 65 61 74 20 77 69 74 68 |ns. rep|eat with|
|000043b0| 20 69 20 3d 20 31 20 74 | 6f 20 74 4e 75 6d 42 75 | i = 1 t|o tNumBu|
|000043c0| 74 74 6f 6e 73 0a 20 20 | 20 20 70 75 74 20 69 74 |ttons. | put it|
|000043d0| 65 6d 20 31 20 6f 66 20 | 6c 69 6e 65 20 69 20 6f |em 1 of |line i o|
|000043e0| 66 20 67 52 45 56 4d 4d | 4d 65 6e 75 49 74 65 6d |f gREVMM|MenuItem|
|000043f0| 73 20 69 6e 74 6f 20 74 | 49 63 6f 6e 0a 20 20 20 |s into t|Icon. |
|00004400| 20 69 66 20 74 49 63 6f | 6e 20 69 73 20 66 61 6c | if tIco|n is fal|
|00004410| 73 65 20 74 68 65 6e 0a | 20 20 20 20 20 20 65 6e |se then.| en|
|00004420| 61 62 6c 65 20 62 74 6e | 20 69 20 6f 66 20 67 72 |able btn| i of gr|
|00004430| 70 20 22 46 6f 6c 64 6f | 75 74 20 54 72 69 61 6e |p "Foldo|ut Trian|
|00004440| 67 6c 65 73 22 0a 20 20 | 20 20 20 20 75 6e 68 69 |gles". | unhi|
|00004450| 6c 69 74 65 20 62 74 6e | 20 69 20 6f 66 20 67 72 |lite btn| i of gr|
|00004460| 70 20 22 46 6f 6c 64 6f | 75 74 20 54 72 69 61 6e |p "Foldo|ut Trian|
|00004470| 67 6c 65 73 22 0a 20 20 | 20 20 20 20 73 65 74 20 |gles". | set |
|00004480| 74 68 65 20 69 63 6f 6e | 20 6f 66 20 62 74 6e 20 |the icon| of btn |
|00004490| 69 20 6f 66 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |i of grp| "Foldou|
|000044a0| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 20 74 6f 20 |t Triang|les" to |
|000044b0| 74 68 65 20 63 52 45 56 | 49 63 6f 6e 20 6f 66 20 |the cREV|Icon of |
|000044c0| 62 74 6e 20 69 20 6f 66 | 20 67 72 70 20 22 46 6f |btn i of| grp "Fo|
|000044d0| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|000044e0| 0a 20 20 20 20 65 6c 73 | 65 0a 20 20 20 20 20 20 |. els|e. |
|000044f0| 64 69 73 61 62 6c 65 20 | 62 74 6e 20 69 20 6f 66 |disable |btn i of|
|00004500| 20 67 72 70 20 22 46 6f | 6c 64 6f 75 74 20 54 72 | grp "Fo|ldout Tr|
|00004510| 69 61 6e 67 6c 65 73 22 | 20 0a 20 20 20 20 20 20 |iangles"| . |
|00004520| 75 6e 68 69 6c 69 74 65 | 20 62 74 6e 20 69 20 6f |unhilite| btn i o|
|00004530| 66 20 67 72 70 20 22 46 | 6f 6c 64 6f 75 74 20 54 |f grp "F|oldout T|
|00004540| 72 69 61 6e 67 6c 65 73 | 22 20 20 20 20 0a 20 20 |riangles|" . |
|00004550| 20 20 20 20 73 65 74 20 | 74 68 65 20 73 68 6f 77 | set |the show|
|00004560| 49 63 6f 6e 20 6f 66 20 | 62 74 6e 20 69 20 6f 66 |Icon of |btn i of|
|00004570| 20 67 72 70 20 22 46 6f | 6c 64 6f 75 74 20 54 72 | grp "Fo|ldout Tr|
|00004580| 69 61 6e 67 6c 65 73 22 | 20 74 6f 20 66 61 6c 73 |iangles"| to fals|
|00004590| 65 0a 20 20 20 20 65 6e | 64 20 69 66 0a 20 20 65 |e. en|d if. e|
|000045a0| 6e 64 20 72 65 70 65 61 | 74 0a 20 20 75 6e 6c 6f |nd repea|t. unlo|
|000045b0| 63 6b 20 6d 65 73 73 61 | 67 65 73 0a 65 6e 64 20 |ck messa|ges.end |
|000045c0| 72 65 76 47 65 6e 65 72 | 61 74 65 49 74 65 6d 73 |revGener|ateItems|
|000045d0| 46 69 65 6c 64 0a 0a 6f | 6e 20 72 65 76 44 65 6c |Field..o|n revDel|
|000045e0| 65 74 65 4d 65 6e 75 4d | 61 6e 61 67 65 72 47 72 |eteMenuM|anagerGr|
|000045f0| 6f 75 70 0a 20 20 6c 6f | 63 6b 20 73 63 72 65 65 |oup. lo|ck scree|
|00004600| 6e 0a 20 20 2d 2d 72 65 | 73 65 74 20 6d 65 6e 75 |n. --re|set menu|
|00004610| 20 62 61 72 0a 20 20 72 | 65 76 52 65 73 65 74 0a | bar. r|evReset.|
|00004620| 20 20 72 65 76 49 6e 69 | 74 69 61 6c 69 73 65 0a | revIni|tialise.|
|00004630| 20 20 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 0a | unlock| screen.|
|00004640| 65 6e 64 20 72 65 76 44 | 65 6c 65 74 65 4d 65 6e |end revD|eleteMen|
|00004650| 75 4d 61 6e 61 67 65 72 | 47 72 6f 75 70 0a 00 00 |uManager|Group...|
|00004660| 00 00 00 80 00 00 00 00 | 00 01 92 01 7d 00 00 00 |........|....}...|
|00004670| 00 18 00 15 63 52 45 56 | 47 65 6f 6d 65 74 72 79 |....cREV|Geometry|
|00004680| 43 61 63 68 65 49 44 73 | 00 00 00 00 37 0d 39 36 |CacheIDs|....7.96|
|00004690| 35 30 35 32 38 32 39 37 | 34 37 00 00 04 34 38 39 |50528297|47...489|
|000046a0| 30 0d 39 36 35 30 35 32 | 38 32 39 37 34 38 00 00 |0.965052|829748..|
|000046b0| 04 34 38 38 38 0d 39 36 | 37 34 38 30 38 37 34 33 |.4888.96|74808743|
|000046c0| 34 37 00 00 04 34 38 36 | 38 0d 39 36 37 30 36 31 |47...486|8.967061|
|000046d0| 39 37 32 34 34 37 00 00 | 04 34 38 34 37 0d 39 39 |972447..|.4847.99|
|000046e0| 30 35 39 39 36 32 34 35 | 33 32 00 00 04 35 36 31 |05996245|32...561|
|000046f0| 30 0d 39 36 37 32 32 31 | 32 32 39 35 39 34 00 00 |0.967221|229594..|
|00004700| 04 34 38 36 31 0d 39 36 | 36 34 32 31 30 39 31 34 |.4861.96|64210914|
|00004710| 33 35 00 00 04 32 37 37 | 31 0d 39 38 33 37 33 39 |35...277|1.983739|
|00004720| 31 39 30 34 30 39 00 00 | 04 35 33 32 30 0d 39 38 |190409..|.5320.98|
|00004730| 33 37 33 39 31 39 30 34 | 31 30 00 00 04 35 33 31 |37391904|10...531|
|00004740| 39 0d 39 38 32 36 32 35 | 39 30 36 39 30 38 00 00 |9.982625|906908..|
|00004750| 04 34 38 39 38 0d 39 36 | 35 30 35 36 32 32 34 31 |.4898.96|50562241|
|00004760| 31 38 00 00 04 34 38 35 | 30 0d 39 36 35 31 36 36 |18...485|0.965166|
|00004770| 35 31 39 34 31 36 00 00 | 04 34 38 38 32 0d 39 36 |519416..|.4882.96|
|00004780| 35 30 35 32 38 32 39 37 | 30 30 00 00 04 34 38 36 |50528297|00...486|
|00004790| 33 0d 39 36 35 32 31 30 | 31 37 38 39 35 38 00 00 |3.965210|178958..|
|000047a0| 04 34 38 33 39 0d 39 36 | 37 30 36 31 33 34 38 33 |.4839.96|70613483|
|000047b0| 38 36 00 00 04 36 31 33 | 33 0d 39 36 38 38 30 32 |86...613|3.968802|
|000047c0| 30 33 39 31 37 39 00 00 | 04 33 39 38 34 0d 39 36 |039179..|.3984.96|
|000047d0| 35 30 35 32 38 32 39 37 | 30 31 00 00 04 34 38 36 |50528297|01...486|
|000047e0| 34 0d 39 36 35 30 35 32 | 38 32 39 37 30 32 00 00 |4.965052|829702..|
|000047f0| 04 34 38 36 35 0d 39 36 | 37 32 31 38 39 36 31 38 |.4865.96|72189618|
|00004800| 36 30 00 00 04 33 32 32 | 36 0d 39 36 37 34 38 31 |60...322|6.967481|
|00004810| 37 37 33 30 37 34 00 00 | 04 34 38 35 35 0d 39 36 |773074..|.4855.96|
|00004820| 37 32 34 30 31 36 35 30 | 37 31 00 00 04 33 32 36 |72401650|71...326|
|00004830| 30 0d 39 38 33 38 33 36 | 38 34 34 36 34 33 00 00 |0.983836|844643..|
|00004840| 04 35 33 35 31 0d 39 36 | 37 32 32 36 37 38 34 35 |.5351.96|72267845|
|00004850| 39 39 00 00 04 34 38 35 | 31 0d 39 36 35 30 35 32 |99...485|1.965052|
|00004860| 38 32 39 36 39 36 00 00 | 04 31 30 37 35 0d 39 36 |829696..|.1075.96|
|00004870| 35 30 35 36 32 39 31 36 | 34 36 00 00 04 34 38 38 |50562916|46...488|
|00004880| 33 0d 39 36 37 32 33 36 | 37 37 35 33 31 34 00 00 |3.967236|775314..|
|00004890| 04 34 38 36 37 0d 39 36 | 35 30 35 32 38 32 39 36 |.4867.96|50528296|
|000048a0| 39 39 00 00 04 34 38 36 | 32 0d 39 36 37 32 34 39 |99...486|2.967249|
|000048b0| 36 36 31 32 37 33 00 00 | 04 34 38 35 32 0d 39 36 |661273..|.4852.96|
|000048c0| 37 34 37 39 33 38 32 36 | 35 35 00 00 04 34 38 35 |74793826|55...485|
|000048d0| 34 0d 39 36 35 30 35 32 | 38 32 39 37 31 33 00 00 |4.965052|829713..|
|000048e0| 04 34 38 34 38 0d 39 36 | 35 30 35 32 38 32 39 37 |.4848.96|50528297|
|000048f0| 31 34 00 00 04 34 38 34 | 39 0d 39 36 37 30 36 31 |14...484|9.967061|
|00004900| 39 39 30 33 37 39 00 00 | 04 34 38 37 37 0d 39 36 |990379..|.4877.96|
|00004910| 37 32 31 37 37 31 35 39 | 35 37 00 00 04 34 38 35 |72177159|57...485|
|00004920| 38 0d 39 36 37 34 37 39 | 33 38 32 35 37 38 00 00 |8.967479|382578..|
|00004930| 04 34 38 35 33 0d 39 36 | 37 32 34 37 39 30 39 30 |.4853.96|72479090|
|00004940| 38 39 00 00 04 33 32 38 | 31 0d 39 36 37 32 32 36 |89...328|1.967226|
|00004950| 37 35 31 36 30 33 00 00 | 04 34 38 37 38 0d 39 36 |751603..|.4878.96|
|00004960| 37 32 33 36 37 32 37 37 | 37 39 00 00 04 34 38 36 |72367277|79...486|
|00004970| 36 0d 39 36 37 32 31 37 | 36 32 39 37 37 31 00 00 |6.967217|629771..|
|00004980| 04 34 38 35 37 0d 39 36 | 35 30 35 32 38 32 39 37 |.4857.96|50528297|
|00004990| 32 33 00 00 04 31 30 38 | 39 0d 39 36 35 30 39 34 |23...108|9.965094|
|000049a0| 36 34 39 33 33 38 00 00 | 04 34 38 35 36 0d 39 36 |649338..|.4856.96|
|000049b0| 37 32 33 36 38 33 37 37 | 30 31 00 00 04 34 38 38 |72368377|01...488|
|000049c0| 34 0d 39 36 35 30 35 32 | 38 32 39 37 32 38 00 00 |4.965052|829728..|
|000049d0| 04 34 38 37 32 0d 39 36 | 35 30 35 32 38 32 39 37 |.4872.96|50528297|
|000049e0| 33 31 00 00 04 34 38 33 | 37 0d 39 36 37 32 31 38 |31...483|7.967218|
|000049f0| 36 39 34 30 34 32 00 00 | 04 33 32 32 34 0d 39 36 |694042..|.3224.96|
|00004a00| 35 31 37 32 39 36 32 31 | 32 32 00 00 04 34 38 33 |51729621|22...483|
|00004a10| 38 0d 39 36 37 32 34 36 | 34 37 35 38 32 32 00 00 |8.967246|475822..|
|00004a20| 04 34 38 37 39 0d 39 36 | 37 32 34 36 30 39 33 36 |.4879.96|72460936|
|00004a30| 31 33 00 00 04 33 32 36 | 35 0d 39 36 35 30 35 32 |13...326|5.965052|
|00004a40| 38 32 39 37 33 38 00 00 | 04 34 38 38 31 0d 39 36 |829738..|.4881.96|
|00004a50| 35 30 35 32 38 32 39 37 | 34 31 00 00 04 31 31 39 |50528297|41...119|
|00004a60| 39 0d 39 36 35 30 35 32 | 38 32 39 37 34 32 00 00 |9.965052|829742..|
|00004a70| 04 34 38 37 31 0d 39 36 | 35 30 35 32 38 32 39 37 |.4871.96|50528297|
|00004a80| 34 33 00 00 04 34 38 37 | 30 0d 39 39 33 30 37 34 |43...487|0.993074|
|00004a90| 33 34 39 32 39 31 00 00 | 04 35 38 36 38 0d 39 36 |349291..|.5868.96|
|00004aa0| 35 30 35 32 38 32 39 37 | 34 34 00 00 04 34 38 36 |50528297|44...486|
|00004ab0| 39 0d 39 36 35 30 35 32 | 38 32 39 37 34 35 00 00 |9.965052|829745..|
|00004ac0| 04 31 32 30 30 0d 39 36 | 35 30 35 32 38 32 39 37 |.1200.96|50528297|
|00004ad0| 34 36 00 00 04 34 38 38 | 39 18 00 0c 63 52 45 56 |46...488|9...cREV|
|00004ae0| 47 65 6e 65 72 61 6c 00 | 00 00 00 07 0f 73 63 72 |General.|.....scr|
|00004af0| 69 70 74 43 68 65 63 6b | 73 75 6d 00 00 10 fd 70 |iptCheck|sum....p|
|00004b00| be f3 03 f5 82 90 f2 c6 | 18 80 16 b1 4c 71 0a 62 |........|....Lq.b|
|00004b10| 6f 6f 6b 6d 61 72 6b 73 | 00 00 00 0c 68 61 6e 64 |ookmarks|....hand|
|00004b20| 6c 65 72 4c 69 73 74 00 | 01 5c 70 72 65 4f 70 65 |lerList.|.\preOpe|
|00004b30| 6e 53 74 61 63 6b 0a 72 | 65 73 75 6d 65 53 74 61 |nStack.r|esumeSta|
|00004b40| 63 6b 0a 64 65 6c 65 74 | 65 4b 65 79 0a 72 65 76 |ck.delet|eKey.rev|
|00004b50| 4d 65 6e 75 4d 61 6e 61 | 67 65 72 49 6e 69 74 69 |MenuMana|gerIniti|
|00004b60| 61 6c 69 73 61 74 69 6f | 6e 0a 72 65 76 52 65 73 |alisatio|n.revRes|
|00004b70| 65 74 0a 63 6c 6f 73 65 | 53 74 61 63 6b 52 65 71 |et.close|StackReq|
|00004b80| 75 65 73 74 0a 63 6c 6f | 73 65 53 74 61 63 6b 0a |uest.clo|seStack.|
|00004b90| 72 65 76 49 6e 69 74 69 | 61 6c 69 73 65 46 69 65 |revIniti|aliseFie|
|00004ba0| 6c 64 49 63 6f 6e 73 0a | 72 65 76 4c 61 79 6f 75 |ldIcons.|revLayou|
|00004bb0| 74 4d 65 6e 75 42 75 74 | 74 6f 6e 73 0a 72 65 76 |tMenuBut|tons.rev|
|00004bc0| 49 6e 69 74 69 61 6c 69 | 73 65 0a 72 65 76 49 6e |Initiali|se.revIn|
|00004bd0| 69 74 69 61 6c 69 73 65 | 46 6f 72 4e 65 77 4d 65 |itialise|ForNewMe|
|00004be0| 6e 75 0a 72 65 76 46 69 | 6c 74 65 72 49 74 65 6d |nu.revFi|lterItem|
|00004bf0| 4e 61 6d 65 0a 72 65 76 | 49 6e 69 74 69 61 6c 69 |Name.rev|Initiali|
|00004c00| 73 65 46 6f 72 4e 6f 49 | 74 65 6d 53 65 6c 65 63 |seForNoI|temSelec|
|00004c10| 74 69 6f 6e 0a 72 65 76 | 4d 65 6e 75 4c 6f 6e 67 |tion.rev|MenuLong|
|00004c20| 49 44 0a 72 65 76 55 70 | 64 61 74 65 53 63 72 6f |ID.revUp|dateScro|
|00004c30| 6c 6c 62 61 72 0a 72 65 | 76 52 65 73 65 74 54 72 |llbar.re|vResetTr|
|00004c40| 69 61 6e 67 6c 65 73 0a | 72 65 76 55 70 64 61 74 |iangles.|revUpdat|
|00004c50| 65 46 69 65 6c 64 0a 72 | 65 76 47 65 6e 65 72 61 |eField.r|evGenera|
|00004c60| 74 65 49 74 65 6d 73 46 | 69 65 6c 64 0a 72 65 76 |teItemsF|ield.rev|
|00004c70| 44 65 6c 65 74 65 4d 65 | 6e 75 4d 61 6e 61 67 65 |DeleteMe|nuManage|
|00004c80| 72 47 72 6f 75 70 0b 74 | 65 6d 70 53 63 72 69 70 |rGroup.t|empScrip|
|00004c90| 74 00 00 00 0c 70 72 65 | 76 48 61 6e 64 6c 65 72 |t....pre|vHandler|
|00004ca0| 00 00 0d 72 65 76 49 6e | 69 74 69 61 6c 69 73 65 |...revIn|itialise|
|00004cb0| 10 73 63 72 69 70 74 53 | 65 6c 65 63 74 69 6f 6e |.scriptS|election|
|00004cc0| 00 00 11 63 68 61 72 20 | 38 33 34 35 20 74 6f 20 |...char |8345 to |
|00004cd0| 38 33 34 34 07 73 63 72 | 69 70 74 00 4f 16 3c 70 |8344.scr|ipt.O.<p|
|00004ce0| 3e 6f 6e 20 70 72 65 4f | 70 65 6e 53 74 61 63 6b |>on preO|penStack|
|00004cf0| 3c 2f 70 3e 0a 3c 70 3e | 20 20 2d 2d 77 69 6e 64 |</p>.<p>| --wind|
|00004d00| 6f 77 20 70 6f 73 69 74 | 69 6f 6e 69 6e 67 3c 2f |ow posit|ioning</|
|00004d10| 70 3e 0a 3c 70 3e 20 20 | 70 75 74 20 74 68 65 20 |p>.<p> |put the |
|00004d20| 63 52 45 56 4d 65 6e 75 | 4d 61 6e 61 67 65 72 54 |cREVMenu|ManagerT|
|00004d30| 6f 70 4c 65 66 74 20 6f | 66 20 73 74 61 63 6b 20 |opLeft o|f stack |
|00004d40| 22 72 65 76 50 72 65 66 | 65 72 65 6e 63 65 73 22 |"revPref|erences"|
|00004d50| 20 69 6e 74 6f 20 74 54 | 6f 70 4c 65 66 74 3c 2f | into tT|opLeft</|
|00004d60| 70 3e 0a 3c 70 3e 20 20 | 69 66 20 74 54 6f 70 4c |p>.<p> |if tTopL|
|00004d70| 65 66 74 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |eft is n|ot empty|
|00004d80| 20 74 68 65 6e 3c 2f 70 | 3e 0a 3c 70 3e 20 20 20 | then</p|>.<p> |
|00004d90| 20 69 66 20 69 74 65 6d | 20 31 20 6f 66 20 74 54 | if item| 1 of tT|
|00004da0| 6f 70 4c 65 66 74 20 2b | 20 74 68 65 20 77 69 64 |opLeft +| the wid|
|00004db0| 74 68 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |th of th|is stack|
|00004dc0| 20 26 6c 74 3b 20 69 74 | 65 6d 20 33 20 6f 66 20 | < it|em 3 of |
|00004dd0| 74 68 65 20 77 69 6e 64 | 6f 77 42 6f 75 6e 64 69 |the wind|owBoundi|
|00004de0| 6e 67 52 65 63 74 20 5c | 3c 2f 70 3e 0a 3c 70 3e |ngRect \|</p>.<p>|
|00004df0| 20 20 20 20 20 20 20 20 | 61 6e 64 20 69 74 65 6d | |and item|
|00004e00| 20 32 20 6f 66 20 74 54 | 6f 70 4c 65 66 74 20 2b | 2 of tT|opLeft +|
|00004e10| 20 74 68 65 20 68 65 69 | 67 68 74 20 6f 66 20 74 | the hei|ght of t|
|00004e20| 68 69 73 20 73 74 61 63 | 6b 20 26 6c 74 3b 20 69 |his stac|k < i|
|00004e30| 74 65 6d 20 34 20 6f 66 | 20 74 68 65 20 77 69 6e |tem 4 of| the win|
|00004e40| 64 6f 77 42 6f 75 6e 64 | 69 6e 67 52 65 63 74 20 |dowBound|ingRect |
|00004e50| 74 68 65 6e 3c 2f 70 3e | 0a 3c 70 3e 20 20 20 20 |then</p>|.<p> |
|00004e60| 20 20 73 65 74 20 74 68 | 65 20 74 6f 70 4c 65 66 | set th|e topLef|
|00004e70| 74 20 6f 66 20 74 68 69 | 73 20 73 74 61 63 6b 20 |t of thi|s stack |
|00004e80| 74 6f 20 74 54 6f 70 4c | 65 66 74 3c 2f 70 3e 0a |to tTopL|eft</p>.|
|00004e90| 3c 70 3e 20 20 20 20 65 | 6c 73 65 20 3c 2f 70 3e |<p> e|lse </p>|
|00004ea0| 0a 3c 70 3e 20 20 20 20 | 20 20 73 65 74 20 6c 6f |.<p> | set lo|
|00004eb0| 63 20 6f 66 20 74 68 69 | 73 20 73 74 61 63 6b 20 |c of thi|s stack |
|00004ec0| 74 6f 20 74 68 65 20 73 | 63 72 65 65 6e 4c 6f 63 |to the s|creenLoc|
|00004ed0| 3c 2f 70 3e 0a 3c 70 3e | 20 20 20 20 65 6e 64 20 |</p>.<p>| end |
|00004ee0| 69 66 3c 2f 70 3e 0a 3c | 70 3e 20 20 65 6c 73 65 |if</p>.<|p> else|
|00004ef0| 20 73 65 74 20 74 68 65 | 20 6c 6f 63 20 6f 66 20 | set the| loc of |
|00004f00| 74 68 69 73 20 73 74 61 | 63 6b 20 74 6f 20 74 68 |this sta|ck to th|
|00004f10| 65 20 73 63 72 65 65 6e | 4c 6f 63 3c 2f 70 3e 0a |e screen|Loc</p>.|
|00004f20| 3c 70 3e 20 20 3c 2f 70 | 3e 0a 3c 70 3e 20 20 72 |<p> </p|>.<p> r|
|00004f30| 65 76 4d 65 6e 75 4d 61 | 6e 61 67 65 72 49 6e 69 |evMenuMa|nagerIni|
|00004f40| 74 69 61 6c 69 73 61 74 | 69 6f 6e 3c 2f 70 3e 0a |tialisat|ion</p>.|
|00004f50| 3c 70 3e 20 20 72 65 76 | 52 65 73 65 74 3c 2f 70 |<p> rev|Reset</p|
|00004f60| 3e 0a 3c 70 3e 20 20 72 | 65 76 49 6e 69 74 69 61 |>.<p> r|evInitia|
|00004f70| 6c 69 73 65 3c 2f 70 3e | 0a 3c 70 3e 20 20 70 61 |lise</p>|.<p> pa|
|00004f80| 73 73 20 70 72 65 4f 70 | 65 6e 53 74 61 63 6b 3c |ss preOp|enStack<|
|00004f90| 2f 70 3e 0a 3c 70 3e 65 | 6e 64 20 70 72 65 4f 70 |/p>.<p>e|nd preOp|
|00004fa0| 65 6e 53 74 61 63 6b 3c | 2f 70 3e 0a 3c 70 3e 3c |enStack<|/p>.<p><|
|00004fb0| 2f 70 3e 0a 3c 70 3e 6f | 6e 20 72 65 73 75 6d 65 |/p>.<p>o|n resume|
|00004fc0| 53 74 61 63 6b 3c 2f 70 | 3e 0a 3c 70 3e 20 20 69 |Stack</p|>.<p> i|
|00004fd0| 66 20 74 68 65 20 68 69 | 6c 69 74 65 20 6f 66 20 |f the hi|lite of |
|00004fe0| 62 74 6e 20 22 4d 61 63 | 4f 53 20 50 72 65 76 69 |btn "Mac|OS Previ|
|00004ff0| 65 77 22 3c 2f 70 3e 0a | 3c 70 3e 20 20 74 68 65 |ew"</p>.|<p> the|
|00005000| 6e 20 73 65 74 20 74 68 | 65 20 64 65 66 61 75 6c |n set th|e defaul|
|00005010| 74 4d 65 6e 75 42 61 72 | 20 74 6f 20 74 68 65 20 |tMenuBar| to the |
|00005020| 73 68 6f 72 74 20 6e 61 | 6d 65 20 6f 66 20 62 67 |short na|me of bg|
|00005030| 20 69 64 20 28 74 68 65 | 20 63 52 45 56 4d 65 6e | id (the| cREVMen|
|00005040| 75 49 44 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |uID of t|his stac|
|00005050| 6b 29 20 5c 3c 2f 70 3e | 0a 3c 70 3e 20 20 20 20 |k) \</p>|.<p> |
|00005060| 20 20 6f 66 20 73 74 61 | 63 6b 20 28 74 68 65 20 | of sta|ck (the |
|00005070| 63 52 45 56 44 65 66 61 | 75 6c 74 53 74 61 63 6b |cREVDefa|ultStack|
|00005080| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 29 3c | of this| stack)<|
|00005090| 2f 70 3e 0a 3c 70 3e 65 | 6e 64 20 72 65 73 75 6d |/p>.<p>e|nd resum|
|000050a0| 65 53 74 61 63 6b 3c 2f | 70 3e 0a 3c 70 3e 3c 2f |eStack</|p>.<p></|
|000050b0| 70 3e 0a 3c 70 3e 6f 6e | 20 64 65 6c 65 74 65 4b |p>.<p>on| deleteK|
|000050c0| 65 79 3c 2f 70 3e 0a 3c | 70 3e 20 20 69 66 20 74 |ey</p>.<|p> if t|
|000050d0| 68 65 20 74 61 72 67 65 | 74 20 69 73 20 6d 65 3c |he targe|t is me<|
|000050e0| 2f 70 3e 0a 3c 70 3e 20 | 20 74 68 65 6e 20 63 6c |/p>.<p> | then cl|
|000050f0| 69 63 6b 20 61 74 20 74 | 68 65 20 6c 6f 63 20 6f |ick at t|he loc o|
|00005100| 66 20 62 74 6e 20 22 44 | 65 6c 65 74 65 20 4d 65 |f btn "D|elete Me|
|00005110| 6e 75 22 3c 2f 70 3e 0a | 3c 70 3e 20 20 70 61 73 |nu"</p>.|<p> pas|
|00005120| 73 20 64 65 6c 65 74 65 | 4b 65 79 3c 2f 70 3e 0a |s delete|Key</p>.|
|00005130| 3c 70 3e 65 6e 64 20 64 | 65 6c 65 74 65 4b 65 79 |<p>end d|eleteKey|
|00005140| 3c 2f 70 3e 0a 3c 70 3e | 3c 2f 70 3e 0a 3c 70 3e |</p>.<p>|</p>.<p>|
|00005150| 6f 6e 20 72 65 76 4d 65 | 6e 75 4d 61 6e 61 67 65 |on revMe|nuManage|
|00005160| 72 49 6e 69 74 69 61 6c | 69 73 61 74 69 6f 6e 3c |rInitial|isation<|
|00005170| 2f 70 3e 0a 3c 70 3e 20 | 20 67 6c 6f 62 61 6c 20 |/p>.<p> | global |
|00005180| 67 52 45 56 54 65 78 74 | 48 65 69 67 68 74 3c 2f |gREVText|Height</|
|00005190| 70 3e 0a 3c 70 3e 20 20 | 2d 2d 73 74 75 66 66 20 |p>.<p> |--stuff |
|000051a0| 74 68 61 74 20 6f 6e 6c | 79 20 6e 65 65 64 73 20 |that onl|y needs |
|000051b0| 74 6f 20 62 65 20 64 6f | 6e 65 20 6f 6e 63 65 3c |to be do|ne once<|
|000051c0| 2f 70 3e 0a 3c 70 3e 20 | 20 2d 2d 69 6e 69 74 69 |/p>.<p> | --initi|
|000051d0| 61 6c 69 73 61 74 69 6f | 6e 3c 2f 70 3e 0a 3c 70 |alisatio|n</p>.<p|
|000051e0| 3e 20 20 69 66 20 67 52 | 45 56 54 65 78 74 48 65 |> if gR|EVTextHe|
|000051f0| 69 67 68 74 20 69 73 20 | 65 6d 70 74 79 20 74 68 |ight is |empty th|
|00005200| 65 6e 20 70 75 74 20 31 | 36 20 69 6e 74 6f 20 67 |en put 1|6 into g|
|00005210| 52 45 56 54 65 78 74 48 | 65 69 67 68 74 3c 2f 70 |REVTextH|eight</p|
|00005220| 3e 0a 3c 70 3e 20 20 73 | 65 74 20 74 68 65 20 74 |>.<p> s|et the t|
|00005230| 65 78 74 48 65 69 67 68 | 74 20 6f 66 20 66 6c 64 |extHeigh|t of fld|
|00005240| 20 22 4d 65 6e 75 20 42 | 75 74 74 6f 6e 73 22 20 | "Menu B|uttons" |
|00005250| 74 6f 20 67 52 45 56 54 | 65 78 74 48 65 69 67 68 |to gREVT|extHeigh|
|00005260| 74 3c 2f 70 3e 0a 3c 70 | 3e 20 20 73 65 74 20 74 |t</p>.<p|> set t|
|00005270| 68 65 20 74 65 78 74 48 | 65 69 67 68 74 20 6f 66 |he textH|eight of|
|00005280| 20 66 6c 64 20 22 4d 65 | 6e 75 20 49 74 65 6d 73 | fld "Me|nu Items|
|00005290| 22 20 74 6f 20 67 52 45 | 56 54 65 78 74 48 65 69 |" to gRE|VTextHei|
|000052a0| 67 68 74 3c 2f 70 3e 0a | 3c 70 3e 20 20 72 65 76 |ght</p>.|<p> rev|
|000052b0| 49 6e 69 74 69 61 6c 69 | 73 65 46 69 65 6c 64 49 |Initiali|seFieldI|
|000052c0| 63 6f 6e 73 3c 2f 70 3e | 0a 3c 70 3e 20 20 3c 2f |cons</p>|.<p> </|
|000052d0| 70 3e 0a 3c 70 3e 20 20 | 2d 2d 61 76 6f 69 64 20 |p>.<p> |--avoid |
|000052e0| 73 65 6e 64 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |sending |message |
|000052f0| 74 72 69 67 67 65 72 65 | 64 20 62 79 20 63 6c 6f |triggere|d by clo|
|00005300| 73 65 20 66 69 65 6c 64 | 20 77 68 65 6e 20 74 68 |se field| when th|
|00005310| 65 20 73 74 61 63 6b 20 | 69 73 20 63 6c 6f 73 65 |e stack |is close|
|00005320| 64 3c 2f 70 3e 0a 3c 70 | 3e 20 20 73 65 74 20 74 |d</p>.<p|> set t|
|00005330| 68 65 20 63 52 45 56 43 | 6c 6f 73 69 6e 67 20 6f |he cREVC|losing o|
|00005340| 66 20 74 68 69 73 20 73 | 74 61 63 6b 20 74 6f 20 |f this s|tack to |
|00005350| 66 61 6c 73 65 3c 2f 70 | 3e 0a 3c 70 3e 20 20 20 |false</p|>.<p> |
|00005360| 20 3c 2f 70 3e 0a 3c 70 | 3e 20 20 2d 2d 62 75 67 | </p>.<p|> --bug|
|00005370| 20 69 6e 20 74 68 65 20 | 73 63 72 6f 6c 6c 62 61 | in the |scrollba|
|00005380| 72 77 69 64 74 68 20 6f | 6e 20 6d 6f 74 69 66 20 |rwidth o|n motif |
|00005390| 20 3c 2f 70 3e 0a 3c 70 | 3e 20 20 69 66 20 74 68 | </p>.<p|> if th|
|000053a0| 65 20 6c 6f 6f 6b 41 6e | 64 46 65 65 6c 20 69 73 |e lookAn|dFeel is|
|000053b0| 20 22 4d 6f 74 69 66 22 | 3c 2f 70 3e 0a 3c 70 3e | "Motif"|</p>.<p>|
|000053c0| 20 20 74 68 65 6e 20 73 | 65 74 20 74 68 65 20 72 | then s|et the r|
|000053d0| 69 67 68 74 20 6f 66 20 | 62 74 6e 20 22 4d 65 6e |ight of |btn "Men|
|000053e0| 75 20 49 6e 73 65 72 74 | 69 6f 6e 20 41 72 72 6f |u Insert|ion Arro|
|000053f0| 77 22 20 74 6f 20 31 34 | 30 3c 2f 70 3e 0a 3c 70 |w" to 14|0</p>.<p|
|00005400| 3e 20 20 65 6c 73 65 20 | 73 65 74 20 74 68 65 20 |> else |set the |
|00005410| 72 69 67 68 74 20 6f 66 | 20 62 74 6e 20 22 4d 65 |right of| btn "Me|
|00005420| 6e 75 20 49 6e 73 65 72 | 74 69 6f 6e 20 41 72 72 |nu Inser|tion Arr|
|00005430| 6f 77 22 20 74 6f 20 31 | 34 34 3c 2f 70 3e 0a 3c |ow" to 1|44</p>.<|
|00005440| 70 3e 20 20 3c 2f 70 3e | 0a 3c 70 3e 20 20 2d 2d |p> </p>|.<p> --|
|00005450| 73 68 6f 77 49 6e 76 69 | 73 69 62 6c 65 73 20 63 |showInvi|sibles c|
|00005460| 6f 6d 70 61 74 69 62 6c | 65 20 73 65 6c 65 63 74 |ompatibl|e select|
|00005470| 69 6f 6e 20 6f 66 20 64 | 69 66 66 65 72 65 6e 74 |ion of d|ifferent|
|00005480| 20 70 72 65 76 69 65 77 | 20 61 63 63 6f 72 64 69 | preview| accordi|
|00005490| 6e 67 20 74 6f 20 70 6c | 61 74 66 6f 72 6d 3c 2f |ng to pl|atform</|
|000054a0| 70 3e 0a 3c 70 3e 20 20 | 2d 2d 4d 61 63 4f 53 20 |p>.<p> |--MacOS |
|000054b0| 68 61 73 20 63 68 65 63 | 6b 62 6f 78 20 74 6f 20 |has chec|kbox to |
|000054c0| 70 72 65 76 69 65 77 20 | 6d 65 6e 75 20 62 61 72 |preview |menu bar|
|000054d0| 3c 2f 70 3e 0a 3c 70 3e | 20 20 2d 2d 57 69 6e 64 |</p>.<p>| --Wind|
|000054e0| 6f 77 73 2f 55 6e 69 78 | 20 68 61 73 20 61 20 6d |ows/Unix| has a m|
|000054f0| 65 6e 75 20 62 75 74 74 | 6f 6e 20 77 68 69 63 68 |enu butt|on which|
|00005500| 20 70 72 65 76 69 65 77 | 73 20 74 68 65 20 73 65 | preview|s the se|
|00005510| 6c 65 63 74 65 64 20 6d | 65 6e 75 3c 2f 70 3e 0a |lected m|enu</p>.|
|00005520| 3c 70 3e 20 20 3c 2f 70 | 3e 0a 3c 70 3e 20 20 69 |<p> </p|>.<p> i|
|00005530| 66 20 74 68 65 20 70 6c | 61 74 66 6f 72 6d 20 69 |f the pl|atform i|
|00005540| 73 20 22 4d 61 63 4f 53 | 22 20 20 74 68 65 6e 20 |s "MacOS|" then |
|00005550| 20 20 20 20 3c 2f 70 3e | 0a 3c 70 3e 20 20 20 20 | </p>|.<p> |
|00005560| 73 65 74 20 74 68 65 20 | 74 6f 70 4c 65 66 74 20 |set the |topLeft |
|00005570| 6f 66 20 62 74 6e 20 22 | 4d 61 63 4f 53 20 50 72 |of btn "|MacOS Pr|
|00005580| 65 76 69 65 77 22 20 74 | 6f 20 74 68 65 20 63 54 |eview" t|o the cT|
|00005590| 6f 70 4c 65 66 74 20 6f | 66 20 62 74 6e 20 22 4d |opLeft o|f btn "M|
|000055a0| 61 63 4f 53 20 50 72 65 | 76 69 65 77 22 3c 2f 70 |acOS Pre|view"</p|
|000055b0| 3e 0a 3c 70 3e 20 20 20 | 20 73 65 74 20 74 68 65 |>.<p> | set the|
|000055c0| 20 62 6f 74 74 6f 6d 20 | 6f 66 20 67 72 70 20 22 | bottom |of grp "|
|000055d0| 57 69 6e 64 6f 77 73 20 | 50 72 65 76 69 65 77 22 |Windows |Preview"|
|000055e0| 20 74 6f 20 2d 31 30 30 | 3c 2f 70 3e 0a 3c 70 3e | to -100|</p>.<p>|
|000055f0| 20 20 65 6c 73 65 20 3c | 2f 70 3e 0a 3c 70 3e 20 | else <|/p>.<p> |
|00005600| 20 20 20 73 65 74 20 74 | 68 65 20 62 6f 74 74 6f | set t|he botto|
|00005610| 6d 20 6f 66 20 62 74 6e | 20 22 4d 61 63 4f 53 20 |m of btn| "MacOS |
|00005620| 50 72 65 76 69 65 77 22 | 20 74 6f 20 2d 31 30 30 |Preview"| to -100|
|00005630| 3c 2f 70 3e 0a 3c 70 3e | 20 20 20 20 73 65 74 20 |</p>.<p>| set |
|00005640| 74 68 65 20 62 6f 74 74 | 6f 6d 20 6f 66 20 67 72 |the bott|om of gr|
|00005650| 70 20 22 57 69 6e 64 6f | 77 73 20 50 72 65 76 69 |p "Windo|ws Previ|
|00005660| 65 77 22 20 74 6f 20 32 | 34 3c 2f 70 3e 0a 3c 70 |ew" to 2|4</p>.<p|
|00005670| 3e 20 20 65 6e 64 20 69 | 66 20 20 20 3c 2f 70 3e |> end i|f </p>|
|00005680| 0a 3c 70 3e 20 20 20 3c | 2f 70 3e 0a 3c 70 3e 20 |.<p> <|/p>.<p> |
|00005690| 20 73 65 74 20 74 68 65 | 20 63 52 45 56 46 69 72 | set the| cREVFir|
|000056a0| 73 74 53 65 6c 65 63 74 | 65 64 53 74 61 63 6b 20 |stSelect|edStack |
|000056b0| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 20 74 6f |of this |stack to|
|000056c0| 20 65 6d 70 74 79 20 20 | 3c 2f 70 3e 0a 3c 70 3e | empty |</p>.<p>|
|000056d0| 65 6e 64 20 72 65 76 4d | 65 6e 75 4d 61 6e 61 67 |end revM|enuManag|
|000056e0| 65 72 49 6e 69 74 69 61 | 6c 69 73 61 74 69 6f 6e |erInitia|lisation|
|000056f0| 3c 2f 70 3e 0a 3c 70 3e | 3c 2f 70 3e 0a 3c 70 3e |</p>.<p>|</p>.<p>|
|00005700| 6f 6e 20 72 65 76 52 65 | 73 65 74 3c 2f 70 3e 0a |on revRe|set</p>.|
|00005710| 3c 70 3e 20 20 70 75 74 | 20 65 6d 70 74 79 20 69 |<p> put| empty i|
|00005720| 6e 74 6f 20 66 6c 64 20 | 22 4d 65 6e 75 62 61 72 |nto fld |"Menubar|
|00005730| 22 3c 2f 70 3e 0a 3c 70 | 3e 20 20 70 75 74 20 65 |"</p>.<p|> put e|
|00005740| 6d 70 74 79 20 69 6e 74 | 6f 20 66 6c 64 20 22 4d |mpty int|o fld "M|
|00005750| 65 6e 75 20 42 75 74 74 | 6f 6e 73 22 3c 2f 70 3e |enu Butt|ons"</p>|
|00005760| 0a 3c 70 3e 20 20 73 65 | 74 20 74 68 65 20 63 52 |.<p> se|t the cR|
|00005770| 45 56 4d 65 6e 75 42 75 | 74 74 6f 6e 43 61 72 64 |EVMenuBu|ttonCard|
|00005780| 49 44 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |ID of th|is stack|
|00005790| 20 74 6f 20 65 6d 70 74 | 79 3c 2f 70 3e 0a 3c 70 | to empt|y</p>.<p|
|000057a0| 3e 20 20 73 65 74 20 74 | 68 65 20 63 52 45 56 4d |> set t|he cREVM|
|000057b0| 65 6e 75 62 61 72 20 6f | 66 20 74 68 69 73 20 73 |enubar o|f this s|
|000057c0| 74 61 63 6b 20 74 6f 20 | 65 6d 70 74 79 3c 2f 70 |tack to |empty</p|
|000057d0| 3e 0a 3c 70 3e 20 20 73 | 65 74 20 74 68 65 20 63 |>.<p> s|et the c|
|000057e0| 52 45 56 44 65 66 61 75 | 6c 74 53 74 61 63 6b 20 |REVDefau|ltStack |
|000057f0| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 20 74 6f |of this |stack to|
|00005800| 20 65 6d 70 74 79 3c 2f | 70 3e 0a 3c 70 3e 20 20 | empty</|p>.<p> |
|00005810| 73 65 74 20 74 68 65 20 | 63 52 45 56 4d 65 6e 75 |set the |cREVMenu|
|00005820| 42 75 74 74 6f 6e 49 44 | 73 20 6f 66 20 74 68 69 |ButtonID|s of thi|
|00005830| 73 20 73 74 61 63 6b 20 | 74 6f 20 65 6d 70 74 79 |s stack |to empty|
|00005840| 3c 2f 70 3e 0a 3c 70 3e | 20 20 73 65 74 20 74 68 |</p>.<p>| set th|
|00005850| 65 20 63 52 45 56 49 74 | 65 6d 73 44 69 73 61 62 |e cREVIt|emsDisab|
|00005860| 6c 65 64 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |led of t|his stac|
|00005870| 6b 20 74 6f 20 65 6d 70 | 74 79 3c 2f 70 3e 0a 3c |k to emp|ty</p>.<|
|00005880| 70 3e 20 20 73 65 74 20 | 74 68 65 20 63 52 45 56 |p> set |the cREV|
|00005890| 4d 65 6e 75 62 61 72 4e | 75 6d 62 65 72 20 6f 66 |MenubarN|umber of|
|000058a0| 20 74 68 69 73 20 73 74 | 61 63 6b 20 74 6f 20 30 | this st|ack to 0|
|000058b0| 3c 2f 70 3e 0a 3c 70 3e | 20 20 73 65 74 20 74 68 |</p>.<p>| set th|
|000058c0| 65 20 63 52 45 56 4d 65 | 6e 75 49 44 20 6f 66 20 |e cREVMe|nuID of |
|000058d0| 74 68 69 73 20 73 74 61 | 63 6b 20 74 6f 20 65 6d |this sta|ck to em|
|000058e0| 70 74 79 3c 2f 70 3e 0a | 3c 70 3e 20 20 73 65 74 |pty</p>.|<p> set|
|000058f0| 20 74 68 65 20 74 69 74 | 6c 65 20 6f 66 20 74 68 | the tit|le of th|
|00005900| 69 73 20 73 74 61 63 6b | 20 74 6f 20 22 4d 65 6e |is stack| to "Men|
|00005910| 75 20 42 75 69 6c 64 65 | 72 22 3c 2f 70 3e 0a 3c |u Builde|r"</p>.<|
|00005920| 70 3e 65 6e 64 20 72 65 | 76 52 65 73 65 74 3c 2f |p>end re|vReset</|
|00005930| 70 3e 0a 3c 70 3e 3c 2f | 70 3e 0a 3c 70 3e 6f 6e |p>.<p></|p>.<p>on|
|00005940| 20 63 6c 6f 73 65 53 74 | 61 63 6b 52 65 71 75 65 | closeSt|ackReque|
|00005950| 73 74 3c 2f 70 3e 0a 3c | 70 3e 20 20 2d 2d 61 76 |st</p>.<|p> --av|
|00005960| 6f 69 64 20 73 65 6e 64 | 69 6e 67 20 6d 65 73 73 |oid send|ing mess|
|00005970| 61 67 65 73 20 74 72 69 | 67 67 65 72 65 64 20 62 |ages tri|ggered b|
|00005980| 79 20 63 6c 6f 73 65 46 | 69 65 6c 64 3c 2f 70 3e |y closeF|ield</p>|
|00005990| 0a 3c 70 3e 20 20 2d 2d | 77 68 65 6e 20 74 68 65 |.<p> --|when the|
|000059a0| 20 73 74 61 63 6b 20 69 | 73 20 61 63 74 75 61 6c | stack i|s actual|
|000059b0| 6c 79 20 63 6c 6f 73 69 | 6e 67 3c 2f 70 3e 0a 3c |ly closi|ng</p>.<|
|000059c0| 70 3e 20 20 73 65 74 20 | 74 68 65 20 63 52 45 56 |p> set |the cREV|
|000059d0| 43 6c 6f 73 69 6e 67 20 | 6f 66 20 74 68 69 73 20 |Closing |of this |
|000059e0| 73 74 61 63 6b 20 74 6f | 20 74 72 75 65 3c 2f 70 |stack to| true</p|
|000059f0| 3e 0a 3c 70 3e 20 20 70 | 61 73 73 20 63 6c 6f 73 |>.<p> p|ass clos|
|00005a00| 65 53 74 61 63 6b 52 65 | 71 75 65 73 74 3c 2f 70 |eStackRe|quest</p|
|00005a10| 3e 0a 3c 70 3e 65 6e 64 | 20 63 6c 6f 73 65 53 74 |>.<p>end| closeSt|
|00005a20| 61 63 6b 52 65 71 75 65 | 73 74 3c 2f 70 3e 0a 3c |ackReque|st</p>.<|
|00005a30| 70 3e 3c 2f 70 3e 0a 3c | 70 3e 6f 6e 20 63 6c 6f |p></p>.<|p>on clo|
|00005a40| 73 65 53 74 61 63 6b 3c | 2f 70 3e 0a 3c 70 3e 20 |seStack<|/p>.<p> |
|00005a50| 20 73 65 74 20 74 68 65 | 20 64 65 66 61 75 6c 74 | set the| default|
|00005a60| 4d 65 6e 75 62 61 72 20 | 74 6f 20 74 68 65 20 73 |Menubar |to the s|
|00005a70| 68 6f 72 74 20 6e 61 6d | 65 20 6f 66 20 67 72 70 |hort nam|e of grp|
|00005a80| 20 22 72 65 76 4d 65 6e | 75 42 61 72 22 20 6f 66 | "revMen|uBar" of|
|00005a90| 20 63 64 20 31 20 6f 66 | 20 73 74 61 63 6b 20 22 | cd 1 of| stack "|
|00005aa0| 72 65 76 4d 65 6e 75 42 | 61 72 22 3c 2f 70 3e 0a |revMenuB|ar"</p>.|
|00005ab0| 3c 70 3e 20 20 73 65 74 | 20 74 68 65 20 63 52 45 |<p> set| the cRE|
|00005ac0| 56 4d 65 6e 75 4d 61 6e | 61 67 65 72 54 6f 70 6c |VMenuMan|agerTopl|
|00005ad0| 65 66 74 20 6f 66 20 73 | 74 61 63 6b 20 22 72 65 |eft of s|tack "re|
|00005ae0| 76 50 72 65 66 65 72 65 | 6e 63 65 73 22 20 74 6f |vPrefere|nces" to|
|00005af0| 20 74 68 65 20 74 6f 70 | 4c 65 66 74 20 6f 66 20 | the top|Left of |
|00005b00| 74 68 69 73 20 73 74 61 | 63 6b 3c 2f 70 3e 0a 3c |this sta|ck</p>.<|
|00005b10| 70 3e 20 20 70 61 73 73 | 20 63 6c 6f 73 65 53 74 |p> pass| closeSt|
|00005b20| 61 63 6b 3c 2f 70 3e 0a | 3c 70 3e 65 6e 64 20 63 |ack</p>.|<p>end c|
|00005b30| 6c 6f 73 65 53 74 61 63 | 6b 3c 2f 70 3e 0a 3c 70 |loseStac|k</p>.<p|
|00005b40| 3e 3c 2f 70 3e 0a 3c 70 | 3e 6f 6e 20 72 65 76 49 |></p>.<p|>on revI|
|00005b50| 6e 69 74 69 61 6c 69 73 | 65 46 69 65 6c 64 49 63 |nitialis|eFieldIc|
|00005b60| 6f 6e 73 3c 2f 70 3e 0a | 3c 70 3e 20 20 2d 2d 63 |ons</p>.|<p> --c|
|00005b70| 6c 6f 6e 65 20 66 6f 6c | 64 6f 75 74 20 74 72 69 |lone fol|dout tri|
|00005b80| 61 6e 67 6c 65 73 20 61 | 63 63 6f 72 64 69 6e 67 |angles a|ccording|
|00005b90| 20 74 6f 20 73 69 7a 65 | 20 6f 66 20 49 74 65 6d | to size| of Item|
|00005ba0| 73 20 66 6c 64 3c 2f 70 | 3e 0a 3c 70 3e 20 20 67 |s fld</p|>.<p> g|
|00005bb0| 6c 6f 62 61 6c 20 67 52 | 45 56 54 65 78 74 48 65 |lobal gR|EVTextHe|
|00005bc0| 69 67 68 74 3c 2f 70 3e | 0a 3c 70 3e 20 20 6c 6f |ight</p>|.<p> lo|
|00005bd0| 63 6b 20 73 63 72 65 65 | 6e 3c 2f 70 3e 0a 3c 70 |ck scree|n</p>.<p|
|00005be0| 3e 20 20 6c 6f 63 6b 20 | 6d 65 73 73 61 67 65 73 |> lock |messages|
|00005bf0| 3c 2f 70 3e 0a 3c 70 3e | 20 20 70 75 74 20 74 68 |</p>.<p>| put th|
|00005c00| 65 20 6e 75 6d 20 6f 66 | 20 62 74 6e 73 20 69 6e |e num of| btns in|
|00005c10| 20 67 72 70 20 22 46 6f | 6c 64 6f 75 74 20 54 72 | grp "Fo|ldout Tr|
|00005c20| 69 61 6e 67 6c 65 73 22 | 20 69 6e 74 6f 20 74 4e |iangles"| into tN|
|00005c30| 75 6d 4f 6c 64 42 75 74 | 74 6f 6e 73 3c 2f 70 3e |umOldBut|tons</p>|
|00005c40| 0a 3c 70 3e 20 20 69 66 | 20 74 4e 75 6d 4f 6c 64 |.<p> if| tNumOld|
|00005c50| 42 75 74 74 6f 6e 73 20 | 26 67 74 3b 20 31 20 74 |Buttons |> 1 t|
|00005c60| 68 65 6e 3c 2f 70 3e 0a | 3c 70 3e 20 20 20 20 72 |hen</p>.|<p> r|
|00005c70| 65 70 65 61 74 20 77 69 | 74 68 20 69 20 3d 20 74 |epeat wi|th i = t|
|00005c80| 4e 75 6d 4f 6c 64 42 75 | 74 74 6f 6e 73 20 64 6f |NumOldBu|ttons do|
|00005c90| 77 6e 20 74 6f 20 32 3c | 2f 70 3e 0a 3c 70 3e 20 |wn to 2<|/p>.<p> |
|00005ca0| 20 20 20 20 20 64 65 6c | 65 74 65 20 62 74 6e 20 | del|ete btn |
|00005cb0| 69 20 6f 66 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |i of grp| "Foldou|
|00005cc0| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 3c 2f 70 3e |t Triang|les"</p>|
|00005cd0| 0a 3c 70 3e 20 20 20 20 | 65 6e 64 20 72 65 70 65 |.<p> |end repe|
|00005ce0| 61 74 3c 2f 70 3e 0a 3c | 70 3e 20 20 65 6e 64 20 |at</p>.<|p> end |
|00005cf0| 69 66 3c 2f 70 3e 0a 3c | 70 3e 20 20 3c 2f 70 3e |if</p>.<|p> </p>|
|00005d00| 0a 3c 70 3e 20 20 69 66 | 20 74 68 65 20 70 6c 61 |.<p> if| the pla|
|00005d10| 74 66 6f 72 6d 20 69 73 | 20 22 4d 61 63 4f 53 22 |tform is| "MacOS"|
|00005d20| 20 74 68 65 6e 3c 2f 70 | 3e 0a 3c 70 3e 20 20 20 | then</p|>.<p> |
|00005d30| 20 73 65 74 20 74 68 65 | 20 69 63 6f 6e 20 6f 66 | set the| icon of|
|00005d40| 20 62 74 6e 20 31 20 6f | 66 20 67 72 70 20 22 46 | btn 1 o|f grp "F|
|00005d50| 6f 6c 64 6f 75 74 20 54 | 72 69 61 6e 67 6c 65 73 |oldout T|riangles|
|00005d60| 22 20 74 6f 20 32 30 30 | 39 34 36 3c 2f 70 3e 0a |" to 200|946</p>.|
|00005d70| 3c 70 3e 20 20 20 20 73 | 65 74 20 74 68 65 20 63 |<p> s|et the c|
|00005d80| 52 45 56 49 63 6f 6e 20 | 6f 66 20 62 74 6e 20 31 |REVIcon |of btn 1|
|00005d90| 20 6f 66 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | of grp |"Foldout|
|00005da0| 20 54 72 69 61 6e 67 6c | 65 73 22 20 74 6f 20 32 | Triangl|es" to 2|
|00005db0| 30 30 39 34 36 3c 2f 70 | 3e 0a 3c 70 3e 20 20 20 |00946</p|>.<p> |
|00005dc0| 20 73 65 74 20 74 68 65 | 20 68 69 6c 69 74 65 49 | set the| hiliteI|
|00005dd0| 63 6f 6e 20 6f 66 20 62 | 74 6e 20 31 20 6f 66 20 |con of b|tn 1 of |
|00005de0| 67 72 70 20 22 46 6f 6c | 64 6f 75 74 20 54 72 69 |grp "Fol|dout Tri|
|00005df0| 61 6e 67 6c 65 73 22 20 | 74 6f 20 32 30 30 39 35 |angles" |to 20095|
|00005e00| 31 3c 2f 70 3e 0a 3c 70 | 3e 20 20 65 6c 73 65 3c |1</p>.<p|> else<|
|00005e10| 2f 70 3e 0a 3c 70 3e 20 | 20 20 20 73 65 74 20 74 |/p>.<p> | set t|
|00005e20| 68 65 20 69 63 6f 6e 20 | 6f 66 20 62 74 6e 20 31 |he icon |of btn 1|
|00005e30| 20 6f 66 20 67 72 70 20 | 22 46 6f 6c 64 6f 75 74 | of grp |"Foldout|
|00005e40| 20 54 72 69 61 6e 67 6c | 65 73 22 20 74 6f 20 32 | Triangl|es" to 2|
|00005e50| 30 30 30 38 36 3c 2f 70 | 3e 0a 3c 70 3e 20 20 20 |00086</p|>.<p> |
|00005e60| 20 73 65 74 20 74 68 65 | 20 63 52 45 56 49 63 6f | set the| cREVIco|
|00005e70| 6e 20 6f 66 20 62 74 6e | 20 31 20 6f 66 20 67 72 |n of btn| 1 of gr|
|00005e80| 70 20 22 46 6f 6c 64 6f | 75 74 20 54 72 69 61 6e |p "Foldo|ut Trian|
|00005e90| 67 6c 65 73 22 20 74 6f | 20 32 30 30 30 38 36 3c |gles" to| 200086<|
|00005ea0| 2f 70 3e 0a 3c 70 3e 20 | 20 20 20 73 65 74 20 74 |/p>.<p> | set t|
|00005eb0| 68 65 20 68 69 6c 69 74 | 65 49 63 6f 6e 20 6f 66 |he hilit|eIcon of|
|00005ec0| 20 62 74 6e 20 31 20 6f | 66 20 67 72 70 20 22 46 | btn 1 o|f grp "F|
|00005ed0| 6f 6c 64 6f 75 74 20 54 | 72 69 61 6e 67 6c 65 73 |oldout T|riangles|
|00005ee0| 22 20 74 6f 20 32 30 30 | 30 38 37 3c 2f 70 3e 0a |" to 200|087</p>.|
|00005ef0| 3c 70 3e 20 20 65 6e 64 | 20 69 66 3c 2f 70 3e 0a |<p> end| if</p>.|
|00005f00| 3c 70 3e 20 20 65 6e 61 | 62 6c 65 20 62 74 6e 20 |<p> ena|ble btn |
|00005f10| 31 20 6f 66 20 67 72 70 | 20 22 46 6f 6c 64 6f 75 |1 of grp| "Foldou|
|00005f20| 74 20 54 72 69 61 6e 67 | 6c 65 73 22 3c 2f 70 3e |t Triang|les"</p>|
|00005f30| 0a 3c 70 3e 20 20 75 6e | 68 69 6c 69 74 65 20 62 |.<p> un|hilite b|
|00005f40| 74 6e 20 31 20 6f 66 20 | 67 72 70 20 22 46 6f 6c |tn 1 of |grp "Fol|
|00005f50| 64 6f 75 74 20 54 72 69 | 61 6e 67 6c 65 73 22 3c |dout Tri|angles"<|
|00005f60| 2f 70 3e 0a 3c 70 3e 20 | 20 73 65 74 20 74 68 65 |/p>.<p> | set the|
|00005f70| 20 73 68 6f 77 49 63 6f | 6e 20 6f 66 20 62 74 6e | showIco|n of btn|
|00005f80| 20 31 20 6f 66 20 67 72 | 70 20 22 46 6f 6c 64 6f | 1 of gr|p "Foldo|
|00005f90| 75 74 20 54 72 69 61 6e | 67 6c 65 73 22 20 74 6f |ut Trian|gles" to|
|00005fa0| 20 66 61 6c 73 65 3c 2f | 70 3e 0a 3c 70 3e 20 20 | false</|p>.<p> |
|00005fb0| 3c 2f 70 3e 0a 3c 70 3e | 20 20 70 75 74 20 72 6f |</p>.<p>| put ro|
|00005fc0| 75 6e 64 28 28 74 68 65 | 20 68 65 69 67 68 74 20 |und((the| height |
|00005fd0| 6f 66 20 66 6c 64 20 22 | 4d 65 6e 75 20 49 74 65 |of fld "|Menu Ite|
|00005fe0| 6d 73 22 29 2f 67 52 45 | 56 54 65 78 74 48 65 69 |ms")/gRE|VTextHei|
|00005ff0| 67 68 74 29 20 69 6e 74 | 6f 20 74 4e 75 6d 4c 69 |ght) int|o tNumLi|
|00006000| 6e 65 73 3c 2f 70 3e 0a | 3c 70 3e 20 20 70 75 74 |nes</p>.|<p> put|
|00006010| 20 74 68 65 20 74 6f 70 | 4c 65 66 74 20 6f 66 20 | the top|Left of |
|00006020| 62 74 6e 20 31 20 6f 66 | 20 67 72 70 20 22 46 6f |btn 1 of| grp "Fo|
|00006030| 6c 64 6f 75 74 20 54 72 | 69 61 6e 67 6c 65 73 22 |ldout Tr|iangles"|
|00006040| 20 69 6e 74 6f 20 74 54 | 6f 70 4c 65 66 74 3c 2f | into tT|opLeft</|
|00006050| 70 3e 0a 3c 70 3e 20 20 | 72 65 70 65 61 74 20 77 |p>.<p> |repeat w|
|00006060| 69 74 68 20 69 20 3d 20 | 32 20 74 6f 20 74 4e 75 |ith i = |2 to tNu|
|00006070| 6d 4c 69 6e 65 73 3c 2f | 70 3e 0a 3c 70 3e 20 20 |mLines</|p>.<p> |
|00006080| 20 20 63 6c 6f 6e 65 20 | 62 74 6e 20 31 20 6f 66 | clone |btn 1 of|
|00006090| 20 67 72 70 20 22 46 6f | 6c 64 6f 75 74 20 54 72 | grp "Fo|ldout Tr|
|000060a0| 69 61 6e 67 6c 65 73 22 | 20 20 20 20 3c 2f 70 3e |iangles"| </p>|
|000060b0| 0a 3c 70 3e 20 20 20 20 | 61 64 64 20 67 52 45 56 |.<p> |add gREV|
|000060c0| 54 65 78 74 48 65 69 67 | 68 74 20 74 6f 20 69 74 |TextHeig|ht to it|
|000060d0| 65 6d 20 32 20 6f 66 20 | 74 54 6f 70 4c 65 66 74 |em 2 of |tTopLeft|
|000060e0| 3c 2f 70 3e 0a 3c 70 3e | 20 20 20 20 73 65 74 20 |</p>.<p>| set |
|000060f0| 74 68 65 20 74 6f 70 4c | 65 66 74 20 6f 66 20 62 |the topL|eft of b|
|00006100| 74 6e 20 69 20 6f 66 20 | 67 72 70 20 22 46 6f 6c |tn i of |grp "Fol|
|00006110| 64 6f 75 74 20 54 72 69 | 61 6e 67 6c 65 73 22 20 |dout Tri|angles" |
|00006120| 74 6f 20 74 54 6f 70 4c | 65 66 74 3c 2f 70 3e 0a |to tTopL|eft</p>.|
|00006130| 3c 70 3e 20 20 65 6e 64 | 20 72 65 70 65 61 74 3c |<p> end| repeat<|
|00006140| 2f 70 3e 0a 3c 70 3e 20 | 20 75 6e 6c 6f 63 6b 20 |/p>.<p> | unlock |
|00006150| 6d 65 73 73 61 67 65 73 | 3c 2f 70 3e 0a 3c 70 3e |messages|</p>.<p>|
|00006160| 20 20 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 3c | unlock| screen<|
|00006170| 2f 70 3e 0a 3c 70 3e 65 | 6e 64 20 72 65 76 49 6e |/p>.<p>e|nd revIn|
|00006180| 69 74 69 61 6c 69 73 65 | 46 69 65 6c 64 49 63 6f |itialise|FieldIco|
|00006190| 6e 73 3c 2f 70 3e 0a 3c | 70 3e 3c 2f 70 3e 0a 3c |ns</p>.<|p></p>.<|
|000061a0| 70 3e 6f 6e 20 72 65 76 | 4c 61 79 6f 75 74 4d 65 |p>on rev|LayoutMe|
|000061b0| 6e 75 42 75 74 74 6f 6e | 73 3c 2f 70 3e 0a 3c 70 |nuButton|s</p>.<p|
|000061c0| 3e 20 20 2d 2d 6c 61 79 | 6f 75 74 20 62 75 74 74 |> --lay|out butt|
|000061d0| 6f 6e 73 20 66 72 6f 6d | 20 6c 65 66 74 20 74 6f |ons from| left to|
|000061e0| 20 72 69 67 68 74 20 61 | 63 63 6f 72 64 69 6e 67 | right a|ccording|
|000061f0| 20 74 6f 20 6f 72 64 65 | 72 20 69 6e 20 4d 65 6e | to orde|r in Men|
|00006200| 75 20 42 75 74 74 6f 6e | 73 20 66 69 65 6c 64 3c |u Button|s field<|
|00006210| 2f 70 3e 0a 3c 70 3e 20 | 20 2d 2d 61 6e 64 20 73 |/p>.<p> | --and s|
|00006220| 65 74 20 74 68 65 20 76 | 69 73 75 61 6c 20 72 65 |et the v|isual re|
|00006230| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |presenta|tion of |
|00006240| 74 68 65 20 6d 65 6e 75 | 20 6d 6e 65 6d 6f 6e 69 |the menu| mnemoni|
|00006250| 63 73 3c 2f 70 3e 0a 3c | 70 3e 20 20 70 75 74 20 |cs</p>.<|p> put |
|00006260| 74 68 65 20 63 52 45 56 | 4d 65 6e 75 42 75 74 74 |the cREV|MenuButt|
|00006270| 6f 6e 49 44 73 20 6f 66 | 20 74 68 69 73 20 73 74 |onIDs of| this st|
|00006280| 61 63 6b 20 69 6e 74 6f | 20 74 4d 65 6e 75 42 75 |ack into| tMenuBu|
|00006290| 74 74 6f 6e 49 44 73 3c | 2f 70 3e 0a 3c 70 3e 20 |ttonIDs<|/p>.<p> |
|000062a0| 20 70 75 74 20 74 68 65 | 20 63 52 45 56 4d 65 6e | put the| cREVMen|
|000062b0| 75 49 44 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |uID of t|his stac|
|000062c0| 6b 20 69 6e 74 6f 20 74 | 4d 65 6e 75 49 44 3c 2f |k into t|MenuID</|
|000062d0| 70 3e 0a 3c 70 3e 20 20 | 70 75 74 20 74 68 65 20 |p>.<p> |put the |
|000062e0| 63 52 45 56 4d 65 6e 75 | 42 75 74 74 6f 6e 43 61 |cREVMenu|ButtonCa|
|000062f0| 72 64 49 44 20 6f 66 20 | 74 68 69 73 20 73 74 61 |rdID of |this sta|
|00006300| 63 6b 20 69 6e 74 6f 20 | 74 43 61 72 64 49 44 3c |ck into |tCardID<|
|00006310| 2f 70 3e 0a 3c 70 3e 20 | 20 70 75 74 20 31 20 69 |/p>.<p> | put 1 i|
|00006320| 6e 74 6f 20 74 4e 65 78 | 74 4c 65 66 74 3c 2f 70 |nto tNex|tLeft</p|
|00006330| 3e 0a 3c 70 3e 20 20 20 | 3c 2f 70 3e 0a 3c 70 3e |>.<p> |</p>.<p>|
|00006340| 20 20 73 65 74 20 74 68 | 65 20 64 65 66 61 75 6c | set th|e defaul|
|00006350| 74 53 74 61 63 6b 20 74 | 6f 20 74 68 65 20 63 52 |tStack t|o the cR|
|00006360| 45 56 44 65 66 61 75 6c | 74 53 74 61 63 6b 20 6f |EVDefaul|tStack o|
|00006370| 66 20 74 68 69 73 20 73 | 74 61 63 6b 3c 2f 70 3e |f this s|tack</p>|
|00006380| 0a 3c 70 3e 20 20 2d 2d | 61 72 72 61 6e 67 65 20 |.<p> --|arrange |
|00006390| 72 65 63 74 20 6f 66 20 | 62 74 6e 73 20 66 6f 72 |rect of |btns for|
|000063a0| 20 70 72 6f 70 65 72 20 | 70 6f 73 69 74 69 6f 6e | proper |position|
|000063b0| 69 6e 67 20 69 6e 20 73 | 74 61 63 6b 20 77 69 6e |ing in s|tack win|
|000063c0| 64 6f 77 3c 2f 70 3e 0a | 3c 70 3e 20 20 72 65 70 |dow</p>.|<p> rep|
|000063d0| 65 61 74 20 66 6f 72 20 | 65 61 63 68 20 6c 69 6e |eat for |each lin|
|000063e0| 65 20 6c 20 69 6e 20 74 | 4d 65 6e 75 42 75 74 74 |e l in t|MenuButt|
|000063f0| 6f 6e 49 44 73 3c 2f 70 | 3e 0a 3c 70 3e 20 20 20 |onIDs</p|>.<p> |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.