home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 June / Macworld (1999-06).dmg / Shareware World / Info / For Developers / MacZoop2.0.sea / MacZoop2.0 / Required Classes / ZMenuBar.h < prev    next >
MacBinary  |  1999-02-11  |  8.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ZMenuBar.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Feb 11 12:40:26 1999, modified Thu Feb 11 12:40:26 1999, creator 'CWIE', type ASCII, 8204 bytes "ZMenuBar.h" , at 0x208c 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 5a 4d 65 6e 75 42 | 61 72 2e 68 00 00 00 00 |..ZMenuB|ar.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 20 0c 00 | 00 01 ac b2 e8 c6 8a b2 |..... ..|........|
|00000060| e8 c6 8a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fe 27 00 00 |........|.....'..|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000e0| 2a 2a 0d 2a 0d 2a 0d 2a | 09 09 09 4d 61 63 5a 6f |**.*.*.*|...MacZo|
|000000f0| 6f 70 20 2d 20 22 74 68 | 65 20 66 72 61 6d 65 77 |op - "th|e framew|
|00000100| 6f 72 6b 20 66 6f 72 20 | 74 68 65 20 72 65 73 74 |ork for |the rest|
|00000110| 20 6f 66 20 75 73 22 09 | 09 20 0d 2a 0d 2a 0d 2a | of us".|. .*.*.*|
|00000120| 0d 2a 09 09 09 5a 4d 65 | 6e 75 42 61 72 2e 68 09 |.*...ZMe|nuBar.h.|
|00000130| 09 09 2d 2d 20 74 68 65 | 20 6d 65 6e 75 62 61 72 |..-- the| menubar|
|00000140| 20 6d 61 6e 61 67 65 72 | 20 6f 62 6a 65 63 74 0d | manager| object.|
|00000150| 2a 0d 2a 0d 2a 0d 2a 0d | 2a 0d 2a 09 09 09 a9 20 |*.*.*.*.|*.*.... |
|00000160| 31 39 39 36 2c 20 47 72 | 61 68 61 6d 20 43 6f 78 |1996, Gr|aham Cox|
|00000170| 0d 2a 0d 2a 0d 2a 0d 2a | 0d 2a 2a 2a 2a 2a 2a 2a |.*.*.*.*|.*******|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 0d 23 70 |********|**/...#p|
|000001e0| 72 61 67 6d 61 20 6f 6e | 63 65 0d 0d 23 69 66 6e |ragma on|ce..#ifn|
|000001f0| 64 65 66 20 5f 5f 5a 4d | 45 4e 55 42 41 52 5f 5f |def __ZM|ENUBAR__|
|00000200| 0d 23 64 65 66 69 6e 65 | 09 5f 5f 5a 4d 45 4e 55 |.#define|.__ZMENU|
|00000210| 42 41 52 5f 5f 0d 0d 23 | 69 6e 63 6c 75 64 65 09 |BAR__..#|include.|
|00000220| 22 5a 43 6f 6d 72 61 64 | 65 2e 68 22 0d 23 69 6e |"ZComrad|e.h".#in|
|00000230| 63 6c 75 64 65 09 22 54 | 65 78 74 53 74 79 6c 65 |clude."T|extStyle|
|00000240| 55 74 69 6c 73 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |Utils.h"|.#includ|
|00000250| 65 09 3c 4d 65 6e 75 73 | 2e 68 3e 0d 0d 0d 63 6c |e.<Menus|.h>...cl|
|00000260| 61 73 73 09 5a 41 72 72 | 61 79 3b 0d 0d 2f 2f 20 |ass.ZArr|ay;..// |
|00000270| 73 74 72 75 63 74 75 72 | 65 20 66 6f 72 20 73 74 |structur|e for st|
|00000280| 6f 72 69 6e 67 20 69 6e | 66 6f 20 61 62 6f 75 74 |oring in|fo about|
|00000290| 20 61 20 6d 65 6e 75 20 | 63 6f 6d 6d 61 6e 64 0d | a menu |command.|
|000002a0| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 0d |.typedef| struct.|
|000002b0| 7b 0d 09 6c 6f 6e 67 09 | 09 74 68 65 43 6d 64 3b |{..long.|.theCmd;|
|000002c0| 09 09 09 2f 2f 20 69 74 | 65 6d 27 73 20 63 6f 6d |...// it|em's com|
|000002d0| 6d 61 6e 64 0d 09 73 68 | 6f 72 74 09 09 6d 65 6e |mand..sh|ort..men|
|000002e0| 75 49 44 3b 09 09 09 2f | 2f 20 6d 65 6e 75 20 49 |uID;.../|/ menu I|
|000002f0| 44 0d 09 73 68 6f 72 74 | 09 09 69 74 65 6d 49 44 |D..short|..itemID|
|00000300| 3b 09 09 09 2f 2f 20 69 | 74 65 6d 20 69 6e 64 65 |;...// i|tem inde|
|00000310| 78 0d 09 73 68 6f 72 74 | 20 09 09 63 6d 64 46 6c |x..short| ..cmdFl|
|00000320| 61 67 73 3b 09 09 2f 2f | 20 61 73 73 6f 63 69 61 |ags;..//| associa|
|00000330| 74 65 64 20 63 6f 6d 6d | 61 6e 64 20 66 6c 61 67 |ted comm|and flag|
|00000340| 73 0d 09 73 68 6f 72 74 | 09 09 73 75 62 4d 65 6e |s..short|..subMen|
|00000350| 75 49 44 3b 09 09 2f 2f | 20 69 66 20 70 61 72 65 |uID;..//| if pare|
|00000360| 6e 74 20 6f 66 20 73 75 | 62 6d 65 6e 75 2c 20 6d |nt of su|bmenu, m|
|00000370| 65 6e 75 20 77 65 20 22 | 6f 77 6e 22 2e 0d 09 4d |enu we "|own"...M|
|00000380| 65 6e 75 48 61 6e 64 6c | 65 09 6d 61 63 4d 65 6e |enuHandl|e.macMen|
|00000390| 75 3b 09 09 2f 2f 20 61 | 63 74 75 61 6c 20 68 61 |u;..// a|ctual ha|
|000003a0| 6e 64 6c 65 20 6f 66 20 | 6d 65 6e 75 20 74 68 61 |ndle of |menu tha|
|000003b0| 74 20 6f 77 6e 73 20 74 | 68 69 73 20 63 6f 6d 6d |t owns t|his comm|
|000003c0| 61 6e 64 0d 7d 0d 4d 65 | 6e 75 43 6d 64 3b 0d 0d |and.}.Me|nuCmd;..|
|000003d0| 2f 2f 20 64 69 6d 6d 69 | 6e 67 20 6f 70 74 69 6f |// dimmi|ng optio|
|000003e0| 6e 73 20 66 6f 72 20 65 | 6e 74 69 72 65 20 6d 65 |ns for e|ntire me|
|000003f0| 6e 75 73 3a 0d 0d 65 6e | 75 6d 0d 7b 0d 09 6e 65 |nus:..en|um.{..ne|
|00000400| 76 65 72 44 69 6d 20 3d | 20 30 2c 0d 09 64 69 6d |verDim =| 0,..dim|
|00000410| 43 6f 6d 6d 61 6e 64 73 | 20 3d 20 31 2c 0d 09 64 |Commands| = 1,..d|
|00000420| 69 6d 50 61 72 65 6e 74 | 49 74 65 6d 73 20 3d 20 |imParent|Items = |
|00000430| 32 2c 0d 09 64 69 6d 4f | 74 68 65 72 73 20 3d 20 |2,..dimO|thers = |
|00000440| 34 2c 0d 09 64 69 6d 41 | 6c 6c 20 3d 20 38 2c 0d |4,..dimA|ll = 8,.|
|00000450| 09 64 69 6d 54 69 74 6c | 65 20 3d 20 33 32 0d 7d |.dimTitl|e = 32.}|
|00000460| 3b 0d 0d 74 79 70 65 64 | 65 66 20 75 6e 73 69 67 |;..typed|ef unsig|
|00000470| 6e 65 64 20 63 68 61 72 | 20 44 69 6d 6d 69 6e 67 |ned char| Dimming|
|00000480| 4f 70 74 69 6f 6e 73 3b | 0d 0d 0d 2f 2f 20 73 74 |Options;|...// st|
|00000490| 72 75 63 74 75 72 65 20 | 66 6f 72 20 73 74 6f 72 |ructure |for stor|
|000004a0| 69 6e 67 20 69 6e 66 6f | 20 61 62 6f 75 74 20 61 |ing info| about a|
|000004b0| 20 77 68 6f 6c 65 20 6d | 65 6e 75 3a 0d 0d 74 79 | whole m|enu:..ty|
|000004c0| 70 65 64 65 66 20 73 74 | 72 75 63 74 0d 7b 0d 09 |pedef st|ruct.{..|
|000004d0| 73 68 6f 72 74 09 09 09 | 6d 65 6e 75 49 44 3b 09 |short...|menuID;.|
|000004e0| 09 09 2f 2f 20 6d 65 6e | 75 20 49 44 20 6f 66 20 |..// men|u ID of |
|000004f0| 74 68 65 20 6d 65 6e 75 | 0d 09 73 68 6f 72 74 09 |the menu|..short.|
|00000500| 09 09 6d 49 6e 64 65 78 | 3b 09 09 09 2f 2f 20 69 |..mIndex|;...// i|
|00000510| 6e 64 65 78 20 69 6e 74 | 6f 20 6f 72 69 67 69 6e |ndex int|o origin|
|00000520| 61 6c 20 4d 42 41 52 20 | 72 65 73 6f 75 72 63 65 |al MBAR |resource|
|00000530| 0d 09 4d 65 6e 75 48 61 | 6e 64 6c 65 09 09 6d 61 |..MenuHa|ndle..ma|
|00000540| 63 4d 65 6e 75 3b 09 09 | 2f 2f 20 68 61 6e 64 6c |cMenu;..|// handl|
|00000550| 65 20 74 6f 20 74 68 65 | 20 6d 65 6e 75 0d 09 44 |e to the| menu..D|
|00000560| 69 6d 6d 69 6e 67 4f 70 | 74 69 6f 6e 73 09 6d 44 |immingOp|tions.mD|
|00000570| 69 6d 6d 69 6e 67 3b 09 | 09 2f 2f 20 64 69 6d 6d |imming;.|.// dimm|
|00000580| 69 6e 67 20 66 6c 61 67 | 73 0d 09 42 6f 6f 6c 65 |ing flag|s..Boole|
|00000590| 61 6e 09 09 09 6d 49 73 | 52 65 73 6f 75 72 63 65 |an...mIs|Resource|
|000005a0| 3b 09 2f 2f 20 54 52 55 | 45 20 69 66 20 6d 65 6e |;.// TRU|E if men|
|000005b0| 75 20 69 73 20 61 20 72 | 65 73 6f 75 72 63 65 0d |u is a r|esource.|
|000005c0| 7d 0d 4d 65 6e 75 49 6e | 66 52 65 63 3b 0d 0d 23 |}.MenuIn|fRec;..#|
|000005d0| 69 66 20 50 52 41 47 4d | 41 5f 41 4c 49 47 4e 5f |if PRAGM|A_ALIGN_|
|000005e0| 53 55 50 50 4f 52 54 45 | 44 0d 23 70 72 61 67 6d |SUPPORTE|D.#pragm|
|000005f0| 61 20 6f 70 74 69 6f 6e | 73 20 61 6c 69 67 6e 3d |a option|s align=|
|00000600| 6d 61 63 36 38 6b 0d 23 | 65 6e 64 69 66 0d 0d 2f |mac68k.#|endif../|
|00000610| 2f 20 73 74 72 75 63 74 | 75 72 65 20 6f 66 20 43 |/ struct|ure of C|
|00000620| 4d 4e 55 20 72 65 73 6f | 75 72 63 65 3a 0d 0d 74 |MNU reso|urce:..t|
|00000630| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 0d 7b 0d |ypedef s|truct.{.|
|00000640| 09 73 68 6f 72 74 09 09 | 09 6d 65 6e 75 49 44 3b |.short..|.menuID;|
|00000650| 0d 09 6c 6f 6e 67 09 09 | 09 66 69 6c 6c 31 3b 0d |..long..|.fill1;.|
|00000660| 09 73 68 6f 72 74 09 09 | 09 70 72 6f 63 49 44 3b |.short..|.procID;|
|00000670| 0d 09 73 68 6f 72 74 09 | 09 09 66 69 6c 6c 32 3b |..short.|..fill2;|
|00000680| 0d 09 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 09 |..unsign|ed long.|
|00000690| 66 6c 61 67 73 3b 0d 09 | 63 68 61 72 09 09 09 6d |flags;..|char...m|
|000006a0| 54 69 74 6c 65 3b 0d 7d | 0d 43 4d 4e 55 52 65 73 |Title;.}|.CMNURes|
|000006b0| 6f 75 72 63 65 2c 20 2a | 43 4d 4e 55 52 65 73 50 |ource, *|CMNUResP|
|000006c0| 74 72 2c 20 2a 2a 43 4d | 4e 55 52 65 73 48 64 6c |tr, **CM|NUResHdl|
|000006d0| 3b 0d 0d 2f 2f 20 74 68 | 65 20 69 74 65 6d 73 20 |;..// th|e items |
|000006e0| 69 6e 20 74 68 65 20 6d | 65 6e 75 20 66 6f 6c 6c |in the m|enu foll|
|000006f0| 6f 77 20 61 66 74 65 72 | 20 74 68 65 20 74 69 74 |ow after| the tit|
|00000700| 6c 65 2c 20 67 69 76 65 | 6e 20 74 68 65 20 6c 65 |le, give|n the le|
|00000710| 6e 67 74 68 20 6f 66 20 | 74 68 65 20 74 69 74 6c |ngth of |the titl|
|00000720| 65 20 61 73 0d 2f 2f 20 | 61 20 6e 75 6d 62 65 72 |e as.// |a number|
|00000730| 20 6f 66 20 62 79 74 65 | 73 20 74 6f 20 73 6b 69 | of byte|s to ski|
|00000740| 70 20 66 6f 72 77 61 72 | 64 2e 20 45 61 63 68 20 |p forwar|d. Each |
|00000750| 65 6e 74 72 79 20 63 6f | 6e 73 69 73 74 73 20 6f |entry co|nsists o|
|00000760| 66 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 69 74 |f the co|mmand it|
|00000770| 65 6d 20 74 65 78 74 0d | 2f 2f 20 66 6f 6c 6c 6f |em text.|// follo|
|00000780| 77 65 64 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |wed imme|diately |
|00000790| 62 79 20 66 6f 75 72 20 | 62 79 74 65 73 2c 20 3c |by four |bytes, <|
|000007a0| 69 63 6f 6e 3e 2c 20 3c | 6b 65 79 20 65 71 75 69 |icon>, <|key equi|
|000007b0| 76 3e 2c 20 3c 6d 61 72 | 6b 20 63 68 61 72 3e 2c |v>, <mar|k char>,|
|000007c0| 20 3c 73 74 79 6c 65 3e | 2c 20 0d 2f 2f 20 66 6f | <style>|, .// fo|
|000007d0| 6c 6c 6f 77 65 64 20 62 | 79 20 63 6f 6d 6d 61 6e |llowed b|y comman|
|000007e0| 64 20 49 44 20 28 6c 6f | 6e 67 29 2c 20 66 6f 6c |d ID (lo|ng), fol|
|000007f0| 6c 6f 77 65 64 20 62 79 | 20 6e 65 78 74 20 69 74 |lowed by| next it|
|00000800| 65 6d 2e 0d 0d 74 79 70 | 65 64 65 66 20 73 74 72 |em...typ|edef str|
|00000810| 75 63 74 0d 7b 0d 09 75 | 6e 73 69 67 6e 65 64 20 |uct.{..u|nsigned |
|00000820| 63 68 61 72 09 69 63 6f | 6e 49 44 3b 0d 09 75 6e |char.ico|nID;..un|
|00000830| 73 69 67 6e 65 64 20 63 | 68 61 72 09 6b 65 79 45 |signed c|har.keyE|
|00000840| 71 75 3b 0d 09 75 6e 73 | 69 67 6e 65 64 20 63 68 |qu;..uns|igned ch|
|00000850| 61 72 09 6d 61 72 6b 43 | 68 61 72 3b 0d 09 75 6e |ar.markC|har;..un|
|00000860| 73 69 67 6e 65 64 20 63 | 68 61 72 09 69 53 74 79 |signed c|har.iSty|
|00000870| 6c 65 3b 0d 7d 0d 43 4d | 4e 55 45 6e 74 72 79 2c |le;.}.CM|NUEntry,|
|00000880| 20 2a 43 4d 4e 55 45 6e | 74 72 79 50 74 72 3b 0d | *CMNUEn|tryPtr;.|
|00000890| 0d 2f 2f 20 73 74 72 75 | 63 74 75 72 65 73 20 75 |.// stru|ctures u|
|000008a0| 73 65 64 20 62 79 20 6c | 6f 77 2d 6c 65 76 65 6c |sed by l|ow-level|
|000008b0| 20 4d 61 63 20 6d 65 6e | 75 20 6d 61 6e 61 67 65 | Mac men|u manage|
|000008c0| 72 3a 0d 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |r:..type|def stru|
|000008d0| 63 74 0d 7b 0d 09 4d 65 | 6e 75 48 61 6e 64 6c 65 |ct.{..Me|nuHandle|
|000008e0| 09 74 68 65 4d 65 6e 75 | 3b 0d 09 73 68 6f 72 74 |.theMenu|;..short|
|000008f0| 09 09 6c 65 66 74 45 64 | 67 65 3b 0d 7d 0d 6d 4c |..leftEd|ge;.}.mL|
|00000900| 69 73 74 45 6e 74 72 79 | 3b 0d 0d 0d 74 79 70 65 |istEntry|;...type|
|00000910| 64 65 66 20 73 74 72 75 | 63 74 0d 7b 0d 09 73 68 |def stru|ct.{..sh|
|00000920| 6f 72 74 09 09 6c 61 73 | 74 4d 4f 66 66 73 65 74 |ort..las|tMOffset|
|00000930| 3b 0d 09 73 68 6f 72 74 | 09 09 6c 61 73 74 52 69 |;..short|..lastRi|
|00000940| 67 68 74 45 64 67 65 3b | 0d 09 73 68 6f 72 74 09 |ghtEdge;|..short.|
|00000950| 09 73 70 61 72 65 3b 0d | 09 6d 4c 69 73 74 45 6e |.spare;.|.mListEn|
|00000960| 74 72 79 09 6d 4c 69 73 | 74 49 74 65 6d 5b 31 5d |try.mLis|tItem[1]|
|00000970| 3b 0d 7d 0d 6d 4c 69 73 | 74 2c 20 2a 6d 4c 69 73 |;.}.mLis|t, *mLis|
|00000980| 74 50 74 72 2c 20 2a 2a | 6d 4c 69 73 74 48 64 6c |tPtr, **|mListHdl|
|00000990| 3b 0d 0d 0d 23 69 66 20 | 50 52 41 47 4d 41 5f 41 |;...#if |PRAGMA_A|
|000009a0| 4c 49 47 4e 5f 53 55 50 | 50 4f 52 54 45 44 0d 23 |LIGN_SUP|PORTED.#|
|000009b0| 70 72 61 67 6d 61 20 6f | 70 74 69 6f 6e 73 20 61 |pragma o|ptions a|
|000009c0| 6c 69 67 6e 3d 72 65 73 | 65 74 0d 23 65 6e 64 69 |lign=res|et.#endi|
|000009d0| 66 0d 0d 2f 2f 20 63 6d | 64 20 66 6c 61 67 73 0d |f..// cm|d flags.|
|000009e0| 0d 65 6e 75 6d 0d 7b 0d | 09 6e 6f 74 68 69 6e 67 |.enum.{.|.nothing|
|000009f0| 53 70 65 63 69 61 6c 20 | 3d 20 30 2c 0d 09 64 69 |Special |= 0,..di|
|00000a00| 73 61 62 6c 65 43 6d 64 | 73 4f 6e 6c 79 20 3d 20 |sableCmd|sOnly = |
|00000a10| 31 2c 0d 09 64 69 73 61 | 62 6c 65 41 6c 6c 20 3d |1,..disa|bleAll =|
|00000a20| 20 32 2c 0d 09 64 69 73 | 61 62 6c 65 50 61 72 65 | 2,..dis|ablePare|
|00000a30| 6e 74 49 74 65 6d 73 20 | 3d 20 34 2c 0d 09 69 73 |ntItems |= 4,..is|
|00000a40| 50 72 69 6d 61 72 79 4d | 65 6e 75 20 3d 20 38 2c |PrimaryM|enu = 8,|
|00000a50| 0d 09 61 75 74 6f 55 6e | 43 68 65 63 6b 20 3d 20 |..autoUn|Check = |
|00000a60| 31 36 2c 0d 09 6d 65 6e | 75 49 73 52 65 73 6f 75 |16,..men|uIsResou|
|00000a70| 72 63 65 20 3d 20 33 32 | 0d 7d 3b 0d 0d 2f 2f 20 |rce = 32|.};..// |
|00000a80| 73 70 65 63 69 61 6c 20 | 63 6f 6d 6d 61 6e 64 73 |special |commands|
|00000a90| 0d 0d 65 6e 75 6d 0d 7b | 0d 09 6e 6f 43 6f 6d 6d |..enum.{|..noComm|
|00000aa0| 61 6e 64 20 3d 20 30 2c | 0d 09 70 61 72 65 6e 74 |and = 0,|..parent|
|00000ab0| 43 6d 64 20 3d 20 39 39 | 0d 7d 3b 0d 0d 2f 2f 20 |Cmd = 99|.};..// |
|00000ac0| 63 6f 6e 73 74 61 6e 74 | 73 20 66 6f 72 20 41 70 |constant|s for Ap|
|00000ad0| 70 65 6e 64 53 74 64 49 | 74 65 6d 73 0d 0d 65 6e |pendStdI|tems..en|
|00000ae0| 75 6d 0d 7b 0d 09 61 70 | 70 65 6e 64 44 41 4e 61 |um.{..ap|pendDANa|
|00000af0| 6d 65 73 20 3d 20 30 2c | 0d 09 61 70 70 65 6e 64 |mes = 0,|..append|
|00000b00| 46 6f 6e 74 4e 61 6d 65 | 73 0d 7d 3b 0d 0d 2f 2f |FontName|s.};..//|
|00000b10| 20 63 6f 6e 73 74 61 6e | 74 73 20 66 6f 72 20 6d | constan|ts for m|
|00000b20| 65 6e 75 20 68 69 64 69 | 6e 67 3a 0d 0d 74 79 70 |enu hidi|ng:..typ|
|00000b30| 65 64 65 66 20 65 6e 75 | 6d 0d 7b 0d 09 4d 42 41 |edef enu|m.{..MBA|
|00000b40| 52 5f 53 48 4f 57 2c 09 | 09 09 09 09 09 2f 2f 20 |R_SHOW,.|.....// |
|00000b50| 73 68 6f 77 20 74 68 65 | 20 6d 65 6e 75 62 61 72 |show the| menubar|
|00000b60| 0d 09 4d 42 41 52 5f 48 | 49 44 45 2c 09 09 09 09 |..MBAR_H|IDE,....|
|00000b70| 09 09 2f 2f 20 68 69 64 | 65 20 74 68 65 20 6d 65 |..// hid|e the me|
|00000b80| 6e 75 62 61 72 0d 09 4d | 42 41 52 5f 48 49 44 45 |nubar..M|BAR_HIDE|
|00000b90| 5f 4d 4f 55 53 45 41 57 | 41 52 45 09 09 09 2f 2f |_MOUSEAW|ARE...//|
|00000ba0| 20 68 69 64 65 20 74 68 | 65 20 6d 65 6e 75 20 62 | hide th|e menu b|
|00000bb0| 61 72 20 75 6e 6c 65 73 | 73 20 6d 6f 75 73 65 20 |ar unles|s mouse |
|00000bc0| 77 69 74 68 69 6e 20 32 | 30 20 70 69 78 65 6c 73 |within 2|0 pixels|
|00000bd0| 20 6f 66 20 73 63 72 65 | 65 6e 20 74 6f 70 0d 7d | of scre|en top.}|
|00000be0| 0d 4d 42 61 72 48 69 64 | 69 6e 67 3b 0d 0d 0d 0d |.MBarHid|ing;....|
|00000bf0| 0d 44 45 46 49 4e 45 43 | 4c 41 53 53 49 44 28 20 |.DEFINEC|LASSID( |
|00000c00| 5a 4d 65 6e 75 42 61 72 | 2c 20 27 7a 6d 62 72 27 |ZMenuBar|, 'zmbr'|
|00000c10| 20 29 3b 0d 0d 2f 2f 20 | 6d 65 6e 75 62 61 72 20 | );..// |menubar |
|00000c20| 6d 61 6e 61 67 65 72 20 | 63 6c 61 73 73 0d 0d 63 |manager |class..c|
|00000c30| 6c 61 73 73 09 5a 4d 65 | 6e 75 42 61 72 20 3a 20 |lass.ZMe|nuBar : |
|00000c40| 70 75 62 6c 69 63 20 5a | 43 6f 6d 72 61 64 65 0d |public Z|Comrade.|
|00000c50| 7b 0d 70 72 6f 74 65 63 | 74 65 64 3a 0d 09 73 68 |{.protec|ted:..sh|
|00000c60| 6f 72 74 09 09 09 6d 42 | 61 72 49 44 3b 09 09 09 |ort...mB|arID;...|
|00000c70| 09 2f 2f 20 72 65 73 20 | 49 44 20 6f 66 20 6f 72 |.// res |ID of or|
|00000c80| 69 67 69 6e 61 6c 20 4d | 42 41 52 20 72 65 73 6f |iginal M|BAR reso|
|00000c90| 75 72 63 65 0d 09 73 68 | 6f 72 74 09 09 09 6d 62 |urce..sh|ort...mb|
|00000ca0| 43 6f 75 6e 74 3b 09 09 | 09 2f 2f 20 6e 75 6d 62 |Count;..|.// numb|
|00000cb0| 65 72 20 6f 66 20 69 74 | 65 6d 73 20 69 6e 20 6d |er of it|ems in m|
|00000cc0| 61 69 6e 20 62 61 72 20 | 61 74 20 74 6f 70 20 6c |ain bar |at top l|
|00000cd0| 65 76 65 6c 0d 09 73 68 | 6f 72 74 09 09 09 6d 69 |evel..sh|ort...mi|
|00000ce0| 53 65 65 64 3b 09 09 09 | 09 2f 2f 20 69 6e 64 65 |Seed;...|.// inde|
|00000cf0| 78 20 63 6f 75 6e 74 65 | 72 0d 09 73 68 6f 72 74 |x counte|r..short|
|00000d00| 09 09 09 6d 48 65 6c 70 | 4f 66 66 73 65 74 3b 09 |...mHelp|Offset;.|
|00000d10| 09 2f 2f 20 63 6f 75 6e | 74 20 6f 66 20 69 74 65 |.// coun|t of ite|
|00000d20| 6d 73 20 69 6e 20 68 65 | 6c 70 20 6d 65 6e 75 20 |ms in he|lp menu |
|00000d30| 62 65 66 6f 72 65 20 77 | 65 20 61 64 64 65 64 20 |before w|e added |
|00000d40| 61 6e 79 0d 09 73 68 6f | 72 74 2a 2a 09 09 09 6d |any..sho|rt**...m|
|00000d50| 42 61 72 48 3b 09 09 09 | 09 2f 2f 20 48 61 6e 64 |BarH;...|.// Hand|
|00000d60| 6c 65 20 74 6f 20 6d 65 | 6e 75 62 61 72 20 64 61 |le to me|nubar da|
|00000d70| 74 61 20 64 75 72 69 6e | 67 20 63 6f 6e 73 74 72 |ta durin|g constr|
|00000d80| 75 63 74 69 6f 6e 0d 09 | 5a 41 72 72 61 79 2a 09 |uction..|ZArray*.|
|00000d90| 09 09 74 68 65 4d 65 6e | 75 43 6d 64 73 3b 09 09 |..theMen|uCmds;..|
|00000da0| 2f 2f 20 61 72 72 61 79 | 20 6f 66 20 4d 65 6e 75 |// array| of Menu|
|00000db0| 43 6d 64 20 73 74 72 75 | 63 74 73 20 75 73 65 64 |Cmd stru|cts used|
|00000dc0| 20 74 6f 20 6d 61 70 20 | 63 6f 6d 6d 61 6e 64 73 | to map |commands|
|00000dd0| 0d 09 5a 41 72 72 61 79 | 2a 09 09 09 74 68 65 4d |..ZArray|*...theM|
|00000de0| 65 6e 75 73 3b 09 09 09 | 2f 2f 20 61 72 72 61 79 |enus;...|// array|
|00000df0| 20 6f 66 20 4d 65 6e 75 | 49 6e 66 52 65 63 20 73 | of Menu|InfRec s|
|00000e00| 74 72 75 63 74 73 20 66 | 6f 72 20 6d 65 6e 75 20 |tructs f|or menu |
|00000e10| 62 65 68 61 76 69 6f 75 | 72 73 0d 09 63 68 61 72 |behaviou|rs..char|
|00000e20| 09 09 09 6d 65 6e 75 43 | 68 65 63 6b 43 68 61 72 |...menuC|heckChar|
|00000e30| 3b 09 09 2f 2f 20 63 68 | 61 72 61 63 74 65 72 20 |;..// ch|aracter |
|00000e40| 75 73 65 64 20 66 6f 72 | 20 63 68 65 63 6b 69 6e |used for| checkin|
|00000e50| 67 20 61 20 6d 65 6e 75 | 20 69 74 65 6d 0d 09 73 |g a menu| item..s|
|00000e60| 68 6f 72 74 09 09 09 77 | 6d 4d 65 6e 75 49 44 3b |hort...w|mMenuID;|
|00000e70| 09 09 09 2f 2f 20 49 44 | 20 6f 66 20 77 69 6e 64 |...// ID| of wind|
|00000e80| 6f 77 73 20 6d 65 6e 75 | 0d 09 73 68 6f 72 74 09 |ows menu|..short.|
|00000e90| 09 09 6d 42 61 72 48 65 | 69 67 68 74 3b 09 09 09 |..mBarHe|ight;...|
|00000ea0| 2f 2f 20 73 61 76 65 64 | 20 6d 65 6e 75 62 61 72 |// saved| menubar|
|00000eb0| 20 68 65 69 67 68 74 20 | 77 68 65 6e 20 68 69 64 | height |when hid|
|00000ec0| 64 65 6e 0d 09 4d 42 61 | 72 48 69 64 69 6e 67 09 |den..MBa|rHiding.|
|00000ed0| 09 6d 62 48 69 64 69 6e | 67 3b 09 09 09 2f 2f 20 |.mbHidin|g;...// |
|00000ee0| 6d 65 6e 75 62 61 72 20 | 68 69 64 69 6e 67 20 62 |menubar |hiding b|
|00000ef0| 65 68 61 76 69 6f 75 72 | 0d 09 42 6f 6f 6c 65 61 |ehaviour|..Boolea|
|00000f00| 6e 09 09 09 72 62 50 65 | 6e 64 69 6e 67 3b 09 09 |n...rbPe|nding;..|
|00000f10| 09 2f 2f 20 54 52 55 45 | 20 69 66 20 6d 65 6e 75 |.// TRUE| if menu|
|00000f20| 62 61 72 20 72 65 64 72 | 61 77 20 63 61 6c 6c 65 |bar redr|aw calle|
|00000f30| 64 20 64 75 72 69 6e 67 | 20 64 69 73 70 61 74 63 |d during| dispatc|
|00000f40| 68 0d 09 42 6f 6f 6c 65 | 61 6e 09 09 09 69 6e 44 |h..Boole|an...inD|
|00000f50| 69 73 70 61 74 63 68 3b | 09 09 09 2f 2f 20 54 52 |ispatch;|...// TR|
|00000f60| 55 45 20 69 66 20 63 75 | 72 72 65 6e 74 6c 79 20 |UE if cu|rrently |
|00000f70| 69 6e 20 64 69 73 70 61 | 74 63 68 0d 0d 70 75 62 |in dispa|tch..pub|
|00000f80| 6c 69 63 3a 0d 09 0d 09 | 5a 4d 65 6e 75 42 61 72 |lic:....|ZMenuBar|
|00000f90| 28 20 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 62 61 |( const |short ba|
|00000fa0| 72 49 44 20 29 20 3a 20 | 5a 43 6f 6d 72 61 64 65 |rID ) : |ZComrade|
|00000fb0| 28 29 20 7b 20 63 6c 61 | 73 73 49 44 20 3d 20 43 |() { cla|ssID = C|
|00000fc0| 4c 41 53 53 5f 5a 4d 65 | 6e 75 42 61 72 3b 20 6d |LASS_ZMe|nuBar; m|
|00000fd0| 42 61 72 49 44 20 3d 20 | 62 61 72 49 44 3b 20 7d |BarID = |barID; }|
|00000fe0| 3b 0d 09 76 69 72 74 75 | 61 6c 20 7e 5a 4d 65 6e |;..virtu|al ~ZMen|
|00000ff0| 75 42 61 72 28 29 3b 0d | 09 0d 09 76 69 72 74 75 |uBar();.|...virtu|
|00001000| 61 6c 20 76 6f 69 64 09 | 09 49 6e 69 74 4d 65 6e |al void.|.InitMen|
|00001010| 75 42 61 72 28 29 3b 0d | 09 0d 09 76 69 72 74 75 |uBar();.|...virtu|
|00001020| 61 6c 20 76 6f 69 64 09 | 09 55 70 64 61 74 65 4d |al void.|.UpdateM|
|00001030| 65 6e 75 42 61 72 28 29 | 3b 0d 09 76 69 72 74 75 |enuBar()|;..virtu|
|00001040| 61 6c 20 76 6f 69 64 09 | 09 43 6c 69 63 6b 4d 65 |al void.|.ClickMe|
|00001050| 6e 75 42 61 72 28 20 63 | 6f 6e 73 74 20 50 6f 69 |nuBar( c|onst Poi|
|00001060| 6e 74 20 6d 6f 75 73 65 | 50 74 20 29 3b 0d 09 76 |nt mouse|Pt );..v|
|00001070| 69 72 74 75 61 6c 20 76 | 6f 69 64 09 09 44 69 73 |irtual v|oid..Dis|
|00001080| 70 61 74 63 68 43 6f 6d | 6d 61 6e 64 28 20 63 6f |patchCom|mand( co|
|00001090| 6e 73 74 20 6c 6f 6e 67 | 20 6d 53 65 6c 65 63 74 |nst long| mSelect|
|000010a0| 20 29 3b 0d 09 76 69 72 | 74 75 61 6c 20 76 6f 69 | );..vir|tual voi|
|000010b0| 64 09 09 44 69 6d 4d 65 | 6e 75 73 28 29 3b 0d 09 |d..DimMe|nus();..|
|000010c0| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 09 |..virtua|l void..|
|000010d0| 45 6e 61 62 6c 65 43 6f | 6d 6d 61 6e 64 28 20 63 |EnableCo|mmand( c|
|000010e0| 6f 6e 73 74 20 6c 6f 6e | 67 20 63 6d 64 20 29 3b |onst lon|g cmd );|
|000010f0| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 09 |..virtua|l void..|
|00001100| 45 6e 61 62 6c 65 43 6f | 6d 6d 61 6e 64 28 20 63 |EnableCo|mmand( c|
|00001110| 6f 6e 73 74 20 73 68 6f | 72 74 20 6d 65 6e 75 49 |onst sho|rt menuI|
|00001120| 44 2c 20 63 6f 6e 73 74 | 20 73 68 6f 72 74 20 69 |D, const| short i|
|00001130| 74 65 6d 49 44 20 29 3b | 0d 09 76 69 72 74 75 61 |temID );|..virtua|
|00001140| 6c 20 76 6f 69 64 09 09 | 44 69 73 61 62 6c 65 43 |l void..|DisableC|
|00001150| 6f 6d 6d 61 6e 64 28 20 | 63 6f 6e 73 74 20 6c 6f |ommand( |const lo|
|00001160| 6e 67 20 63 6d 64 20 29 | 3b 0d 09 76 69 72 74 75 |ng cmd )|;..virtu|
|00001170| 61 6c 20 76 6f 69 64 09 | 09 44 69 73 61 62 6c 65 |al void.|.Disable|
|00001180| 43 6f 6d 6d 61 6e 64 28 | 20 63 6f 6e 73 74 20 73 |Command(| const s|
|00001190| 68 6f 72 74 20 6d 65 6e | 75 49 44 2c 20 63 6f 6e |hort men|uID, con|
|000011a0| 73 74 20 73 68 6f 72 74 | 20 69 74 65 6d 49 44 20 |st short| itemID |
|000011b0| 29 3b 0d 09 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |);....vi|rtual vo|
|000011c0| 69 64 09 09 43 68 65 63 | 6b 43 6f 6d 6d 61 6e 64 |id..Chec|kCommand|
|000011d0| 28 20 63 6f 6e 73 74 20 | 6c 6f 6e 67 20 63 6d 64 |( const |long cmd|
|000011e0| 2c 20 63 6f 6e 73 74 20 | 42 6f 6f 6c 65 61 6e 20 |, const |Boolean |
|000011f0| 63 68 65 63 6b 4f 6e 4f | 66 66 20 29 3b 0d 09 76 |checkOnO|ff );..v|
|00001200| 69 72 74 75 61 6c 20 76 | 6f 69 64 09 09 43 68 65 |irtual v|oid..Che|
|00001210| 63 6b 43 6f 6d 6d 61 6e | 64 28 20 63 6f 6e 73 74 |ckComman|d( const|
|00001220| 20 73 68 6f 72 74 20 6d | 65 6e 75 49 44 2c 20 63 | short m|enuID, c|
|00001230| 6f 6e 73 74 20 73 68 6f | 72 74 20 69 74 65 6d 49 |onst sho|rt itemI|
|00001240| 44 2c 20 63 6f 6e 73 74 | 20 42 6f 6f 6c 65 61 6e |D, const| Boolean|
|00001250| 20 63 68 65 63 6b 4f 6e | 4f 66 66 20 29 3b 0d 09 | checkOn|Off );..|
|00001260| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 09 43 68 |virtual |void..Ch|
|00001270| 65 63 6b 43 6f 6d 6d 61 | 6e 64 28 20 63 6f 6e 73 |eckComma|nd( cons|
|00001280| 74 20 73 68 6f 72 74 20 | 6d 65 6e 75 49 44 2c 20 |t short |menuID, |
|00001290| 53 74 72 32 35 35 20 69 | 74 65 6d 53 74 72 69 6e |Str255 i|temStrin|
|000012a0| 67 2c 20 63 6f 6e 73 74 | 20 42 6f 6f 6c 65 61 6e |g, const| Boolean|
|000012b0| 20 63 68 65 63 6b 4f 6e | 4f 66 66 20 29 3b 0d 09 | checkOn|Off );..|
|000012c0| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 09 43 68 |virtual |void..Ch|
|000012d0| 65 63 6b 43 6f 6d 6d 61 | 6e 64 57 69 74 68 43 68 |eckComma|ndWithCh|
|000012e0| 61 72 28 20 63 6f 6e 73 | 74 20 6c 6f 6e 67 20 63 |ar( cons|t long c|
|000012f0| 6d 64 2c 20 63 6f 6e 73 | 74 20 63 68 61 72 20 63 |md, cons|t char c|
|00001300| 68 65 63 6b 43 68 61 72 | 20 29 3b 0d 09 76 69 72 |heckChar| );..vir|
|00001310| 74 75 61 6c 20 76 6f 69 | 64 09 09 43 68 65 63 6b |tual voi|d..Check|
|00001320| 43 6f 6d 6d 61 6e 64 57 | 69 74 68 43 68 61 72 28 |CommandW|ithChar(|
|00001330| 20 63 6f 6e 73 74 20 73 | 68 6f 72 74 20 6d 65 6e | const s|hort men|
|00001340| 75 49 44 2c 20 53 74 72 | 32 35 35 20 69 74 65 6d |uID, Str|255 item|
|00001350| 53 74 72 69 6e 67 2c 20 | 63 6f 6e 73 74 20 63 68 |String, |const ch|
|00001360| 61 72 20 63 68 65 63 6b | 43 68 61 72 20 29 3b 0d |ar check|Char );.|
|00001370| 09 76 69 72 74 75 61 6c | 20 76 6f 69 64 09 09 53 |.virtual| void..S|
|00001380| 65 74 43 6f 6d 6d 61 6e | 64 54 65 78 74 28 20 63 |etComman|dText( c|
|00001390| 6f 6e 73 74 20 6c 6f 6e | 67 20 63 6d 64 2c 20 53 |onst lon|g cmd, S|
|000013a0| 74 72 32 35 35 20 61 54 | 65 78 74 20 29 3b 0d 09 |tr255 aT|ext );..|
|000013b0| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 09 53 65 |virtual |void..Se|
|000013c0| 74 43 6f 6d 6d 61 6e 64 | 54 65 78 74 28 20 63 6f |tCommand|Text( co|
|000013d0| 6e 73 74 20 73 68 6f 72 | 74 20 6d 65 6e 75 49 44 |nst shor|t menuID|
|000013e0| 2c 20 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 69 74 |, const |short it|
|000013f0| 65 6d 49 44 2c 20 53 74 | 72 32 35 35 20 61 54 65 |emID, St|r255 aTe|
|00001400| 78 74 20 29 3b 0d 09 76 | 69 72 74 75 61 6c 20 76 |xt );..v|irtual v|
|00001410| 6f 69 64 09 09 53 65 74 | 43 6f 6d 6d 61 6e 64 54 |oid..Set|CommandT|
|00001420| 65 78 74 28 20 63 6f 6e | 73 74 20 6c 6f 6e 67 20 |ext( con|st long |
|00001430| 63 6d 64 2c 20 63 6f 6e | 73 74 20 73 68 6f 72 74 |cmd, con|st short|
|00001440| 20 73 74 72 4c 69 73 74 | 49 44 2c 20 63 6f 6e 73 | strList|ID, cons|
|00001450| 74 20 73 68 6f 72 74 20 | 73 74 72 49 6e 64 65 78 |t short |strIndex|
|00001460| 20 29 3b 0d 09 76 69 72 | 74 75 61 6c 20 76 6f 69 | );..vir|tual voi|
|00001470| 64 09 09 53 65 74 43 6f | 6d 6d 61 6e 64 54 65 78 |d..SetCo|mmandTex|
|00001480| 74 28 20 63 6f 6e 73 74 | 20 73 68 6f 72 74 20 6d |t( const| short m|
|00001490| 65 6e 75 49 44 2c 20 63 | 6f 6e 73 74 20 73 68 6f |enuID, c|onst sho|
|000014a0| 72 74 20 69 74 65 6d 49 | 44 2c 20 63 6f 6e 73 74 |rt itemI|D, const|
|000014b0| 20 73 68 6f 72 74 20 73 | 74 72 4c 69 73 74 49 44 | short s|trListID|
|000014c0| 2c 20 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 73 74 |, const |short st|
|000014d0| 72 49 6e 64 65 78 20 29 | 3b 0d 09 0d 09 76 69 72 |rIndex )|;....vir|
|000014e0| 74 75 61 6c 20 76 6f 69 | 64 09 09 53 65 74 43 6f |tual voi|d..SetCo|
|000014f0| 6d 6d 61 6e 64 54 65 78 | 74 53 74 79 6c 65 28 20 |mmandTex|tStyle( |
|00001500| 63 6f 6e 73 74 20 6c 6f | 6e 67 20 63 6d 64 2c 20 |const lo|ng cmd, |
|00001510| 53 74 79 6c 65 20 61 53 | 74 79 6c 65 20 29 3b 0d |Style aS|tyle );.|
|00001520| 09 0d 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 09 |...virtu|al void.|
|00001530| 09 53 65 74 54 69 74 6c | 65 48 69 6c 69 74 65 28 |.SetTitl|eHilite(|
|00001540| 20 63 6f 6e 73 74 20 73 | 68 6f 72 74 20 6d 65 6e | const s|hort men|
|00001550| 75 49 44 2c 20 63 6f 6e | 73 74 20 42 6f 6f 6c 65 |uID, con|st Boole|
|00001560| 61 6e 20 73 74 61 74 65 | 20 29 3b 0d 09 76 69 72 |an state| );..vir|
|00001570| 74 75 61 6c 20 76 6f 69 | 64 09 09 53 65 74 4d 65 |tual voi|d..SetMe|
|00001580| 6e 75 44 69 6d 6d 69 6e | 67 28 20 63 6f 6e 73 74 |nuDimmin|g( const|
|00001590| 20 73 68 6f 72 74 20 6d | 65 6e 75 49 44 2c 20 63 | short m|enuID, c|
|000015a0| 6f 6e 73 74 20 44 69 6d | 6d 69 6e 67 4f 70 74 69 |onst Dim|mingOpti|
|000015b0| 6f 6e 73 20 64 69 6d 4f | 70 74 73 20 29 3b 0d 09 |ons dimO|pts );..|
|000015c0| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 09 |..virtua|l void..|
|000015d0| 41 70 70 65 6e 64 4d 65 | 6e 75 54 6f 42 61 72 28 |AppendMe|nuToBar(|
|000015e0| 20 63 6f 6e 73 74 20 73 | 68 6f 72 74 20 6d 65 6e | const s|hort men|
|000015f0| 75 49 44 20 29 3b 0d 09 | 76 69 72 74 75 61 6c 20 |uID );..|virtual |
|00001600| 76 6f 69 64 09 09 52 65 | 6d 6f 76 65 4d 65 6e 75 |void..Re|moveMenu|
|00001610| 46 72 6f 6d 42 61 72 28 | 20 63 6f 6e 73 74 20 73 |FromBar(| const s|
|00001620| 68 6f 72 74 20 6d 65 6e | 75 49 44 20 29 3b 0d 09 |hort men|uID );..|
|00001630| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 09 41 70 |virtual |void..Ap|
|00001640| 70 65 6e 64 53 74 64 49 | 74 65 6d 73 28 20 63 6f |pendStdI|tems( co|
|00001650| 6e 73 74 20 73 68 6f 72 | 74 20 6d 65 6e 75 49 44 |nst shor|t menuID|
|00001660| 2c 20 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 69 54 |, const |short iT|
|00001670| 79 70 65 20 3d 20 61 70 | 70 65 6e 64 44 41 4e 61 |ype = ap|pendDANa|
|00001680| 6d 65 73 20 29 3b 0d 09 | 76 69 72 74 75 61 6c 20 |mes );..|virtual |
|00001690| 4d 65 6e 75 48 61 6e 64 | 6c 65 09 46 69 6e 64 4d |MenuHand|le.FindM|
|000016a0| 65 6e 75 49 44 28 20 63 | 6f 6e 73 74 20 73 68 6f |enuID( c|onst sho|
|000016b0| 72 74 20 6d 65 6e 75 49 | 44 20 29 3b 0d 09 0d 09 |rt menuI|D );....|
|000016c0| 76 69 72 74 75 61 6c 20 | 73 68 6f 72 74 09 09 41 |virtual |short..A|
|000016d0| 70 70 65 6e 64 48 65 6c | 70 49 74 65 6d 28 20 53 |ppendHel|pItem( S|
|000016e0| 74 72 32 35 35 20 69 74 | 65 6d 54 65 78 74 20 29 |tr255 it|emText )|
|000016f0| 3b 09 0d 09 0d 2f 2f 20 | 61 75 74 6f 6d 61 74 69 |;....// |automati|
|00001700| 63 20 22 77 69 6e 64 6f | 77 73 22 20 6d 65 6e 75 |c "windo|ws" menu|
|00001710| 20 68 61 6e 64 6c 69 6e | 67 3a 0d 0d 09 76 69 72 | handlin|g:...vir|
|00001720| 74 75 61 6c 20 76 6f 69 | 64 09 09 4e 6f 6d 69 6e |tual voi|d..Nomin|
|00001730| 61 74 65 57 69 6e 64 6f | 77 73 4d 65 6e 75 28 20 |ateWindo|wsMenu( |
|00001740| 63 6f 6e 73 74 20 73 68 | 6f 72 74 20 6d 65 6e 75 |const sh|ort menu|
|00001750| 49 44 20 29 3b 09 0d 09 | 0d 09 69 6e 6c 69 6e 65 |ID );...|..inline|
|00001760| 09 76 6f 69 64 09 09 53 | 65 74 43 68 65 63 6b 4d |.void..S|etCheckM|
|00001770| 61 72 6b 43 68 61 72 28 | 20 63 6f 6e 73 74 20 63 |arkChar(| const c|
|00001780| 68 61 72 20 61 43 68 61 | 72 20 29 20 7b 20 6d 65 |har aCha|r ) { me|
|00001790| 6e 75 43 68 65 63 6b 43 | 68 61 72 20 3d 20 61 43 |nuCheckC|har = aC|
|000017a0| 68 61 72 3b 20 7d 3b 0d | 09 69 6e 6c 69 6e 65 20 |har; };.|.inline |
|000017b0| 20 63 68 61 72 09 09 47 | 65 74 43 68 65 63 6b 4d | char..G|etCheckM|
|000017c0| 61 72 6b 43 68 61 72 28 | 29 20 7b 20 72 65 74 75 |arkChar(|) { retu|
|000017d0| 72 6e 20 6d 65 6e 75 43 | 68 65 63 6b 43 68 61 72 |rn menuC|heckChar|
|000017e0| 3b 20 7d 3b 0d 09 0d 2f | 2f 20 66 6f 6e 74 2c 20 |; };.../|/ font, |
|000017f0| 73 74 79 6c 65 20 61 6e | 64 20 73 69 7a 65 20 6d |style an|d size m|
|00001800| 65 6e 75 20 75 74 69 6c | 69 74 69 65 73 2c 20 63 |enu util|ities, c|
|00001810| 61 6e 20 62 65 20 63 61 | 6c 6c 65 64 20 66 72 6f |an be ca|lled fro|
|00001820| 6d 20 61 6e 79 20 55 70 | 64 61 74 65 4d 65 6e 75 |m any Up|dateMenu|
|00001830| 73 28 29 3a 0d 0d 09 76 | 69 72 74 75 61 6c 20 76 |s():...v|irtual v|
|00001840| 6f 69 64 09 09 55 70 64 | 61 74 65 53 74 79 6c 65 |oid..Upd|ateStyle|
|00001850| 4d 65 6e 75 28 20 54 45 | 53 74 79 6c 65 52 75 6e |Menu( TE|StyleRun|
|00001860| 49 6e 66 6f 2a 20 72 75 | 6e 49 6e 66 6f 20 29 3b |Info* ru|nInfo );|
|00001870| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 09 |..virtua|l void..|
|00001880| 55 70 64 61 74 65 53 74 | 79 6c 65 4d 65 6e 75 28 |UpdateSt|yleMenu(|
|00001890| 20 53 74 79 6c 65 20 61 | 53 74 79 6c 65 20 29 3b | Style a|Style );|
|000018a0| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 09 |..virtua|l void..|
|000018b0| 55 70 64 61 74 65 46 6f | 6e 74 53 69 7a 65 4d 65 |UpdateFo|ntSizeMe|
|000018c0| 6e 75 28 20 54 45 53 74 | 79 6c 65 52 75 6e 49 6e |nu( TESt|yleRunIn|
|000018d0| 66 6f 2a 20 72 75 6e 49 | 6e 66 6f 20 29 3b 0d 09 |fo* runI|nfo );..|
|000018e0| 0d 2f 2f 20 73 68 6f 77 | 69 6e 67 20 61 6e 64 20 |.// show|ing and |
|000018f0| 68 69 64 69 6e 67 20 74 | 68 65 20 6d 65 6e 75 62 |hiding t|he menub|
|00001900| 61 72 3a 0d 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |ar:...vi|rtual vo|
|00001910| 69 64 09 09 53 68 6f 77 | 48 69 64 65 4d 65 6e 75 |id..Show|HideMenu|
|00001920| 42 61 72 28 20 4d 42 61 | 72 48 69 64 69 6e 67 09 |Bar( MBa|rHiding.|
|00001930| 6d 48 69 64 69 6e 67 2c | 20 50 6f 69 6e 74 20 67 |mHiding,| Point g|
|00001940| 4d 6f 75 73 65 4c 6f 63 | 20 29 3b 0d 09 76 69 72 |MouseLoc| );..vir|
|00001950| 74 75 61 6c 20 76 6f 69 | 64 09 09 53 68 6f 77 48 |tual voi|d..ShowH|
|00001960| 69 64 65 4d 65 6e 75 42 | 61 72 28 20 4d 42 61 72 |ideMenuB|ar( MBar|
|00001970| 48 69 64 69 6e 67 09 6d | 48 69 64 69 6e 67 20 29 |Hiding.m|Hiding )|
|00001980| 3b 0d 09 69 6e 6c 69 6e | 65 09 4d 42 61 72 48 69 |;..inlin|e.MBarHi|
|00001990| 64 69 6e 67 09 47 65 74 | 4d 65 6e 75 42 61 72 56 |ding.Get|MenuBarV|
|000019a0| 69 73 53 74 61 74 65 28 | 29 20 7b 20 72 65 74 75 |isState(|) { retu|
|000019b0| 72 6e 20 6d 62 48 69 64 | 69 6e 67 3b 20 7d 3b 0d |rn mbHid|ing; };.|
|000019c0| 09 0d 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 09 |...virtu|al void.|
|000019d0| 09 53 65 74 5a 6f 6f 6d | 53 6f 75 72 63 65 54 6f |.SetZoom|SourceTo|
|000019e0| 43 6f 6d 6d 61 6e 64 28 | 20 63 6f 6e 73 74 20 6c |Command(| const l|
|000019f0| 6f 6e 67 20 61 43 6d 64 | 20 29 3b 0d 70 72 6f 74 |ong aCmd| );.prot|
|00001a00| 65 63 74 65 64 3a 0d 09 | 0d 09 76 69 72 74 75 61 |ected:..|..virtua|
|00001a10| 6c 20 76 6f 69 64 09 09 | 4c 6f 61 64 4d 65 6e 75 |l void..|LoadMenu|
|00001a20| 73 28 20 63 6f 6e 73 74 | 20 42 6f 6f 6c 65 61 6e |s( const| Boolean|
|00001a30| 20 61 75 74 6f 49 6e 73 | 74 61 6c 6c 20 3d 20 54 | autoIns|tall = T|
|00001a40| 52 55 45 20 29 3b 0d 09 | 0d 09 76 69 72 74 75 61 |RUE );..|..virtua|
|00001a50| 6c 20 76 6f 69 64 09 09 | 4c 6f 61 64 4d 65 6e 75 |l void..|LoadMenu|
|00001a60| 28 20 63 6f 6e 73 74 20 | 73 68 6f 72 74 20 6d 65 |( const |short me|
|00001a70| 6e 75 49 44 2c 20 42 6f | 6f 6c 65 61 6e 20 69 73 |nuID, Bo|olean is|
|00001a80| 48 4d 65 6e 75 20 3d 20 | 46 41 4c 53 45 2c 20 42 |HMenu = |FALSE, B|
|00001a90| 6f 6f 6c 65 61 6e 20 61 | 75 74 6f 49 6e 73 74 61 |oolean a|utoInsta|
|00001aa0| 6c 6c 20 3d 20 54 52 55 | 45 20 29 3b 0d 09 76 69 |ll = TRU|E );..vi|
|00001ab0| 72 74 75 61 6c 20 76 6f | 69 64 09 09 4c 6f 61 64 |rtual vo|id..Load|
|00001ac0| 43 4d 4e 55 4d 65 6e 75 | 28 20 63 6f 6e 73 74 20 |CMNUMenu|( const |
|00001ad0| 73 68 6f 72 74 20 6d 65 | 6e 75 49 44 2c 20 42 6f |short me|nuID, Bo|
|00001ae0| 6f 6c 65 61 6e 20 69 73 | 48 4d 65 6e 75 20 3d 20 |olean is|HMenu = |
|00001af0| 46 41 4c 53 45 2c 20 42 | 6f 6f 6c 65 61 6e 20 61 |FALSE, B|oolean a|
|00001b00| 75 74 6f 49 6e 73 74 61 | 6c 6c 20 3d 20 54 52 55 |utoInsta|ll = TRU|
|00001b10| 45 20 29 3b 0d 09 76 69 | 72 74 75 61 6c 20 76 6f |E );..vi|rtual vo|
|00001b20| 69 64 09 09 55 6e 6c 6f | 61 64 4d 65 6e 75 28 20 |id..Unlo|adMenu( |
|00001b30| 4d 65 6e 75 48 61 6e 64 | 6c 65 20 6d 48 20 29 3b |MenuHand|le mH );|
|00001b40| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 09 |..virtua|l void..|
|00001b50| 50 72 65 64 69 6d 4d 65 | 6e 75 28 20 4d 65 6e 75 |PredimMe|nu( Menu|
|00001b60| 48 61 6e 64 6c 65 20 74 | 68 65 4d 65 6e 75 20 29 |Handle t|heMenu )|
|00001b70| 3b 0d 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 09 |;..virtu|al void.|
|00001b80| 09 50 61 72 73 65 4d 65 | 6e 75 49 74 65 6d 28 20 |.ParseMe|nuItem( |
|00001b90| 53 74 72 32 35 35 20 69 | 54 65 78 74 2c 20 6c 6f |Str255 i|Text, lo|
|00001ba0| 6e 67 2a 20 61 43 6d 64 | 20 29 3b 20 0d 09 0d 09 |ng* aCmd| ); ....|
|00001bb0| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 09 46 69 |virtual |void..Fi|
|00001bc0| 6e 64 4d 43 6d 64 28 20 | 63 6f 6e 73 74 20 6c 6f |ndMCmd( |const lo|
|00001bd0| 6e 67 20 6d 53 65 6c 65 | 63 74 2c 20 4d 65 6e 75 |ng mSele|ct, Menu|
|00001be0| 43 6d 64 2a 20 61 43 6d | 64 20 29 3b 0d 09 76 69 |Cmd* aCm|d );..vi|
|00001bf0| 72 74 75 61 6c 20 76 6f | 69 64 09 09 46 69 6e 64 |rtual vo|id..Find|
|00001c00| 43 6f 6d 6d 61 6e 64 28 | 20 63 6f 6e 73 74 20 6c |Command(| const l|
|00001c10| 6f 6e 67 20 63 6d 64 2c | 20 73 68 6f 72 74 2a 20 |ong cmd,| short* |
|00001c20| 6d 65 6e 75 49 44 2c 20 | 73 68 6f 72 74 2a 20 69 |menuID, |short* i|
|00001c30| 74 65 6d 49 44 20 29 3b | 0d 0d 09 76 69 72 74 75 |temID );|...virtu|
|00001c40| 61 6c 20 6c 6f 6e 67 09 | 09 54 72 61 63 6b 4d 65 |al long.|.TrackMe|
|00001c50| 6e 75 42 61 72 28 20 63 | 6f 6e 73 74 20 50 6f 69 |nuBar( c|onst Poi|
|00001c60| 6e 74 20 6d 6f 75 73 65 | 20 29 3b 0d 09 76 69 72 |nt mouse| );..vir|
|00001c70| 74 75 61 6c 20 76 6f 69 | 64 09 09 46 69 6e 64 4d |tual voi|d..FindM|
|00001c80| 65 6e 75 49 6e 66 6f 28 | 20 63 6f 6e 73 74 20 73 |enuInfo(| const s|
|00001c90| 68 6f 72 74 20 6d 65 6e | 75 49 44 2c 20 4d 65 6e |hort men|uID, Men|
|00001ca0| 75 49 6e 66 52 65 63 2a | 20 6d 52 65 63 20 29 3b |uInfRec*| mRec );|
|00001cb0| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 09 09 |..virtua|l void..|
|00001cc0| 47 65 74 4d 65 6e 75 54 | 69 74 6c 65 52 65 63 74 |GetMenuT|itleRect|
|00001cd0| 28 20 73 68 6f 72 74 20 | 6d 65 6e 75 49 44 2c 20 |( short |menuID, |
|00001ce0| 52 65 63 74 2a 20 74 52 | 65 63 74 20 29 3b 09 0d |Rect* tR|ect );..|
|00001cf0| 7d 3b 0d 0d 0d 2f 2f 20 | 74 68 69 73 20 6f 62 6a |};...// |this obj|
|00001d00| 65 63 74 20 68 61 6e 64 | 6c 65 73 20 61 20 6d 65 |ect hand|les a me|
|00001d10| 6e 75 62 61 72 2e 20 42 | 79 20 64 65 66 61 75 6c |nubar. B|y defaul|
|00001d20| 74 2c 20 69 74 20 63 61 | 6c 6c 73 20 74 68 65 20 |t, it ca|lls the |
|00001d30| 6d 61 63 20 6d 65 6e 75 | 20 6d 61 6e 61 67 65 72 |mac menu| manager|
|00001d40| 20 74 6f 20 77 6f 72 6b | 20 77 69 74 68 20 74 68 | to work| with th|
|00001d50| 65 0d 2f 2f 20 67 6c 6f | 62 61 6c 20 6d 65 6e 75 |e.// glo|bal menu|
|00001d60| 62 61 72 20 61 74 20 74 | 68 65 20 74 6f 70 20 6f |bar at t|he top o|
|00001d70| 66 20 74 68 65 20 6d 61 | 69 6e 20 6d 6f 6e 69 74 |f the ma|in monit|
|00001d80| 6f 72 2c 20 62 75 74 20 | 69 74 20 63 61 6e 20 62 |or, but |it can b|
|00001d90| 65 20 73 75 62 63 6c 61 | 73 73 65 64 20 74 6f 20 |e subcla|ssed to |
|00001da0| 69 6d 70 6c 65 6d 65 6e | 74 20 6f 74 68 65 72 0d |implemen|t other.|
|00001db0| 2f 2f 20 73 6f 72 74 73 | 20 6f 66 20 6d 65 6e 75 |// sorts| of menu|
|00001dc0| 62 61 72 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |bar, for| example|
|00001dd0| 20 61 20 6d 69 6e 69 2d | 6d 65 6e 75 62 61 72 20 | a mini-|menubar |
|00001de0| 69 6e 20 61 20 77 69 6e | 64 6f 77 20 28 74 68 69 |in a win|dow (thi|
|00001df0| 73 20 69 73 20 6c 65 66 | 74 20 61 73 20 61 6e 20 |s is lef|t as an |
|00001e00| 65 78 65 72 63 69 73 65 | 21 29 2e 0d 2f 2f 20 54 |exercise|!)..// T|
|00001e10| 68 69 73 20 6c 6f 61 64 | 73 20 6d 65 6e 75 73 20 |his load|s menus |
|00001e20| 61 6e 64 20 70 61 72 73 | 65 73 20 74 68 65 20 69 |and pars|es the i|
|00001e30| 74 65 6d 73 20 69 6e 74 | 6f 20 61 20 6c 69 73 74 |tems int|o a list|
|00001e40| 20 6f 66 20 63 6f 6d 6d | 61 6e 64 20 49 44 73 2e | of comm|and IDs.|
|00001e50| 20 57 68 65 6e 20 74 68 | 65 20 6d 65 6e 75 20 69 | When th|e menu i|
|00001e60| 74 65 6d 20 69 73 0d 2f | 2f 20 63 68 6f 73 65 6e |tem is./|/ chosen|
|00001e70| 2c 20 74 68 65 20 61 73 | 73 6f 63 69 61 74 65 64 |, the as|sociated|
|00001e80| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 6c 6f 6f 6b | command| is look|
|00001e90| 65 64 20 75 70 2e 20 54 | 68 69 73 20 69 73 20 74 |ed up. T|his is t|
|00001ea0| 68 65 6e 20 67 65 6e 65 | 72 61 6c 6c 79 20 70 61 |hen gene|rally pa|
|00001eb0| 73 73 65 64 20 75 70 20 | 74 68 65 20 63 6f 6d 6d |ssed up |the comm|
|00001ec0| 61 6e 64 0d 2f 2f 20 63 | 68 61 69 6e 20 69 6e 20 |and.// c|hain in |
|00001ed0| 66 6f 72 63 65 20 61 74 | 20 74 68 65 20 74 69 6d |force at| the tim|
|00001ee0| 65 2e 0d 0d 2f 2f 20 63 | 6f 6d 6d 61 6e 64 73 20 |e...// c|ommands |
|00001ef0| 61 72 65 20 61 73 73 6f | 63 69 61 74 65 64 20 69 |are asso|ciated i|
|00001f00| 6e 69 74 69 61 6c 6c 79 | 20 77 69 74 68 20 6d 65 |nitially| with me|
|00001f10| 6e 75 20 69 74 65 6d 73 | 20 75 73 69 6e 67 20 61 |nu items| using a|
|00001f20| 20 23 63 68 61 72 61 63 | 74 65 72 2c 20 73 6f 20 | #charac|ter, so |
|00001f30| 79 6f 75 72 20 54 43 4c | 20 72 65 73 6f 75 72 63 |your TCL| resourc|
|00001f40| 65 73 0d 2f 2f 20 65 74 | 63 2e 20 63 61 6e 20 62 |es.// et|c. can b|
|00001f50| 65 20 75 73 65 64 20 64 | 69 72 65 63 74 6c 79 20 |e used d|irectly |
|00001f60| 77 69 74 68 20 74 68 69 | 73 2e 20 65 2e 67 2e 20 |with thi|s. e.g. |
|00001f70| 22 4f 70 65 6e 20 46 69 | 6c 65 2e 2e 2e 23 31 32 |"Open Fi|le...#12|
|00001f80| 33 34 35 22 20 77 69 6c | 6c 20 72 65 73 75 6c 74 |345" wil|l result|
|00001f90| 20 69 6e 20 74 68 65 20 | 6d 65 6e 75 20 69 74 65 | in the |menu ite|
|00001fa0| 6d 0d 2f 2f 20 22 4f 70 | 65 6e 20 46 69 6c 65 2e |m.// "Op|en File.|
|00001fb0| 2e 2e 22 20 61 6e 64 20 | 74 68 65 20 63 6f 6d 6d |.." and |the comm|
|00001fc0| 61 6e 64 20 6e 75 6d 62 | 65 72 20 31 32 33 34 35 |and numb|er 12345|
|00001fd0| 2e 20 54 68 69 73 20 77 | 69 6c 6c 20 61 6c 73 6f |. This w|ill also|
|00001fe0| 20 75 73 65 20 43 4d 4e | 55 20 72 65 73 6f 75 72 | use CMN|U resour|
|00001ff0| 63 65 73 20 28 61 20 6c | 61 20 4d 61 63 41 70 70 |ces (a l|a MacApp|
|00002000| 29 0d 2f 2f 20 69 66 20 | 69 74 20 63 61 6e 27 74 |).// if |it can't|
|00002010| 20 66 69 6e 64 20 61 20 | 4d 45 4e 55 20 72 65 73 | find a |MENU res|
|00002020| 6f 75 72 63 65 2e 20 54 | 68 75 73 20 79 6f 75 20 |ource. T|hus you |
|00002030| 67 65 74 20 74 68 65 20 | 62 65 73 74 20 6f 66 20 |get the |best of |
|00002040| 62 6f 74 68 20 77 6f 72 | 6c 64 73 21 0d 0d 0d 65 |both wor|lds!...e|
|00002050| 78 74 65 72 6e 09 5a 4d | 65 6e 75 42 61 72 2a 09 |xtern.ZM|enuBar*.|
|00002060| 67 4d 65 6e 75 42 61 72 | 3b 0d 65 78 74 65 72 6e |gMenuBar|;.extern|
|00002070| 09 73 68 6f 72 74 09 09 | 67 46 6f 6e 74 4d 65 6e |.short..|gFontMen|
|00002080| 75 49 44 3b 0d 0d 23 65 | 6e 64 69 66 00 00 00 00 |uID;..#e|ndif....|
|00002090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002100| 00 00 01 00 00 00 01 5a | 00 00 00 5a 00 00 00 52 |.......Z|...Z...R|
|00002110| 00 00 01 0e 00 06 00 00 | 00 d6 00 00 00 0b 00 00 |........|........|
|00002120| 00 00 00 00 00 ea 00 00 | 00 0b 00 00 00 02 00 00 |........|........|
|00002130| 0a 5a 4d 65 6e 75 42 61 | 72 2e 68 75 02 00 00 00 |.ZMenuBa|r.hu....|
|00002140| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|00002150| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00002160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002170| 00 00 b3 41 d6 34 00 00 | 00 00 00 00 01 ac ff ff |...A.4..|........|
|00002180| ff c4 00 00 01 07 00 00 | 00 50 00 04 00 00 01 08 |........|.P......|
|00002190| 00 00 00 02 00 00 00 00 | 00 00 01 09 00 00 00 02 |........|........|
|000021a0| 00 00 00 04 00 00 01 0a | 00 00 00 0a 00 00 00 08 |........|........|
|000021b0| 00 00 01 0b ff ff ff e2 | 00 00 00 0a 00 00 ff ff |........|........|
|000021c0| ff c5 00 01 ff ff ff c4 | 00 01 ff ff ff c0 00 00 |........|........|
|000021d0| 00 0e 00 00 00 02 00 00 | 00 0b 00 01 ff ff ff bd |........|........|
|000021e0| 00 00 00 06 00 00 00 02 | 00 00 00 0b 00 02 ff ff |........|........|
|000021f0| ff be 00 00 01 28 00 00 | 00 10 00 04 00 00 01 29 |.....(..|.......)|
|00002200| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00002210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002220| 00 00 00 00 00 00 00 02 | 00 04 00 4a 00 69 02 49 |........|...J.i.I|
|00002230| 02 bf 00 4a 00 69 02 49 | 02 bf b2 e8 80 48 00 00 |...J.i.I|.....H..|
|00002240| 01 c8 00 00 01 c8 00 00 | 00 f7 01 00 00 00 00 02 |........|........|
|00002250| 00 00 00 00 00 04 00 01 | 00 01 00 00 01 00 00 00 |........|........|
|00002260| 01 5a 00 00 00 5a 00 00 | 00 52 04 55 0a a8 3a 64 |.Z...Z..|.R.U..:d|
|00002270| 00 00 00 1c 00 52 00 01 | 4d 50 53 52 00 01 00 12 |.....R..|MPSR....|
|00002280| 4d 57 42 42 00 00 00 2a | 03 ed ff ff 00 00 00 00 |MWBB...*|........|
|00002290| 00 00 00 00 03 ef ff ff | 00 00 00 4c 00 00 00 00 |........|...L....|
|000022a0| 03 f0 ff ff 00 00 00 52 | 00 00 00 00 00 00 00 00 |.......R|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+