home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2003-11-13 | 29.1 KB | [TEXT/FB^e] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Nov 13 16:34:56 2003, modified Thu Nov 13 16:34:56 2003, creator 'FB^e', type ASCII, 29083 bytes "Hierarchical DataBrowser" , at 0x721b 386 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dexmagic
| Picasso 64 Image
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [FB^e] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 18 48 69 65 72 61 72 | 63 68 69 63 61 6c 20 44 |..Hierar|chical D|
|00000010| 61 74 61 42 72 6f 77 73 | 65 72 00 00 00 00 00 00 |ataBrows|er......|
|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 46 42 5e | 65 01 00 00 00 00 00 00 |.TEXTFB^|e.......|
|00000050| 00 00 00 00 00 71 9b 00 | 00 01 82 bb d9 a9 80 bb |.....q..|........|
|00000060| d9 a9 80 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 56 1b 00 00 |........|....V...|
|00000080| 0d 27 7e 27 41 0d 27 20 | 20 20 20 20 20 20 20 20 |.'~'A.' | |
|00000090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 52 75 | | Ru|
|000000a0| 6e 74 69 6d 65 20 3a 20 | 52 6e 74 6d 20 41 70 70 |ntime : |Rntm App|
|000000b0| 65 61 72 61 6e 63 65 2e | 49 6e 63 6c 0d 27 20 20 |earance.|Incl.' |
|000000c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000d0| 20 20 20 20 20 20 20 20 | 20 43 50 55 20 3a 20 43 | | CPU : C|
|000000e0| 61 72 62 6f 6e 0d 27 20 | 20 20 20 20 20 20 20 20 |arbon.' | |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 43 41 4c 4c 20 | | CALL |
|00000100| 52 65 71 27 64 20 3a 20 | 4f 66 66 0d 27 7e 27 42 |Req'd : |Off.'~'B|
|00000110| 0d 27 7e 12 49 6e 74 72 | 6f 64 75 63 74 69 6f 6e |.'~.Intr|oduction|
|00000120| 0d 2f 2a 0d 20 20 20 20 | 20 48 69 65 72 61 72 63 |./*. | Hierarc|
|00000130| 68 69 63 61 6c 20 44 61 | 74 61 42 72 6f 77 73 65 |hical Da|taBrowse|
|00000140| 72 20 64 65 6d 6f 20 73 | 68 6f 77 73 20 68 6f 77 |r demo s|hows how|
|00000150| 20 74 6f 20 63 72 65 61 | 74 65 20 61 20 68 69 65 | to crea|te a hie|
|00000160| 72 61 72 63 68 69 63 61 | 6c 0d 20 20 20 20 20 6c |rarchica|l. l|
|00000170| 69 73 74 20 66 6f 72 20 | 74 68 65 20 44 61 74 61 |ist for |the Data|
|00000180| 42 72 6f 77 73 65 72 20 | 63 6f 6e 74 72 6f 6c 2e |Browser |control.|
|00000190| 0d 0d 20 20 20 20 20 49 | 66 20 79 6f 75 20 61 72 |.. I|f you ar|
|000001a0| 65 20 75 6e 66 61 6d 69 | 6c 69 61 72 20 77 69 74 |e unfami|liar wit|
|000001b0| 68 20 74 68 61 74 20 76 | 65 72 73 61 74 69 6c 65 |h that v|ersatile|
|000001c0| 20 63 6f 6e 74 72 6f 6c | 2c 20 67 6f 20 72 65 61 | control|, go rea|
|000001d0| 64 20 74 68 65 0d 20 20 | 20 20 20 69 6e 74 72 6f |d the. | intro|
|000001e0| 64 75 63 74 69 6f 6e 20 | 66 6f 75 6e 64 20 69 6e |duction |found in|
|000001f0| 20 74 68 65 20 53 69 6d | 70 6c 65 20 44 61 74 61 | the Sim|ple Data|
|00000200| 42 72 6f 77 73 65 72 20 | 64 65 6d 6f 20 66 69 6c |Browser |demo fil|
|00000210| 65 2c 20 74 68 65 0d 20 | 20 20 20 20 66 6f 6c 6c |e, the. | foll|
|00000220| 6f 77 69 6e 67 20 77 69 | 6c 6c 20 61 73 73 75 6d |owing wi|ll assum|
|00000230| 65 20 74 68 61 74 20 79 | 6f 75 20 68 61 76 65 20 |e that y|ou have |
|00000240| 72 65 61 64 20 69 74 20 | 61 6c 72 65 61 64 79 2e |read it |already.|
|00000250| 0d 0d 20 20 20 20 20 54 | 68 69 73 20 64 65 6d 6f |.. T|his demo|
|00000260| 20 69 73 20 62 61 73 65 | 64 20 6f 6e 20 74 68 65 | is base|d on the|
|00000270| 20 61 62 6f 76 65 20 6d | 65 6e 74 69 6f 6e 65 64 | above m|entioned|
|00000280| 20 69 6e 74 72 6f 64 75 | 63 74 69 6f 6e 20 61 6e | introdu|ction an|
|00000290| 64 0d 20 20 20 20 20 69 | 74 20 77 69 6c 6c 20 61 |d. i|t will a|
|000002a0| 64 64 20 74 68 65 20 68 | 69 65 72 61 72 63 68 69 |dd the h|ierarchi|
|000002b0| 63 61 6c 20 6e 61 76 69 | 67 61 74 69 6f 6e 20 77 |cal navi|gation w|
|000002c0| 69 74 68 69 6e 20 74 68 | 65 20 6c 69 73 74 20 6f |ithin th|e list o|
|000002d0| 66 0d 20 20 20 20 20 69 | 74 65 6d 73 20 64 69 73 |f. i|tems dis|
|000002e0| 70 6c 61 79 65 64 20 69 | 6e 20 74 68 65 20 44 61 |played i|n the Da|
|000002f0| 74 61 42 72 6f 77 73 65 | 72 2e 0d 20 20 20 20 20 |taBrowse|r.. |
|00000300| 49 6e 20 6f 72 64 65 72 | 20 74 6f 20 62 75 69 6c |In order| to buil|
|00000310| 64 20 6f 75 72 20 68 69 | 65 72 61 72 63 68 79 20 |d our hi|erarchy |
|00000320| 77 65 20 77 69 6c 6c 20 | 70 65 72 66 6f 72 6d 20 |we will |perform |
|00000330| 61 20 72 65 63 75 72 73 | 69 76 65 0d 20 20 20 20 |a recurs|ive. |
|00000340| 20 73 63 61 6e 20 6f 66 | 20 74 68 65 20 66 6f 6c | scan of| the fol|
|00000350| 64 65 72 20 63 68 6f 73 | 65 6e 20 62 79 20 74 68 |der chos|en by th|
|00000360| 65 20 65 6e 64 2d 75 73 | 65 72 2e 0d 0d 27 7e 12 |e end-us|er...'~.|
|00000370| 42 75 69 6c 64 69 6e 67 | 20 74 68 65 20 68 69 65 |Building| the hie|
|00000380| 72 61 72 63 68 79 0d 0d | 20 20 20 20 20 4f 62 76 |rarchy..| Obv|
|00000390| 69 6f 75 73 6c 79 2c 20 | 74 68 65 20 70 72 6f 67 |iously, |the prog|
|000003a0| 72 61 6d 20 6d 75 73 74 | 20 6b 65 65 70 20 74 72 |ram must| keep tr|
|000003b0| 61 63 6b 20 6f 66 20 74 | 68 65 20 69 74 65 6d 20 |ack of t|he item |
|000003c0| 68 69 65 72 61 72 63 68 | 79 2c 0d 20 20 20 20 20 |hierarch|y,. |
|000003d0| 74 68 61 74 27 73 20 77 | 68 79 20 77 65 20 77 69 |that's w|hy we wi|
|000003e0| 6c 6c 20 69 6e 74 72 6f | 64 75 63 65 20 61 6e 6f |ll intro|duce ano|
|000003f0| 74 68 65 72 20 66 69 65 | 6c 64 20 69 6e 20 6f 75 |ther fie|ld in ou|
|00000400| 72 20 63 75 73 74 6f 6d | 0d 20 20 20 20 20 49 74 |r custom|. It|
|00000410| 65 6d 52 65 63 6f 72 64 | 20 74 6f 20 68 6f 6c 64 |emRecord| to hold|
|00000420| 20 74 68 65 20 69 74 65 | 6d 49 44 20 6f 66 20 74 | the ite|mID of t|
|00000430| 68 65 20 70 61 72 65 6e | 74 20 69 74 65 6d 2c 20 |he paren|t item, |
|00000440| 73 61 69 64 20 6f 74 68 | 65 72 77 69 73 65 0d 20 |said oth|erwise. |
|00000450| 20 20 20 20 74 68 65 20 | 66 6f 6c 64 65 72 20 69 | the |folder i|
|00000460| 6e 20 77 68 69 63 68 20 | 74 68 65 20 69 74 65 6d |n which |the item|
|00000470| 20 66 6f 75 6e 64 20 69 | 73 20 6c 6f 63 61 74 65 | found i|s locate|
|00000480| 64 2e 0d 20 20 20 20 20 | 57 65 20 77 69 6c 6c 20 |d.. |We will |
|00000490| 61 6c 73 6f 20 69 6e 74 | 72 6f 64 75 63 65 20 61 |also int|roduce a|
|000004a0| 6e 6f 74 68 65 72 20 67 | 6c 6f 62 61 6c 20 76 61 |nother g|lobal va|
|000004b0| 72 69 61 62 6c 65 20 74 | 68 61 74 20 77 69 6c 6c |riable t|hat will|
|000004c0| 20 68 65 6c 70 0d 20 20 | 20 20 20 66 6f 72 20 63 | help. | for c|
|000004d0| 6f 75 6e 74 69 6e 67 20 | 74 68 65 20 69 74 65 6d |ounting |the item|
|000004e0| 73 20 64 75 72 69 6e 67 | 20 74 68 65 20 72 65 63 |s during| the rec|
|000004f0| 75 72 73 69 76 65 20 73 | 65 61 72 63 68 2e 0d 0d |ursive s|earch...|
|00000500| 20 20 20 20 20 54 68 65 | 20 64 65 6d 6f 20 62 65 | The| demo be|
|00000510| 6c 6f 77 20 61 64 64 73 | 20 61 6c 73 6f 20 74 77 |low adds| also tw|
|00000520| 6f 20 6e 65 77 20 63 6f | 6c 75 6d 6e 73 20 74 68 |o new co|lumns th|
|00000530| 61 74 20 77 69 6c 6c 20 | 64 69 73 70 6c 61 79 20 |at will |display |
|00000540| 74 68 65 0d 20 20 20 20 | 20 63 72 65 61 74 6f 72 |the. | creator|
|00000550| 20 63 6f 64 65 20 61 6e | 64 20 74 68 65 20 66 69 | code an|d the fi|
|00000560| 6c 65 20 74 79 70 65 20 | 6f 66 20 74 68 65 20 69 |le type |of the i|
|00000570| 74 65 6d 73 20 66 6f 75 | 6e 64 2e 0d 0d 27 7e 12 |tems fou|nd...'~.|
|00000580| 44 69 73 70 6c 61 79 69 | 6e 67 20 74 68 65 20 68 |Displayi|ng the h|
|00000590| 69 65 61 72 63 68 69 63 | 61 6c 20 6c 69 73 74 0d |iearchic|al list.|
|000005a0| 0d 20 20 20 20 20 54 68 | 65 72 65 20 61 72 65 20 |. Th|ere are |
|000005b0| 74 68 72 65 65 20 73 74 | 65 70 73 20 74 6f 20 66 |three st|eps to f|
|000005c0| 6f 6c 6c 6f 77 20 69 6e | 20 6f 72 64 65 72 20 74 |ollow in| order t|
|000005d0| 6f 20 67 65 74 20 74 68 | 65 20 74 68 69 6e 67 73 |o get th|e things|
|000005e0| 0d 20 20 20 20 20 67 6f | 69 6e 67 3a 0d 0d 20 20 |. go|ing:.. |
|000005f0| 20 20 20 31 29 20 53 65 | 74 74 69 6e 67 20 74 68 | 1) Se|tting th|
|00000600| 65 20 64 69 73 63 6c 6f | 73 75 72 65 20 63 6f 6c |e disclo|sure col|
|00000610| 75 6d 6e 0d 27 7e 27 39 | 0d 20 20 20 20 20 20 20 |umn.'~'9|. |
|00000620| 20 54 68 65 20 66 69 73 | 74 20 73 74 65 70 20 69 | The fis|t step i|
|00000630| 73 20 74 6f 20 64 65 63 | 69 64 65 20 77 68 69 63 |s to dec|ide whic|
|00000640| 68 20 63 6f 6c 75 6d 6e | 20 6d 75 73 74 20 63 6f |h column| must co|
|00000650| 6e 74 61 69 6e 20 74 68 | 65 0d 20 20 20 20 20 20 |ntain th|e. |
|00000660| 20 20 64 69 73 63 6c 6f | 73 75 72 65 20 74 72 69 | disclo|sure tri|
|00000670| 61 6e 67 6c 65 2e 20 4e | 6f 74 69 63 65 20 74 68 |angle. N|otice th|
|00000680| 61 74 20 79 6f 75 20 63 | 61 6e 20 64 79 6e 61 6d |at you c|an dynam|
|00000690| 69 63 61 6c 6c 79 0d 20 | 20 20 20 20 20 20 20 63 |ically. | c|
|000006a0| 68 61 6e 67 65 20 74 68 | 61 74 20 73 65 74 74 69 |hange th|at setti|
|000006b0| 6e 67 2e 20 54 68 69 73 | 20 69 73 20 64 6f 6e 65 |ng. This| is done|
|000006c0| 20 6c 69 6b 65 20 73 6f | 20 28 70 72 6f 70 65 72 | like so| (proper|
|000006d0| 74 79 49 44 0d 20 20 20 | 20 20 20 20 20 62 65 69 |tyID. | bei|
|000006e0| 6e 67 20 74 68 65 20 63 | 75 73 74 6f 6d 20 69 64 |ng the c|ustom id|
|000006f0| 65 6e 74 69 66 69 65 72 | 20 66 6f 72 20 74 68 65 |entifier| for the|
|00000700| 20 63 6f 6c 75 6d 6e 29 | 3a 0d 0d 20 20 20 20 20 | column)|:.. |
|00000710| 65 72 72 20 3d 20 46 4e | 20 53 65 74 44 61 74 61 |err = FN| SetData|
|00000720| 42 72 6f 77 73 65 72 4c | 69 73 74 56 69 65 77 44 |BrowserL|istViewD|
|00000730| 69 73 63 6c 6f 73 75 72 | 65 43 6f 6c 75 6d 6e 28 |isclosur|eColumn(|
|00000740| 20 62 72 6f 77 73 65 72 | 2c 20 70 72 6f 70 65 72 | browser|, proper|
|00000750| 74 79 49 44 2c 20 5f 66 | 61 6c 73 65 20 29 0d 0d |tyID, _f|alse )..|
|00000760| 0d 20 20 20 20 20 32 29 | 20 53 65 74 74 69 6e 67 |. 2)| Setting|
|00000770| 20 74 68 65 20 63 6f 6e | 74 61 69 6e 65 72 20 70 | the con|tainer p|
|00000780| 72 6f 70 65 72 74 79 0d | 27 7e 27 39 0d 20 20 20 |roperty.|'~'9. |
|00000790| 20 20 20 20 20 59 6f 75 | 20 6d 75 73 74 20 6c 65 | You| must le|
|000007a0| 74 20 74 68 65 20 44 61 | 74 61 42 72 6f 77 73 65 |t the Da|taBrowse|
|000007b0| 72 20 6b 6e 6f 77 20 77 | 68 69 63 68 20 69 74 65 |r know w|hich ite|
|000007c0| 6d 73 20 61 72 65 20 6d | 65 61 6e 74 0d 20 20 20 |ms are m|eant. |
|000007d0| 20 20 20 20 20 74 6f 20 | 62 65 63 6f 6d 65 20 63 | to |become c|
|000007e0| 6f 6e 74 61 69 6e 65 72 | 73 20 74 68 61 74 20 77 |ontainer|s that w|
|000007f0| 69 6c 6c 20 70 6f 73 73 | 69 62 6c 79 20 6f 77 6e |ill poss|ibly own|
|00000800| 20 73 75 62 69 74 65 6d | 73 2e 0d 20 20 20 20 20 | subitem|s.. |
|00000810| 20 20 20 54 68 69 73 20 | 69 73 20 64 6f 6e 65 20 | This |is done |
|00000820| 77 68 65 6e 20 74 68 65 | 20 44 61 74 61 42 72 6f |when the| DataBro|
|00000830| 77 73 65 72 20 61 73 6b | 73 20 79 6f 75 20 66 6f |wser ask|s you fo|
|00000840| 72 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0d 20 20 |r inform|ation. |
|00000850| 20 20 20 20 20 20 77 69 | 74 68 69 6e 20 74 68 65 | wi|thin the|
|00000860| 20 47 65 74 53 65 74 49 | 74 65 6d 44 61 74 61 20 | GetSetI|temData |
|00000870| 63 61 6c 6c 62 61 63 6b | 20 70 72 6f 63 65 64 75 |callback| procedu|
|00000880| 72 65 2e 20 49 6e 20 74 | 68 65 0d 20 20 20 20 20 |re. In t|he. |
|00000890| 20 20 20 44 61 74 61 42 | 72 6f 77 73 65 72 50 72 | DataB|rowserPr|
|000008a0| 6f 70 65 72 74 79 49 44 | 20 70 61 72 61 6d 65 74 |opertyID| paramet|
|000008b0| 65 72 20 74 68 61 74 20 | 75 73 75 61 6c 6c 79 20 |er that |usually |
|000008c0| 63 6f 6e 74 61 69 6e 73 | 0d 20 20 20 20 20 20 20 |contains|. |
|000008d0| 20 74 68 65 20 63 6f 6c | 75 6d 6e 20 69 64 65 6e | the col|umn iden|
|000008e0| 74 69 66 69 65 72 2c 20 | 74 68 65 20 44 61 74 61 |tifier, |the Data|
|000008f0| 42 72 6f 77 73 65 72 20 | 77 69 6c 6c 20 70 61 73 |Browser |will pas|
|00000900| 73 20 74 68 65 20 76 61 | 6c 75 65 0d 20 20 20 20 |s the va|lue. |
|00000910| 20 20 20 20 5f 6b 44 61 | 74 61 42 72 6f 77 73 65 | _kDa|taBrowse|
|00000920| 72 49 74 65 6d 49 73 43 | 6f 6e 74 61 69 6e 65 72 |rItemIsC|ontainer|
|00000930| 50 72 6f 70 65 72 74 79 | 20 61 73 6b 69 6e 67 20 |Property| asking |
|00000940| 79 6f 75 20 69 66 20 74 | 68 65 0d 20 20 20 20 20 |you if t|he. |
|00000950| 20 20 20 69 74 65 6d 20 | 75 6e 64 65 72 20 65 78 | item |under ex|
|00000960| 61 6d 69 6e 61 74 69 6f | 6e 20 69 73 20 61 20 63 |aminatio|n is a c|
|00000970| 6f 6e 74 61 69 6e 65 72 | 20 6f 72 20 6e 6f 74 2e |ontainer| or not.|
|00000980| 20 59 6f 75 20 6d 75 73 | 74 0d 20 20 20 20 20 20 | You mus|t. |
|00000990| 20 20 61 6e 73 77 65 72 | 20 77 69 74 68 20 61 20 | answer| with a |
|000009a0| 62 6f 6f 6c 65 61 6e 20 | 76 61 6c 75 65 20 75 73 |boolean |value us|
|000009b0| 69 6e 67 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ing the |followin|
|000009c0| 67 20 66 75 6e 63 74 69 | 6f 6e 3a 20 20 20 20 20 |g functi|on: |
|000009d0| 20 20 0d 0d 20 20 20 20 | 20 65 72 72 20 3d 20 46 | .. | err = F|
|000009e0| 4e 20 53 65 74 44 61 74 | 61 42 72 6f 77 73 65 72 |N SetDat|aBrowser|
|000009f0| 49 74 65 6d 44 61 74 61 | 42 6f 6f 6c 65 61 6e 56 |ItemData|BooleanV|
|00000a00| 61 6c 75 65 28 20 69 74 | 65 6d 44 61 74 61 2c 20 |alue( it|emData, |
|00000a10| 5f 74 72 75 65 20 29 0d | 0d 0d 20 20 20 20 20 33 |_true ).|.. 3|
|00000a20| 29 20 53 68 6f 77 69 6e | 67 20 74 68 65 20 73 75 |) Showin|g the su|
|00000a30| 62 69 74 65 6d 73 0d 27 | 7e 27 39 0d 20 20 20 20 |bitems.'|~'9. |
|00000a40| 20 20 20 20 54 68 65 20 | 6c 61 73 74 20 73 74 65 | The |last ste|
|00000a50| 70 20 69 6e 76 6f 6c 76 | 65 73 20 61 6e 6f 74 68 |p involv|es anoth|
|00000a60| 65 72 20 63 61 6c 6c 62 | 61 63 6b 20 70 72 6f 63 |er callb|ack proc|
|00000a70| 65 64 75 72 65 20 74 68 | 61 74 20 79 6f 75 0d 20 |edure th|at you. |
|00000a80| 20 20 20 20 20 20 20 6d | 75 73 74 20 69 6e 73 74 | m|ust inst|
|00000a90| 61 6c 6c 20 61 74 20 74 | 68 65 20 73 61 6d 65 20 |all at t|he same |
|00000aa0| 74 69 6d 65 20 61 73 20 | 79 6f 75 72 20 47 65 74 |time as |your Get|
|00000ab0| 53 65 74 49 74 65 6d 44 | 61 74 61 20 63 61 6c 6c |SetItemD|ata call|
|00000ac0| 62 61 63 6b 2c 0d 20 20 | 20 20 20 20 20 20 74 68 |back,. | th|
|00000ad0| 61 74 20 69 73 20 72 69 | 67 68 74 20 61 66 74 65 |at is ri|ght afte|
|00000ae0| 72 20 74 68 65 20 63 72 | 65 61 74 69 6f 6e 20 6f |r the cr|eation o|
|00000af0| 66 20 74 68 65 20 44 61 | 74 61 42 72 6f 77 73 65 |f the Da|taBrowse|
|00000b00| 72 20 63 6f 6e 74 72 6f | 6c 2e 0d 20 20 20 20 20 |r contro|l.. |
|00000b10| 20 20 20 54 68 69 73 20 | 6e 65 77 20 70 72 6f 63 | This |new proc|
|00000b20| 65 64 75 72 65 20 69 73 | 20 63 61 6c 6c 65 64 20 |edure is| called |
|00000b30| 49 74 65 6d 4e 6f 74 69 | 66 69 63 61 74 69 6f 6e |ItemNoti|fication|
|00000b40| 20 63 61 6c 6c 62 61 63 | 6b 2e 0d 20 20 20 20 20 | callbac|k.. |
|00000b50| 20 20 20 54 68 65 20 44 | 61 74 61 42 72 6f 77 73 | The D|ataBrows|
|00000b60| 65 72 20 77 69 6c 6c 20 | 63 61 6c 6c 20 74 68 61 |er will |call tha|
|00000b70| 74 20 72 6f 75 74 69 6e | 65 20 65 61 63 68 20 74 |t routin|e each t|
|00000b80| 69 6d 65 20 73 6f 6d 65 | 74 68 69 6e 67 0d 20 20 |ime some|thing. |
|00000b90| 20 20 20 20 20 20 68 61 | 70 70 65 6e 73 20 74 68 | ha|ppens th|
|00000ba0| 61 74 20 6d 69 67 68 74 | 20 69 6e 74 65 72 65 73 |at might| interes|
|00000bb0| 74 20 79 6f 75 2c 20 74 | 79 70 69 63 61 6c 6c 79 |t you, t|ypically|
|00000bc0| 20 77 68 65 6e 20 74 68 | 65 20 65 6e 64 2d 75 73 | when th|e end-us|
|00000bd0| 65 72 0d 20 20 20 20 20 | 20 20 20 69 6e 74 65 72 |er. | inter|
|00000be0| 61 63 74 73 20 77 69 74 | 68 20 74 68 65 20 69 74 |acts wit|h the it|
|00000bf0| 65 6d 73 20 69 6e 20 74 | 68 65 20 6c 69 73 74 2e |ems in t|he list.|
|00000c00| 0d 20 20 20 20 20 20 20 | 20 41 20 66 65 77 20 70 |. | A few p|
|00000c10| 61 72 61 6d 65 74 65 72 | 73 20 61 72 65 20 73 65 |arameter|s are se|
|00000c20| 6e 74 20 74 6f 20 74 68 | 65 20 72 6f 75 74 69 6e |nt to th|e routin|
|00000c30| 65 3a 20 74 68 65 20 62 | 72 6f 77 73 65 72 20 74 |e: the b|rowser t|
|00000c40| 68 61 74 0d 20 20 20 20 | 20 20 20 20 6e 6f 74 69 |hat. | noti|
|00000c50| 66 69 65 73 20 79 6f 75 | 72 20 70 72 6f 67 72 61 |fies you|r progra|
|00000c60| 6d 2c 20 74 68 65 20 69 | 74 65 6d 49 44 20 6f 66 |m, the i|temID of|
|00000c70| 20 74 68 65 20 63 6f 6e | 63 65 72 6e 65 64 20 69 | the con|cerned i|
|00000c80| 74 65 6d 20 61 6e 64 0d | 20 20 20 20 20 20 20 20 |tem and.| |
|00000c90| 61 20 76 61 6c 75 65 20 | 69 6e 64 69 63 61 74 69 |a value |indicati|
|00000ca0| 6e 67 20 77 68 69 63 68 | 20 65 76 65 6e 74 20 69 |ng which| event i|
|00000cb0| 73 20 72 65 70 6f 72 74 | 65 64 2e 20 54 68 65 20 |s report|ed. The |
|00000cc0| 6d 65 73 73 61 67 65 20 | 74 68 61 74 0d 20 20 20 |message |that. |
|00000cd0| 20 20 20 20 20 69 73 20 | 72 65 6c 65 76 61 6e 74 | is |relevant|
|00000ce0| 20 66 6f 72 20 6f 75 72 | 20 70 75 72 70 6f 73 65 | for our| purpose|
|00000cf0| 20 68 65 72 65 2c 20 69 | 73 3a 20 5f 6b 44 61 74 | here, i|s: _kDat|
|00000d00| 61 42 72 6f 77 73 65 72 | 43 6f 6e 74 61 69 6e 65 |aBrowser|Containe|
|00000d10| 72 4f 70 65 6e 65 64 0d | 20 20 20 20 20 20 20 20 |rOpened.| |
|00000d20| 77 68 69 63 68 20 69 6e | 64 69 63 61 74 65 73 20 |which in|dicates |
|00000d30| 74 68 61 74 20 74 68 65 | 20 65 6e 64 2d 75 73 65 |that the| end-use|
|00000d40| 72 20 68 61 73 20 70 6c | 61 79 65 64 20 77 69 74 |r has pl|ayed wit|
|00000d50| 68 20 74 68 65 20 64 69 | 73 63 6c 6f 73 75 72 65 |h the di|sclosure|
|00000d60| 0d 20 20 20 20 20 20 20 | 20 74 72 69 61 6e 67 6c |. | triangl|
|00000d70| 65 20 74 6f 20 75 6e 66 | 6f 6c 64 20 74 68 65 20 |e to unf|old the |
|00000d80| 63 6f 6e 74 61 69 6e 65 | 72 27 73 20 63 6f 6e 74 |containe|r's cont|
|00000d90| 65 6e 74 2e 20 46 69 6e | 61 6c 6c 79 2c 20 69 74 |ent. Fin|ally, it|
|00000da0| 0d 20 20 20 20 20 20 20 | 20 69 6e 64 69 63 61 74 |. | indicat|
|00000db0| 65 73 20 66 6f 72 20 79 | 6f 75 20 74 68 61 74 20 |es for y|ou that |
|00000dc0| 69 74 20 69 73 20 74 69 | 6d 65 20 74 6f 20 61 64 |it is ti|me to ad|
|00000dd0| 64 20 74 68 65 20 73 75 | 62 69 74 65 6d 73 20 77 |d the su|bitems w|
|00000de0| 69 74 68 0d 20 20 20 20 | 20 20 20 20 74 68 65 20 |ith. | the |
|00000df0| 6f 72 64 69 6e 61 72 79 | 20 41 64 64 44 61 74 61 |ordinary| AddData|
|00000e00| 42 72 6f 77 73 65 72 49 | 74 65 6d 73 20 66 75 6e |BrowserI|tems fun|
|00000e10| 63 74 69 6f 6e 20 6c 69 | 6b 65 20 73 6f 3a 0d 20 |ction li|ke so:. |
|00000e20| 20 20 20 20 20 20 20 20 | 20 0d 20 20 20 20 20 65 | | . e|
|00000e30| 72 72 20 3d 20 46 4e 20 | 41 64 64 44 61 74 61 42 |rr = FN |AddDataB|
|00000e40| 72 6f 77 73 65 72 49 74 | 65 6d 73 28 20 62 72 6f |rowserIt|ems( bro|
|00000e50| 77 73 65 72 2c 63 6f 6e | 74 61 69 6e 65 72 49 74 |wser,con|tainerIt|
|00000e60| 65 6d 49 44 2c 20 73 75 | 62 49 74 65 6d 43 6f 75 |emID, su|bItemCou|
|00000e70| 6e 74 2c 20 40 61 72 72 | 61 79 4f 66 53 75 62 49 |nt, @arr|ayOfSubI|
|00000e80| 74 65 6d 49 44 73 28 30 | 29 2c 20 5f 6b 44 61 74 |temIDs(0|), _kDat|
|00000e90| 61 42 72 6f 77 73 65 72 | 49 74 65 6d 4e 6f 50 72 |aBrowser|ItemNoPr|
|00000ea0| 6f 70 65 72 74 79 20 29 | 0d 0d 20 20 20 20 20 20 |operty )|.. |
|00000eb0| 20 20 49 74 20 69 73 20 | 74 6f 20 6e 6f 74 65 20 | It is |to note |
|00000ec0| 74 68 61 74 20 74 68 65 | 20 73 75 62 69 74 65 6d |that the| subitem|
|00000ed0| 73 20 61 72 65 20 64 65 | 73 74 72 6f 79 65 64 20 |s are de|stroyed |
|00000ee0| 65 76 65 72 79 20 74 69 | 6d 65 0d 20 20 20 20 20 |every ti|me. |
|00000ef0| 20 20 20 61 20 63 6f 6e | 74 61 69 6e 65 72 20 69 | a con|tainer i|
|00000f00| 74 65 6d 20 69 73 20 63 | 6c 6f 73 65 64 2e 0d 0d |tem is c|losed...|
|00000f10| 20 20 20 20 20 54 6f 20 | 65 78 70 6c 6f 72 65 20 | To |explore |
|00000f20| 66 75 72 74 68 65 72 20 | 74 68 65 20 44 61 74 61 |further |the Data|
|00000f30| 42 72 6f 77 73 65 72 20 | 66 65 61 74 75 72 65 73 |Browser |features|
|00000f40| 20 28 6c 69 6b 65 20 64 | 72 61 67 20 26 20 64 72 | (like d|rag & dr|
|00000f50| 6f 70 2c 0d 20 20 20 20 | 20 63 6f 6e 74 65 78 74 |op,. | context|
|00000f60| 75 61 6c 20 6d 65 6e 75 | 2c 20 68 65 6c 70 20 74 |ual menu|, help t|
|00000f70| 61 67 73 2c 20 65 74 63 | 2e 29 20 73 65 65 20 74 |ags, etc|.) see t|
|00000f80| 68 65 20 64 65 6d 6f 20 | 42 61 73 69 63 20 44 61 |he demo |Basic Da|
|00000f90| 74 61 42 72 6f 77 73 65 | 72 2e 0d 20 20 20 20 20 |taBrowse|r.. |
|00000fa0| 0d 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 6c | | Al|
|00000fe0| 61 69 6e 20 20 20 4d 61 | 79 20 32 30 30 33 0d 2a |ain Ma|y 2003.*|
|00000ff0| 2f 0d 27 7e 27 36 0d 0d | 49 6e 63 6c 75 64 65 20 |/.'~'6..|Include |
|00001000| 22 54 6c 62 78 20 43 6f | 6e 74 72 6f 6c 44 65 66 |"Tlbx Co|ntrolDef|
|00001010| 69 6e 69 74 69 6f 6e 73 | 2e 49 6e 63 6c 22 0d 0d |initions|.Incl"..|
|00001020| 49 6e 63 6c 75 64 65 20 | 22 55 74 69 6c 5f 46 69 |Include |"Util_Fi|
|00001030| 6c 65 73 2e 69 6e 63 6c | 22 0d 49 6e 63 6c 75 64 |les.incl|".Includ|
|00001040| 65 20 22 54 6c 62 78 20 | 49 63 6f 6e 73 2e 49 6e |e "Tlbx |Icons.In|
|00001050| 63 6c 22 0d 0d 27 7e 12 | 54 6f 6f 6c 62 6f 78 20 |cl"..'~.|Toolbox |
|00001060| 41 64 64 65 64 20 44 65 | 63 6c 61 72 61 74 69 6f |Added De|claratio|
|00001070| 6e 73 0d 0d 5f 6b 57 69 | 6e 64 6f 77 49 6e 57 69 |ns.._kWi|ndowInWi|
|00001080| 6e 64 6f 77 4d 65 6e 75 | 41 74 74 72 69 62 75 74 |ndowMenu|Attribut|
|00001090| 65 20 20 3d 20 28 31 20 | 3c 3c 20 32 37 20 29 0d |e = (1 |<< 27 ).|
|000010a0| 5f 6b 43 6f 6e 74 72 6f | 6c 44 61 74 61 42 72 6f |_kContro|lDataBro|
|000010b0| 77 73 65 72 50 61 72 74 | 20 20 20 20 20 20 20 3d |wserPart| =|
|000010c0| 20 32 34 0d 0d 54 6f 6f | 6c 62 6f 78 20 46 6e 20 | 24..Too|lbox Fn |
|000010d0| 53 65 74 41 75 74 6f 6d | 61 74 69 63 43 6f 6e 74 |SetAutom|aticCont|
|000010e0| 72 6f 6c 44 72 61 67 54 | 72 61 63 6b 69 6e 67 45 |rolDragT|rackingE|
|000010f0| 6e 61 62 6c 65 64 46 6f | 72 57 69 6e 64 6f 77 28 |nabledFo|rWindow(|
|00001100| 20 57 69 6e 64 6f 77 52 | 65 66 20 69 6e 57 69 6e | WindowR|ef inWin|
|00001110| 64 6f 77 2c 20 42 6f 6f | 6c 65 61 6e 20 69 6e 54 |dow, Boo|lean inT|
|00001120| 72 61 63 6b 73 29 20 3d | 20 4f 53 53 74 61 74 75 |racks) =| OSStatu|
|00001130| 73 0d 54 6f 6f 6c 62 6f | 78 20 46 6e 20 43 46 41 |s.Toolbo|x Fn CFA|
|00001140| 6c 6c 6f 63 61 74 6f 72 | 47 65 74 44 65 66 61 75 |llocator|GetDefau|
|00001150| 6c 74 20 3d 20 43 46 41 | 6c 6c 6f 63 61 74 6f 72 |lt = CFA|llocator|
|00001160| 52 65 66 0d 0d 27 7e 12 | 41 70 70 6c 69 63 61 74 |Ref..'~.|Applicat|
|00001170| 69 6f 6e 20 43 6f 6e 73 | 74 61 6e 74 73 0d 0d 42 |ion Cons|tants..B|
|00001180| 65 67 69 6e 20 45 6e 75 | 6d 0d 5f 6d 61 69 6e 57 |egin Enu|m._mainW|
|00001190| 6e 64 20 20 20 20 20 20 | 20 20 20 3d 20 31 0d 0d |nd | = 1..|
|000011a0| 5f 6d 79 43 72 65 61 74 | 6f 72 20 20 20 20 20 20 |_myCreat|or |
|000011b0| 20 3d 20 5f 22 44 45 4d | 4f 22 0d 5f 6d 79 44 61 | = _"DEM|O"._myDa|
|000011c0| 74 61 42 72 6f 77 73 65 | 72 20 20 20 3d 20 5f 22 |taBrowse|r = _"|
|000011d0| 42 72 73 72 22 0d 0d 5f | 6e 61 6d 65 43 6f 6c 75 |Brsr".._|nameColu|
|000011e0| 6d 6e 49 44 20 20 20 20 | 3d 20 5f 22 6e 61 6d 65 |mnID |= _"name|
|000011f0| 22 0d 5f 74 79 70 65 43 | 6f 6c 75 6d 6e 49 44 20 |"._typeC|olumnID |
|00001200| 20 20 20 3d 20 5f 22 74 | 79 70 65 22 0d 5f 63 72 | = _"t|ype"._cr|
|00001210| 65 61 74 6f 72 43 6f 6c | 75 6d 6e 49 44 20 3d 20 |eatorCol|umnID = |
|00001220| 5f 22 63 72 65 61 22 0d | 0d 5f 73 63 72 6f 6c 6c |_"crea".|._scroll|
|00001230| 42 61 72 57 69 64 74 68 | 20 20 3d 20 31 36 0d 45 |BarWidth| = 16.E|
|00001240| 6e 64 20 45 6e 75 6d 0d | 0d 5f 6d 65 6e 75 46 69 |nd Enum.|._menuFi|
|00001250| 6c 65 20 3d 20 31 0d 42 | 65 67 69 6e 20 45 6e 75 |le = 1.B|egin Enu|
|00001260| 6d 20 31 0d 5f 69 74 65 | 6d 4f 70 65 6e 46 6f 6c |m 1._ite|mOpenFol|
|00001270| 64 65 72 0d 5f 0d 5f 69 | 74 65 6d 51 75 69 74 0d |der._._i|temQuit.|
|00001280| 45 6e 64 20 45 6e 75 6d | 0d 0d 27 7e 12 41 70 70 |End Enum|..'~.App|
|00001290| 6c 69 63 61 74 69 6f 6e | 20 47 6c 6f 62 61 6c 73 |lication| Globals|
|000012a0| 0d 0d 42 65 67 69 6e 20 | 52 65 63 6f 72 64 20 49 |..Begin |Record I|
|000012b0| 74 65 6d 52 65 63 6f 72 | 64 0d 44 69 6d 20 69 74 |temRecor|d.Dim it|
|000012c0| 65 6d 49 44 20 20 20 41 | 73 20 4c 6f 6e 67 0d 44 |emID A|s Long.D|
|000012d0| 69 6d 20 70 61 72 65 6e | 74 20 20 20 41 73 20 4c |im paren|t As L|
|000012e0| 6f 6e 67 0d 44 69 6d 20 | 73 70 65 63 20 20 20 20 |ong.Dim |spec |
|000012f0| 20 41 73 20 46 53 53 70 | 65 63 20 20 20 0d 44 69 | As FSSp|ec .Di|
|00001300| 6d 20 74 79 70 65 20 20 | 20 20 20 41 73 20 4f 53 |m type | As OS|
|00001310| 54 79 70 65 0d 44 69 6d | 20 63 72 65 61 74 6f 72 |Type.Dim| creator|
|00001320| 20 20 41 73 20 4f 53 54 | 79 70 65 0d 44 69 6d 20 | As OST|ype.Dim |
|00001330| 64 61 74 61 4c 65 6e 20 | 20 41 73 20 4c 6f 6e 67 |dataLen | As Long|
|00001340| 0d 44 69 6d 20 72 73 72 | 63 4c 65 6e 20 20 41 73 |.Dim rsr|cLen As|
|00001350| 20 4c 6f 6e 67 0d 44 69 | 6d 20 63 44 61 74 65 20 | Long.Di|m cDate |
|00001360| 20 20 20 41 73 20 4c 6f | 6e 67 0d 44 69 6d 20 6d | As Lo|ng.Dim m|
|00001370| 44 61 74 65 20 20 20 20 | 41 73 20 4c 6f 6e 67 0d |Date |As Long.|
|00001380| 44 69 6d 20 66 6c 61 67 | 73 20 20 20 20 41 73 20 |Dim flag|s As |
|00001390| 53 68 6f 72 74 0d 44 69 | 6d 20 61 74 74 72 69 62 |Short.Di|m attrib|
|000013a0| 20 20 20 41 73 20 53 68 | 6f 72 74 0d 45 6e 64 20 | As Sh|ort.End |
|000013b0| 52 65 63 6f 72 64 0d 0d | 0d 42 65 67 69 6e 20 47 |Record..|.Begin G|
|000013c0| 6c 6f 62 61 6c 73 0d 0d | 44 69 6d 20 41 73 20 4c |lobals..|Dim As L|
|000013d0| 6f 6e 67 20 20 20 20 20 | 20 20 67 46 69 6c 65 49 |ong | gFileI|
|000013e0| 6e 64 65 78 0d 44 69 6d | 20 44 79 6e 61 6d 69 63 |ndex.Dim| Dynamic|
|000013f0| 20 20 20 20 20 20 20 67 | 46 69 6c 65 73 28 5f 6d | g|Files(_m|
|00001400| 61 78 49 6e 74 29 20 41 | 73 20 49 74 65 6d 52 65 |axInt) A|s ItemRe|
|00001410| 63 6f 72 64 0d 0d 45 6e | 64 20 47 6c 6f 62 61 6c |cord..En|d Global|
|00001420| 73 0d 0d 0d 27 7e 27 3b | 0d 27 7e 12 2d 0d 27 7e |s...'~';|.'~.-.'~|
|00001430| 12 55 74 69 6c 69 74 79 | 20 46 75 6e 63 74 69 6f |.Utility| Functio|
|00001440| 6e 73 0d 2f 2a 0d 20 20 | 20 20 20 48 61 6e 64 79 |ns./*. | Handy|
|00001450| 20 66 75 6e 63 74 69 6f | 6e 20 74 68 61 74 20 72 | functio|n that r|
|00001460| 65 74 75 72 6e 73 20 74 | 68 65 20 6d 61 78 69 6d |eturns t|he maxim|
|00001470| 75 6d 20 69 6e 64 65 78 | 20 69 6e 20 61 20 64 79 |um index| in a dy|
|00001480| 6e 61 6d 69 63 20 61 72 | 72 61 79 0d 2a 2f 0d 44 |namic ar|ray.*/.D|
|00001490| 65 66 20 46 6e 20 55 42 | 6f 75 6e 64 28 40 50 20 |ef Fn UB|ound(@P |
|000014a0| 41 73 20 70 74 72 29 20 | 3d 20 5b 50 20 2b 20 5f |As ptr) |= [P + _|
|000014b0| 41 75 74 6f 58 52 45 46 | 43 75 72 72 5d 20 2d 20 |AutoXREF|Curr] - |
|000014c0| 31 0d 0d 27 7e 27 31 0d | 2f 2a 0d 20 20 20 20 20 |1..'~'1.|/*. |
|000014d0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 72 65 |This fun|ction re|
|000014e0| 74 75 72 6e 73 20 74 68 | 65 20 69 63 6f 6e 52 65 |turns th|e iconRe|
|000014f0| 66 20 66 6f 72 20 61 20 | 67 69 76 65 6e 20 66 69 |f for a |given fi|
|00001500| 6c 65 0d 2a 2f 0d 43 6c | 65 61 72 20 4c 6f 63 61 |le.*/.Cl|ear Loca|
|00001510| 6c 20 4d 6f 64 65 0d 4c | 6f 63 61 6c 20 46 6e 20 |l Mode.L|ocal Fn |
|00001520| 47 65 74 46 69 6c 65 49 | 63 6f 6e 28 20 66 53 70 |GetFileI|con( fSp|
|00001530| 65 63 20 41 73 20 2e 46 | 53 53 70 65 63 2c 20 74 |ec As .F|SSpec, t|
|00001540| 79 70 65 20 41 73 20 4f | 53 54 79 70 65 20 29 0d |ype As O|SType ).|
|00001550| 27 7e 27 39 0d 44 69 6d | 20 40 20 69 63 6f 6e 48 |'~'9.Dim| @ iconH|
|00001560| 20 41 73 20 49 63 6f 6e | 52 65 66 0d 44 69 6d 20 | As Icon|Ref.Dim |
|00001570| 40 20 6c 61 62 65 6c 20 | 41 73 20 49 6e 74 0d 44 |@ label |As Int.D|
|00001580| 69 6d 20 20 20 65 72 72 | 20 20 20 41 73 20 4f 53 |im err| As OS|
|00001590| 45 72 72 0d 0d 49 66 20 | 66 53 70 65 63 20 54 68 |Err..If |fSpec Th|
|000015a0| 65 6e 20 65 72 72 20 3d | 20 46 6e 20 47 65 74 49 |en err =| Fn GetI|
|000015b0| 63 6f 6e 52 65 66 46 72 | 6f 6d 46 69 6c 65 28 20 |conRefFr|omFile( |
|000015c0| 23 66 53 70 65 63 2c 20 | 69 63 6f 6e 48 2c 20 6c |#fSpec, |iconH, l|
|000015d0| 61 62 65 6c 20 29 0d 4c | 6f 6e 67 20 49 66 20 65 |abel ).L|ong If e|
|000015e0| 72 72 20 21 3d 20 5f 6e | 6f 45 72 72 20 4f 72 20 |rr != _n|oErr Or |
|000015f0| 69 63 6f 6e 48 20 3d 20 | 5f 6e 69 6c 0d 53 65 6c |iconH = |_nil.Sel|
|00001600| 65 63 74 20 74 79 70 65 | 0d 43 61 73 65 20 5f 22 |ect type|.Case _"|
|00001610| 41 50 50 4c 22 20 3a 20 | 74 79 70 65 20 3d 20 5f |APPL" : |type = _|
|00001620| 6b 47 65 6e 65 72 69 63 | 41 70 70 6c 69 63 61 74 |kGeneric|Applicat|
|00001630| 69 6f 6e 49 63 6f 6e 0d | 43 61 73 65 20 5f 22 66 |ionIcon.|Case _"f|
|00001640| 6c 64 72 22 20 3a 20 74 | 79 70 65 20 3d 20 5f 6b |ldr" : t|ype = _k|
|00001650| 47 65 6e 65 72 69 63 46 | 6f 6c 64 65 72 49 63 6f |GenericF|olderIco|
|00001660| 6e 0d 43 61 73 65 20 65 | 6c 73 65 20 20 20 20 3a |n.Case e|lse :|
|00001670| 20 74 79 70 65 20 3d 20 | 5f 6b 47 65 6e 65 72 69 | type = |_kGeneri|
|00001680| 63 44 6f 63 75 6d 65 6e | 74 49 63 6f 6e 0d 45 6e |cDocumen|tIcon.En|
|00001690| 64 20 53 65 6c 65 63 74 | 0d 65 72 72 20 3d 20 46 |d Select|.err = F|
|000016a0| 6e 20 47 65 74 49 63 6f | 6e 52 65 66 28 20 5f 6b |n GetIco|nRef( _k|
|000016b0| 4f 6e 53 79 73 74 65 6d | 44 69 73 6b 2c 20 5f 6b |OnSystem|Disk, _k|
|000016c0| 53 79 73 74 65 6d 49 63 | 6f 6e 73 43 72 65 61 74 |SystemIc|onsCreat|
|000016d0| 6f 72 2c 20 74 79 70 65 | 2c 20 69 63 6f 6e 48 20 |or, type|, iconH |
|000016e0| 29 0d 45 6e 64 20 49 66 | 0d 0d 45 6e 64 20 46 6e |).End If|..End Fn|
|000016f0| 20 3d 20 69 63 6f 6e 48 | 0d 0d 0d 2f 2a 0d 20 20 | = iconH|.../*. |
|00001700| 20 20 20 47 65 74 46 6f | 6c 64 65 72 44 69 72 49 | GetFo|lderDirI|
|00001710| 44 20 72 65 74 75 72 6e | 73 20 74 68 65 20 64 69 |D return|s the di|
|00001720| 72 49 44 20 6f 66 20 61 | 20 66 6f 6c 64 65 72 20 |rID of a| folder |
|00001730| 67 69 76 65 6e 20 69 74 | 73 20 46 53 53 70 65 63 |given it|s FSSpec|
|00001740| 0d 2a 2f 0d 43 6c 65 61 | 72 20 4c 6f 63 61 6c 20 |.*/.Clea|r Local |
|00001750| 4d 6f 64 65 0d 4c 6f 63 | 61 6c 20 46 6e 20 47 65 |Mode.Loc|al Fn Ge|
|00001760| 74 46 6f 6c 64 65 72 44 | 69 72 49 44 28 20 66 6c |tFolderD|irID( fl|
|00001770| 64 53 70 65 63 20 41 73 | 20 2e 46 53 53 70 65 63 |dSpec As| .FSSpec|
|00001780| 2c 20 63 61 6e 43 72 65 | 61 74 65 46 6f 6c 64 65 |, canCre|ateFolde|
|00001790| 72 20 41 73 20 42 6f 6f | 6c 65 61 6e 20 29 0d 27 |r As Boo|lean ).'|
|000017a0| 7e 27 39 0d 44 69 6d 20 | 40 20 64 69 72 49 44 20 |~'9.Dim |@ dirID |
|000017b0| 41 73 20 4c 6f 6e 67 0d | 44 69 6d 20 20 20 66 6c |As Long.|Dim fl|
|000017c0| 64 20 20 20 41 73 20 46 | 53 53 70 65 63 0d 44 69 |d As F|SSpec.Di|
|000017d0| 6d 20 20 20 70 62 2e 31 | 30 38 20 2f 2f 43 49 6e |m pb.1|08 //CIn|
|000017e0| 66 6f 50 42 52 65 63 0d | 0d 53 65 6c 65 63 74 20 |foPBRec.|.Select |
|000017f0| 46 6e 20 46 53 4d 61 6b | 65 46 53 53 70 65 63 28 |Fn FSMak|eFSSpec(|
|00001800| 20 66 6c 64 53 70 65 63 | 2e 76 52 65 66 4e 75 6d | fldSpec|.vRefNum|
|00001810| 2c 20 66 6c 64 53 70 65 | 63 2e 70 61 72 49 44 2c |, fldSpe|c.parID,|
|00001820| 20 66 6c 64 53 70 65 63 | 2e 6e 61 6d 65 2c 20 66 | fldSpec|.name, f|
|00001830| 6c 64 20 29 0d 43 61 73 | 65 20 5f 6e 6f 45 72 72 |ld ).Cas|e _noErr|
|00001840| 0d 70 62 2e 69 6f 4e 61 | 6d 65 50 74 72 26 20 20 |.pb.ioNa|mePtr& |
|00001850| 20 3d 20 40 66 6c 64 53 | 70 65 63 2e 6e 61 6d 65 | = @fldS|pec.name|
|00001860| 0d 70 62 2e 69 6f 56 52 | 65 66 4e 75 6d 25 20 20 |.pb.ioVR|efNum% |
|00001870| 20 3d 20 66 6c 64 53 70 | 65 63 2e 76 52 65 66 4e | = fldSp|ec.vRefN|
|00001880| 75 6d 0d 70 62 2e 69 6f | 44 69 72 49 44 26 20 20 |um.pb.io|DirID& |
|00001890| 20 20 20 3d 20 66 6c 64 | 53 70 65 63 2e 70 61 72 | = fld|Spec.par|
|000018a0| 49 44 0d 49 66 20 46 6e | 20 50 42 47 65 74 43 61 |ID.If Fn| PBGetCa|
|000018b0| 74 49 6e 66 6f 53 79 6e | 63 28 20 70 62 20 29 20 |tInfoSyn|c( pb ) |
|000018c0| 74 68 65 6e 20 45 78 69 | 74 20 46 6e 0d 64 69 72 |then Exi|t Fn.dir|
|000018d0| 49 44 20 3d 20 70 62 2e | 69 6f 44 69 72 49 44 26 |ID = pb.|ioDirID&|
|000018e0| 0d 0d 43 61 73 65 20 5f | 66 6e 66 45 72 72 0d 4c |..Case _|fnfErr.L|
|000018f0| 6f 6e 67 20 49 66 20 63 | 61 6e 43 72 65 61 74 65 |ong If c|anCreate|
|00001900| 46 6f 6c 64 65 72 20 21 | 3d 20 5f 6b 44 6f 6e 74 |Folder !|= _kDont|
|00001910| 43 72 65 61 74 65 46 6f | 6c 64 65 72 0d 4c 6f 6e |CreateFo|lder.Lon|
|00001920| 67 20 49 66 20 46 6e 20 | 46 53 70 44 69 72 43 72 |g If Fn |FSpDirCr|
|00001930| 65 61 74 65 28 20 66 6c | 64 2c 20 5f 73 6d 43 75 |eate( fl|d, _smCu|
|00001940| 72 72 65 6e 74 53 63 72 | 69 70 74 2c 20 64 69 72 |rrentScr|ipt, dir|
|00001950| 49 44 20 29 20 21 3d 20 | 5f 6e 6f 45 72 72 0d 45 |ID ) != |_noErr.E|
|00001960| 78 69 74 20 46 6e 0d 45 | 6e 64 20 49 66 0d 45 6e |xit Fn.E|nd If.En|
|00001970| 64 20 49 66 0d 45 6e 64 | 20 53 65 6c 65 63 74 0d |d If.End| Select.|
|00001980| 0d 45 6e 64 20 46 6e 20 | 3d 20 64 69 72 49 44 0d |.End Fn |= dirID.|
|00001990| 0d 0d 27 7e 12 2d 2d 0d | 27 7e 12 41 70 70 6c 69 |..'~.--.|'~.Appli|
|000019a0| 63 61 74 69 6f 6e 20 46 | 75 6e 63 74 69 6f 6e 73 |cation F|unctions|
|000019b0| 0d 0d 27 7e 27 31 0d 2f | 2a 0d 20 20 20 20 20 54 |..'~'1./|*. T|
|000019c0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |his func|tion ret|
|000019d0| 72 69 65 76 65 73 20 74 | 68 65 20 62 72 6f 77 73 |rieves t|he brows|
|000019e0| 65 72 20 72 65 66 65 72 | 65 6e 63 65 20 66 72 6f |er refer|ence fro|
|000019f0| 6d 20 74 68 65 20 77 69 | 6e 64 6f 77 0d 20 20 20 |m the wi|ndow. |
|00001a00| 20 20 69 6e 20 77 68 69 | 63 68 20 69 74 20 69 73 | in whi|ch it is|
|00001a10| 20 6c 6f 63 61 74 65 64 | 2e 0d 20 20 20 20 20 54 | located|.. T|
|00001a20| 68 65 20 62 72 6f 77 73 | 65 72 20 72 65 66 65 72 |he brows|er refer|
|00001a30| 65 6e 63 65 20 68 61 73 | 20 62 65 65 6e 20 73 61 |ence has| been sa|
|00001a40| 76 65 64 20 68 61 73 20 | 61 20 77 69 6e 64 6f 77 |ved has |a window|
|00001a50| 20 70 72 6f 70 65 72 74 | 79 2e 0d 20 20 20 20 20 | propert|y.. |
|00001a60| 59 6f 75 20 63 61 6e 20 | 73 74 6f 72 65 20 70 72 |You can |store pr|
|00001a70| 69 76 61 74 65 20 70 72 | 6f 70 65 72 74 69 65 73 |ivate pr|operties|
|00001a80| 20 77 69 74 68 20 75 73 | 65 72 20 69 6e 74 65 72 | with us|er inter|
|00001a90| 66 61 63 65 20 65 6c 65 | 6d 65 6e 74 73 0d 20 20 |face ele|ments. |
|00001aa0| 20 20 20 61 73 20 79 6f | 75 72 20 6c 69 6b 69 6e | as yo|ur likin|
|00001ab0| 67 20 61 6e 64 20 72 65 | 74 72 69 65 76 65 20 74 |g and re|trieve t|
|00001ac0| 68 65 6d 20 77 68 65 6e | 20 79 6f 75 20 6e 65 65 |hem when| you nee|
|00001ad0| 64 20 74 68 65 6d 2e 0d | 2a 2f 0d 43 6c 65 61 72 |d them..|*/.Clear|
|00001ae0| 20 4c 6f 63 61 6c 0d 4c | 6f 63 61 6c 20 46 6e 20 | Local.L|ocal Fn |
|00001af0| 47 65 74 44 61 74 61 42 | 72 6f 77 73 65 72 46 72 |GetDataB|rowserFr|
|00001b00| 6f 6d 57 69 6e 64 6f 77 | 28 20 77 52 65 66 20 41 |omWindow|( wRef A|
|00001b10| 73 20 57 69 6e 64 6f 77 | 52 65 66 20 29 0d 27 7e |s Window|Ref ).'~|
|00001b20| 27 39 0d 0d 44 69 6d 20 | 41 73 20 4f 53 53 74 61 |'9..Dim |As OSSta|
|00001b30| 74 75 73 20 20 20 20 20 | 65 72 72 0d 44 69 6d 20 |tus |err.Dim |
|00001b40| 41 73 20 43 6f 6e 74 72 | 6f 6c 52 65 66 20 40 20 |As Contr|olRef @ |
|00001b50| 62 72 6f 77 73 65 72 0d | 0d 4c 6f 6e 67 20 49 66 |browser.|.Long If|
|00001b60| 20 77 52 65 66 0d 65 72 | 72 20 3d 20 46 6e 20 47 | wRef.er|r = Fn G|
|00001b70| 65 74 57 69 6e 64 6f 77 | 50 72 6f 70 65 72 74 79 |etWindow|Property|
|00001b80| 28 20 77 52 65 66 2c 20 | 5f 6d 79 43 72 65 61 74 |( wRef, |_myCreat|
|00001b90| 6f 72 2c 20 5f 6d 79 44 | 61 74 61 42 72 6f 77 73 |or, _myD|ataBrows|
|00001ba0| 65 72 2c 20 53 69 7a 65 | 6f 66 28 62 72 6f 77 73 |er, Size|of(brows|
|00001bb0| 65 72 29 2c 20 23 5f 6e | 69 6c 2c 20 62 72 6f 77 |er), #_n|il, brow|
|00001bc0| 73 65 72 20 29 0d 45 6e | 64 20 49 66 0d 0d 45 6e |ser ).En|d If..En|
|00001bd0| 64 20 46 6e 20 3d 20 62 | 72 6f 77 73 65 72 0d 0d |d Fn = b|rowser..|
|00001be0| 0d 0d 27 7e 27 3b 0d 2f | 2a 0d 20 20 20 20 20 54 |..'~';./|*. T|
|00001bf0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 77 69 6c |his func|tion wil|
|00001c00| 6c 20 72 65 73 69 7a 65 | 20 74 68 65 20 44 61 74 |l resize| the Dat|
|00001c10| 61 42 72 6f 77 73 65 72 | 20 77 68 65 6e 20 6e 65 |aBrowser| when ne|
|00001c20| 65 64 65 64 2c 0d 20 20 | 20 20 20 66 6f 72 20 65 |eded,. | for e|
|00001c30| 78 61 6d 70 6c 65 2c 20 | 77 68 65 6e 20 74 68 65 |xample, |when the|
|00001c40| 20 77 69 6e 64 6f 77 20 | 69 73 20 72 65 73 69 7a | window |is resiz|
|00001c50| 65 64 2e 0d 2a 2f 0d 43 | 6c 65 61 72 20 4c 6f 63 |ed..*/.C|lear Loc|
|00001c60| 61 6c 20 46 6e 20 52 65 | 66 72 65 73 68 44 61 74 |al Fn Re|freshDat|
|00001c70| 61 42 72 6f 77 73 65 72 | 28 20 77 4e 75 6d 20 41 |aBrowser|( wNum A|
|00001c80| 73 20 4c 6f 6e 67 20 29 | 0d 27 7e 27 39 0d 44 69 |s Long )|.'~'9.Di|
|00001c90| 6d 20 41 73 20 52 65 63 | 74 20 20 20 20 20 20 20 |m As Rec|t |
|00001ca0| 20 20 72 0d 44 69 6d 20 | 41 73 20 57 69 6e 64 6f | r.Dim |As Windo|
|00001cb0| 77 52 65 66 20 20 40 20 | 77 52 65 66 0d 44 69 6d |wRef @ |wRef.Dim|
|00001cc0| 20 41 73 20 43 6f 6e 74 | 72 6f 6c 52 65 66 20 20 | As Cont|rolRef |
|00001cd0| 20 62 72 6f 77 73 65 72 | 0d 0d 47 65 74 20 57 69 | browser|..Get Wi|
|00001ce0| 6e 64 6f 77 20 77 4e 75 | 6d 2c 20 77 52 65 66 0d |ndow wNu|m, wRef.|
|00001cf0| 4c 6f 6e 67 20 49 66 20 | 77 52 65 66 0d 4c 6f 6e |Long If |wRef.Lon|
|00001d00| 67 20 49 66 20 46 6e 20 | 47 65 74 57 69 6e 64 6f |g If Fn |GetWindo|
|00001d10| 77 42 6f 75 6e 64 73 28 | 20 77 52 65 66 2c 20 5f |wBounds(| wRef, _|
|00001d20| 6b 57 69 6e 64 6f 77 43 | 6f 6e 74 65 6e 74 52 67 |kWindowC|ontentRg|
|00001d30| 6e 2c 20 72 20 29 20 3d | 20 5f 6e 6f 45 72 72 0d |n, r ) =| _noErr.|
|00001d40| 62 72 6f 77 73 65 72 20 | 3d 20 46 6e 20 47 65 74 |browser |= Fn Get|
|00001d50| 44 61 74 61 42 72 6f 77 | 73 65 72 46 72 6f 6d 57 |DataBrow|serFromW|
|00001d60| 69 6e 64 6f 77 28 20 77 | 52 65 66 20 29 0d 4c 6f |indow( w|Ref ).Lo|
|00001d70| 6e 67 20 49 66 20 62 72 | 6f 77 73 65 72 0d 53 69 |ng If br|owser.Si|
|00001d80| 7a 65 43 6f 6e 74 72 6f | 6c 28 20 62 72 6f 77 73 |zeContro|l( brows|
|00001d90| 65 72 2c 20 72 2e 72 69 | 67 68 74 20 2d 20 72 2e |er, r.ri|ght - r.|
|00001da0| 6c 65 66 74 2c 20 72 2e | 62 6f 74 74 6f 6d 20 2d |left, r.|bottom -|
|00001db0| 20 72 2e 74 6f 70 29 0d | 45 6e 64 20 49 66 0d 45 | r.top).|End If.E|
|00001dc0| 6e 64 20 49 66 0d 45 6e | 64 20 49 66 0d 0d 45 6e |nd If.En|d If..En|
|00001dd0| 64 20 46 6e 0d 0d 0d 2f | 2a 0d 20 20 20 20 20 54 |d Fn.../|*. T|
|00001de0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 65 6d 70 |his func|tion emp|
|00001df0| 74 69 65 73 20 74 68 65 | 20 44 61 74 61 42 72 6f |ties the| DataBro|
|00001e00| 77 73 65 72 0d 2a 2f 0d | 43 6c 65 61 72 20 4c 6f |wser.*/.|Clear Lo|
|00001e10| 63 61 6c 0d 4c 6f 63 61 | 6c 20 46 6e 20 43 6c 65 |cal.Loca|l Fn Cle|
|00001e20| 61 72 44 61 74 61 42 72 | 6f 77 73 65 72 0d 27 7e |arDataBr|owser.'~|
|00001e30| 27 39 0d 0d 44 69 6d 20 | 41 73 20 43 6f 6e 74 72 |'9..Dim |As Contr|
|00001e40| 6f 6c 52 65 66 20 20 20 | 62 72 6f 77 73 65 72 0d |olRef |browser.|
|00001e50| 44 69 6d 20 41 73 20 48 | 61 6e 64 6c 65 20 20 20 |Dim As H|andle |
|00001e60| 20 20 20 20 61 72 72 61 | 79 4f 66 49 74 65 6d 49 | arra|yOfItemI|
|00001e70| 44 0d 44 69 6d 20 41 73 | 20 4f 53 53 74 61 74 75 |D.Dim As| OSStatu|
|00001e80| 73 20 20 20 20 20 65 72 | 72 0d 0d 62 72 6f 77 73 |s er|r..brows|
|00001e90| 65 72 20 3d 20 46 6e 20 | 47 65 74 44 61 74 61 42 |er = Fn |GetDataB|
|00001ea0| 72 6f 77 73 65 72 46 72 | 6f 6d 57 69 6e 64 6f 77 |rowserFr|omWindow|
|00001eb0| 28 20 57 69 6e 64 6f 77 | 28 20 5f 77 6e 64 52 65 |( Window|( _wndRe|
|00001ec0| 66 20 29 20 29 0d 49 66 | 20 62 72 6f 77 73 65 72 |f ) ).If| browser|
|00001ed0| 20 3d 3d 20 5f 6e 69 6c | 20 74 68 65 6e 20 45 78 | == _nil| then Ex|
|00001ee0| 69 74 20 46 6e 0d 2f 2a | 0d 20 20 20 20 20 42 65 |it Fn./*|. Be|
|00001ef0| 6c 6f 77 20 69 73 20 61 | 6e 6f 74 68 65 72 20 77 |low is a|nother w|
|00001f00| 61 79 20 74 6f 20 67 65 | 74 20 61 6c 6c 20 74 68 |ay to ge|t all th|
|00001f10| 65 20 69 74 65 6d 49 44 | 73 20 72 65 6d 6f 76 65 |e itemID|s remove|
|00001f20| 64 20 66 72 6f 6d 20 74 | 68 65 0d 20 20 20 20 20 |d from t|he. |
|00001f30| 44 61 74 61 42 72 6f 77 | 73 65 72 20 6c 69 73 74 |DataBrow|ser list|
|00001f40| 2e 0d 20 20 20 20 20 57 | 65 20 61 73 6b 20 66 69 |.. W|e ask fi|
|00001f50| 72 73 74 20 74 68 65 20 | 44 61 74 61 42 72 6f 77 |rst the |DataBrow|
|00001f60| 73 65 72 20 74 6f 20 70 | 72 6f 76 69 64 65 20 61 |ser to p|rovide a|
|00001f70| 20 66 6c 61 74 74 65 6e | 20 6c 69 73 74 20 6f 66 | flatten| list of|
|00001f80| 20 61 6c 6c 20 74 68 65 | 20 69 74 65 6d 49 44 73 | all the| itemIDs|
|00001f90| 0d 20 20 20 20 20 69 74 | 20 63 6f 6e 74 61 69 6e |. it| contain|
|00001fa0| 73 2e 20 49 74 20 77 69 | 6c 6c 20 72 65 74 75 72 |s. It wi|ll retur|
|00001fb0| 6e 20 74 68 61 74 20 6c | 69 73 74 20 69 6e 20 61 |n that l|ist in a|
|00001fc0| 6e 20 68 61 6e 64 6c 65 | 20 74 68 61 74 20 77 65 |n handle| that we|
|00001fd0| 20 6d 75 73 74 0d 20 20 | 20 20 20 73 75 70 70 6c | must. | suppl|
|00001fe0| 79 20 28 61 73 20 61 6e | 20 65 6d 70 74 79 20 68 |y (as an| empty h|
|00001ff0| 61 6e 64 6c 65 29 2e 20 | 54 68 65 20 70 61 72 6d |andle). |The parm|
|00002000| 65 74 65 72 20 73 65 74 | 20 74 6f 20 74 72 75 65 |eter set| to true|
|00002010| 20 69 6e 20 74 68 65 0d | 20 20 20 20 20 47 65 74 | in the.| Get|
|00002020| 44 61 74 61 42 72 6f 77 | 73 65 72 49 74 65 6d 73 |DataBrow|serItems|
|00002030| 20 66 75 6e 63 74 69 6f | 6e 20 6d 65 61 6e 73 20 | functio|n means |
|00002040| 61 20 72 65 63 75 72 73 | 69 76 65 20 73 65 61 72 |a recurs|ive sear|
|00002050| 63 68 2e 0d 20 20 20 20 | 20 4f 6e 20 72 65 74 75 |ch.. | On retu|
|00002060| 72 6e 20 77 65 20 63 61 | 6e 20 75 73 65 20 74 68 |rn we ca|n use th|
|00002070| 61 74 20 6c 69 73 74 20 | 74 6f 20 72 65 6d 6f 76 |at list |to remov|
|00002080| 65 20 61 6c 6c 20 74 68 | 65 20 69 74 65 6d 49 44 |e all th|e itemID|
|00002090| 73 20 61 74 20 6f 6e 63 | 65 2e 0d 2a 2f 0d 61 72 |s at onc|e..*/.ar|
|000020a0| 72 61 79 4f 66 49 74 65 | 6d 49 44 20 3d 20 46 6e |rayOfIte|mID = Fn|
|000020b0| 20 4e 65 77 48 61 6e 64 | 6c 65 28 20 30 20 29 0d | NewHand|le( 0 ).|
|000020c0| 4c 6f 6e 67 20 49 66 20 | 61 72 72 61 79 4f 66 49 |Long If |arrayOfI|
|000020d0| 74 65 6d 49 44 0d 65 72 | 72 20 3d 20 46 6e 20 47 |temID.er|r = Fn G|
|000020e0| 65 74 44 61 74 61 42 72 | 6f 77 73 65 72 49 74 65 |etDataBr|owserIte|
|000020f0| 6d 73 20 28 20 62 72 6f | 77 73 65 72 2c 20 5f 6b |ms ( bro|wser, _k|
|00002100| 44 61 74 61 42 72 6f 77 | 73 65 72 4e 6f 49 74 65 |DataBrow|serNoIte|
|00002110| 6d 2c 20 5f 74 72 75 65 | 20 2c 20 5f 6b 44 61 74 |m, _true| , _kDat|
|00002120| 61 42 72 6f 77 73 65 72 | 49 74 65 6d 41 6e 79 53 |aBrowser|ItemAnyS|
|00002130| 74 61 74 65 2c 20 61 72 | 72 61 79 4f 66 49 74 65 |tate, ar|rayOfIte|
|00002140| 6d 49 44 20 29 0d 4c 6f | 6e 67 20 49 66 20 65 72 |mID ).Lo|ng If er|
|00002150| 72 20 3d 20 5f 6e 6f 45 | 72 72 0d 65 72 72 20 3d |r = _noE|rr.err =|
|00002160| 20 46 6e 20 52 65 6d 6f | 76 65 44 61 74 61 42 72 | Fn Remo|veDataBr|
|00002170| 6f 77 73 65 72 49 74 65 | 6d 73 20 28 20 62 72 6f |owserIte|ms ( bro|
|00002180| 77 73 65 72 2c 30 2c 20 | 46 6e 20 47 65 74 48 61 |wser,0, |Fn GetHa|
|00002190| 6e 64 6c 65 53 69 7a 65 | 28 61 72 72 61 79 4f 66 |ndleSize|(arrayOf|
|000021a0| 49 74 65 6d 49 44 29 5c | 5c 20 53 69 7a 65 6f 66 |ItemID)\|\ Sizeof|
|000021b0| 28 44 61 74 61 42 72 6f | 77 73 65 72 49 74 65 6d |(DataBro|wserItem|
|000021c0| 49 44 29 2c 20 23 5b 61 | 72 72 61 79 4f 66 49 74 |ID), #[a|rrayOfIt|
|000021d0| 65 6d 49 44 5d 2c 20 5f | 6e 69 6c 29 0d 45 6e 64 |emID], _|nil).End|
|000021e0| 20 49 66 0d 44 69 73 70 | 6f 73 65 48 61 6e 64 6c | If.Disp|oseHandl|
|000021f0| 65 28 20 61 72 72 61 79 | 4f 66 49 74 65 6d 49 44 |e( array|OfItemID|
|00002200| 20 29 2f 2f 20 66 72 65 | 65 20 74 68 65 20 6d 65 | )// fre|e the me|
|00002210| 6d 6f 72 79 20 75 73 65 | 64 0d 45 6e 64 20 49 66 |mory use|d.End If|
|00002220| 0d 0d 45 6e 64 20 46 6e | 0d 0d 0d 2f 2a 0d 20 20 |..End Fn|.../*. |
|00002230| 20 20 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e | This |function|
|00002240| 20 69 6e 73 74 61 6c 6c | 73 20 74 68 65 20 69 74 | install|s the it|
|00002250| 65 6d 49 44 73 20 69 6e | 20 74 68 65 20 44 61 74 |emIDs in| the Dat|
|00002260| 61 42 72 6f 77 73 65 72 | 20 63 6f 6e 74 72 6f 6c |aBrowser| control|
|00002270| 0d 2a 2f 0d 43 6c 65 61 | 72 20 4c 6f 63 61 6c 0d |.*/.Clea|r Local.|
|00002280| 4c 6f 63 61 6c 20 46 6e | 20 46 69 6c 6c 44 61 74 |Local Fn| FillDat|
|00002290| 61 42 72 6f 77 73 65 72 | 0d 27 7e 27 39 0d 44 69 |aBrowser|.'~'9.Di|
|000022a0| 6d 20 41 73 20 43 6f 6e | 74 72 6f 6c 52 65 66 20 |m As Con|trolRef |
|000022b0| 20 20 20 20 20 20 20 20 | 20 20 62 72 6f 77 73 65 | | browse|
|000022c0| 72 0d 44 69 6d 20 41 73 | 20 4f 53 53 74 61 74 75 |r.Dim As| OSStatu|
|000022d0| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 72 |s | er|
|000022e0| 72 0d 44 69 6d 20 41 73 | 20 4c 6f 6e 67 20 20 20 |r.Dim As| Long |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6e 75 | | nu|
|00002300| 6d 62 65 72 4f 66 49 74 | 65 6d 73 2c 20 75 0d 44 |mberOfIt|ems, u.D|
|00002310| 69 6d 20 41 73 20 48 61 | 6e 64 6c 65 20 20 20 20 |im As Ha|ndle |
|00002320| 20 20 20 20 20 20 20 20 | 20 20 20 61 72 72 61 79 | | array|
|00002330| 4f 66 49 74 65 6d 49 44 | 0d 0d 62 72 6f 77 73 65 |OfItemID|..browse|
|00002340| 72 20 3d 20 46 6e 20 47 | 65 74 44 61 74 61 42 72 |r = Fn G|etDataBr|
|00002350| 6f 77 73 65 72 46 72 6f | 6d 57 69 6e 64 6f 77 28 |owserFro|mWindow(|
|00002360| 20 57 69 6e 64 6f 77 28 | 20 5f 77 6e 64 52 65 66 | Window(| _wndRef|
|00002370| 20 29 20 29 2f 2f 20 72 | 65 74 72 69 65 76 65 20 | ) )// r|etrieve |
|00002380| 74 68 65 20 62 72 6f 77 | 73 65 72 20 66 72 6f 6d |the brow|ser from|
|00002390| 20 74 68 65 20 77 69 6e | 64 6f 77 20 70 72 6f 70 | the win|dow prop|
|000023a0| 65 72 74 79 0d 49 66 20 | 62 72 6f 77 73 65 72 20 |erty.If |browser |
|000023b0| 3d 3d 20 5f 6e 69 6c 20 | 74 68 65 6e 20 45 78 69 |== _nil |then Exi|
|000023c0| 74 20 46 6e 0d 0d 6e 75 | 6d 62 65 72 4f 66 49 74 |t Fn..nu|mberOfIt|
|000023d0| 65 6d 73 20 3d 20 46 6e | 20 55 42 6f 75 6e 64 28 |ems = Fn| UBound(|
|000023e0| 67 46 69 6c 65 73 29 2f | 2f 20 72 65 74 72 69 65 |gFiles)/|/ retrie|
|000023f0| 76 65 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 69 |ve the m|aximum i|
|00002400| 6e 64 65 78 20 6f 66 20 | 6f 75 72 20 64 79 6e 61 |ndex of |our dyna|
|00002410| 6d 69 63 20 61 72 72 61 | 79 0d 49 66 20 6e 75 6d |mic arra|y.If num|
|00002420| 62 65 72 4f 66 49 74 65 | 6d 73 20 3d 20 30 20 74 |berOfIte|ms = 0 t|
|00002430| 68 65 6e 20 45 78 69 74 | 20 46 6e 2f 2f 20 6e 6f |hen Exit| Fn// no|
|00002440| 20 69 74 65 6d 73 20 77 | 65 20 63 61 6e 20 6c 65 | items w|e can le|
|00002450| 61 76 65 0d 0d 61 72 72 | 61 79 4f 66 49 74 65 6d |ave..arr|ayOfItem|
|00002460| 49 44 20 3d 20 46 6e 20 | 4e 65 77 48 61 6e 64 6c |ID = Fn |NewHandl|
|00002470| 65 28 20 30 20 29 2f 2f | 20 70 72 65 70 61 72 65 |e( 0 )//| prepare|
|00002480| 20 74 68 65 20 61 72 72 | 61 79 20 28 77 65 20 77 | the arr|ay (we w|
|00002490| 69 6c 6c 20 75 73 65 20 | 68 65 72 65 20 61 20 68 |ill use |here a h|
|000024a0| 61 6e 64 6c 65 29 0d 0d | 46 6f 72 20 75 20 3d 20 |andle)..|For u = |
|000024b0| 32 20 54 6f 20 6e 75 6d | 62 65 72 4f 66 49 74 65 |2 To num|berOfIte|
|000024c0| 6d 73 2f 2f 20 77 65 20 | 73 6b 69 70 20 69 6e 64 |ms// we |skip ind|
|000024d0| 65 78 20 31 20 28 77 68 | 69 63 68 20 69 73 20 74 |ex 1 (wh|ich is t|
|000024e0| 68 65 20 66 6f 6c 64 65 | 72 20 63 68 6f 73 65 6e |he folde|r chosen|
|000024f0| 20 62 79 20 74 68 65 20 | 65 6e 64 20 75 73 65 72 | by the |end user|
|00002500| 29 0d 4c 6f 6e 67 20 49 | 66 20 67 46 69 6c 65 73 |).Long I|f gFiles|
|00002510| 2e 70 61 72 65 6e 74 28 | 75 29 20 3d 20 67 46 69 |.parent(|u) = gFi|
|00002520| 6c 65 73 2e 69 74 65 6d | 49 44 28 31 29 2f 2f 20 |les.item|ID(1)// |
|00002530| 77 65 20 77 69 6c 6c 20 | 69 6e 63 6c 75 64 65 20 |we will |include |
|00002540| 6f 6e 6c 79 20 74 68 65 | 20 69 74 65 6d 73 20 74 |only the| items t|
|00002550| 68 61 74 20 62 65 6c 6f | 6e 67 20 74 6f 20 74 68 |hat belo|ng to th|
|00002560| 65 20 6d 61 73 74 65 72 | 20 66 6f 6c 64 65 72 0d |e master| folder.|
|00002570| 4c 6f 6e 67 20 49 66 20 | 46 6e 20 50 74 72 41 6e |Long If |Fn PtrAn|
|00002580| 64 48 61 6e 64 28 20 40 | 67 46 69 6c 65 73 2e 49 |dHand( @|gFiles.I|
|00002590| 74 65 6d 49 44 28 75 29 | 2c 20 61 72 72 61 79 4f |temID(u)|, arrayO|
|000025a0| 66 49 74 65 6d 49 44 2c | 20 53 69 7a 65 6f 66 28 |fItemID,| Sizeof(|
|000025b0| 44 61 74 61 42 72 6f 77 | 73 65 72 49 74 65 6d 49 |DataBrow|serItemI|
|000025c0| 44 29 20 29 20 21 3d 20 | 5f 6e 6f 45 72 72 0d 44 |D) ) != |_noErr.D|
|000025d0| 69 73 70 6f 73 65 48 61 | 6e 64 6c 65 28 20 61 72 |isposeHa|ndle( ar|
|000025e0| 72 61 79 4f 66 49 74 65 | 6d 49 44 20 29 20 3a 20 |rayOfIte|mID ) : |
|000025f0| 45 78 69 74 20 46 6e 2f | 2f 20 6c 65 61 76 65 20 |Exit Fn/|/ leave |
|00002600| 74 68 65 20 66 6e 20 6f | 6e 20 65 72 72 6f 72 0d |the fn o|n error.|
|00002610| 45 6e 64 20 49 66 0d 45 | 6e 64 20 49 66 0d 4e 65 |End If.E|nd If.Ne|
|00002620| 78 74 0d 0d 65 72 72 20 | 3d 20 46 6e 20 41 64 64 |xt..err |= Fn Add|
|00002630| 44 61 74 61 42 72 6f 77 | 73 65 72 49 74 65 6d 73 |DataBrow|serItems|
|00002640| 28 20 62 72 6f 77 73 65 | 72 2c 20 5f 6b 44 61 74 |( browse|r, _kDat|
|00002650| 61 42 72 6f 77 73 65 72 | 4e 6f 49 74 65 6d 2c 20 |aBrowser|NoItem, |
|00002660| 46 6e 20 47 65 74 48 61 | 6e 64 6c 65 53 69 7a 65 |Fn GetHa|ndleSize|
|00002670| 28 61 72 72 61 79 4f 66 | 49 74 65 6d 49 44 29 5c |(arrayOf|ItemID)\|
|00002680| 5c 20 53 69 7a 65 6f 66 | 28 44 61 74 61 42 72 6f |\ Sizeof|(DataBro|
|00002690| 77 73 65 72 49 74 65 6d | 49 44 29 2c 20 23 5b 61 |wserItem|ID), #[a|
|000026a0| 72 72 61 79 4f 66 49 74 | 65 6d 49 44 5d 2c 20 5f |rrayOfIt|emID], _|
|000026b0| 6b 44 61 74 61 42 72 6f | 77 73 65 72 49 74 65 6d |kDataBro|wserItem|
|000026c0| 4e 6f 50 72 6f 70 65 72 | 74 79 20 29 0d 44 69 73 |NoProper|ty ).Dis|
|000026d0| 70 6f 73 65 48 61 6e 64 | 6c 65 28 20 61 72 72 61 |poseHand|le( arra|
|000026e0| 79 4f 66 49 74 65 6d 49 | 44 20 29 2f 2f 20 66 72 |yOfItemI|D )// fr|
|000026f0| 65 65 20 74 68 65 20 6d | 65 6d 6f 72 79 20 75 73 |ee the m|emory us|
|00002700| 65 64 0d 2f 2f 20 6d 61 | 6b 65 20 73 75 72 65 20 |ed.// ma|ke sure |
|00002710| 6f 75 72 20 69 74 65 6d | 49 44 20 32 20 28 61 63 |our item|ID 2 (ac|
|00002720| 74 75 61 6c 6c 79 20 6f | 75 72 20 66 69 72 73 74 |tually o|ur first|
|00002730| 20 69 74 65 6d 20 69 6e | 20 74 68 65 20 6c 69 73 | item in| the lis|
|00002740| 74 29 20 69 73 20 76 69 | 73 69 62 6c 65 20 6f 6e |t) is vi|sible on|
|00002750| 20 73 63 72 65 65 6e 0d | 65 72 72 20 3d 20 46 6e | screen.|err = Fn|
|00002760| 20 52 65 76 65 61 6c 44 | 61 74 61 42 72 6f 77 73 | RevealD|ataBrows|
|00002770| 65 72 49 74 65 6d 20 28 | 20 62 72 6f 77 73 65 72 |erItem (| browser|
|00002780| 2c 20 32 2c 20 5f 6e 61 | 6d 65 43 6f 6c 75 6d 6e |, 2, _na|meColumn|
|00002790| 49 44 2c 20 5f 6b 44 61 | 74 61 42 72 6f 77 73 65 |ID, _kDa|taBrowse|
|000027a0| 72 52 65 76 65 61 6c 57 | 69 74 68 6f 75 74 53 65 |rRevealW|ithoutSe|
|000027b0| 6c 65 63 74 69 6e 67 20 | 29 0d 0d 45 6e 64 20 46 |lecting |)..End F|
|000027c0| 6e 0d 0d 27 7e 27 31 0d | 2f 2a 0d 20 20 20 20 20 |n..'~'1.|/*. |
|000027d0| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 73 63 |This fun|ction sc|
|000027e0| 61 6e 73 20 74 68 65 20 | 66 6f 6c 64 65 72 20 73 |ans the |folder s|
|000027f0| 70 65 63 69 66 69 65 64 | 20 62 79 20 69 74 73 20 |pecified| by its |
|00002800| 46 53 53 70 65 63 2e 0d | 20 20 20 20 20 41 73 20 |FSSpec..| As |
|00002810| 69 74 20 63 61 6c 6c 73 | 20 69 74 73 65 6c 66 20 |it calls| itself |
|00002820| 66 6f 72 20 61 20 72 65 | 63 75 72 73 69 76 65 20 |for a re|cursive |
|00002830| 73 65 61 72 63 68 2c 20 | 61 6e 20 69 6e 64 65 78 |search, |an index|
|00002840| 20 69 73 20 75 73 65 64 | 0d 20 20 20 20 20 74 6f | is used|. to|
|00002850| 20 6b 65 65 70 20 74 72 | 61 63 6b 20 6f 66 20 77 | keep tr|ack of w|
|00002860| 68 6f 20 77 61 73 20 63 | 61 6c 6c 69 6e 67 20 74 |ho was c|alling t|
|00002870| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 28 70 61 72 |he funct|ion (par|
|00002880| 65 6e 74 46 6f 6c 64 65 | 72 29 0d 2a 2f 0d 43 6c |entFolde|r).*/.Cl|
|00002890| 65 61 72 20 4c 6f 63 61 | 6c 20 46 6e 20 43 6f 6c |ear Loca|l Fn Col|
|000028a0| 6c 65 63 74 46 69 6c 65 | 49 74 65 6d 73 20 28 20 |lectFile|Items ( |
|000028b0| 66 53 70 65 63 20 41 73 | 20 2e 46 53 53 70 65 63 |fSpec As| .FSSpec|
|000028c0| 2c 20 70 61 72 65 6e 74 | 46 6f 6c 64 65 72 20 41 |, parent|Folder A|
|000028d0| 73 20 4c 6f 6e 67 20 29 | 0d 27 7e 27 39 0d 0d 44 |s Long )|.'~'9..D|
|000028e0| 69 6d 20 41 73 20 53 68 | 6f 72 74 20 20 49 6e 64 |im As Sh|ort Ind|
|000028f0| 65 78 2c 20 45 72 72 0d | 44 69 6d 20 41 73 20 46 |ex, Err.|Dim As F|
|00002900| 53 53 70 65 63 20 74 70 | 53 70 65 63 0d 44 69 6d |SSpec tp|Spec.Dim|
|00002910| 20 20 20 20 20 20 20 20 | 20 20 20 70 62 2e 31 32 | | pb.12|
|00002920| 38 0d 0d 23 49 66 20 4e | 64 65 66 20 5f 6b 46 6f |8..#If N|def _kFo|
|00002930| 6c 64 65 72 42 69 74 0d | 5f 6b 46 6f 6c 64 65 72 |lderBit.|_kFolder|
|00002940| 42 69 74 20 3d 20 33 0d | 23 45 6e 64 69 66 0d 0d |Bit = 3.|#Endif..|
|00002950| 49 6e 64 65 78 20 3d 20 | 31 2f 2f 20 73 74 61 72 |Index = |1// star|
|00002960| 74 20 61 74 20 69 6e 64 | 65 78 20 31 0d 0d 44 6f |t at ind|ex 1..Do|
|00002970| 0d 0d 70 62 2e 69 6f 46 | 44 69 72 49 6e 64 65 78 |..pb.ioF|DirIndex|
|00002980| 25 20 20 3d 20 49 6e 64 | 65 78 2f 2f 20 66 69 6c |% = Ind|ex// fil|
|00002990| 6c 20 74 68 65 20 70 61 | 72 61 6d 20 62 6c 6f 63 |l the pa|ram bloc|
|000029a0| 6b 0d 70 62 2e 69 6f 4e | 61 6d 65 50 74 72 26 20 |k.pb.ioN|amePtr& |
|000029b0| 20 20 20 3d 20 40 66 53 | 70 65 63 2e 6e 61 6d 65 | = @fS|pec.name|
|000029c0| 2f 2f 20 74 68 65 20 66 | 6f 6c 64 65 72 20 72 65 |// the f|older re|
|000029d0| 71 75 65 73 74 65 64 0d | 70 62 2e 69 6f 56 52 65 |quested.|pb.ioVRe|
|000029e0| 66 4e 75 6d 25 20 20 20 | 20 3d 20 66 53 70 65 63 |fNum% | = fSpec|
|000029f0| 2e 76 52 65 66 4e 75 6d | 0d 70 62 2e 69 6f 44 69 |.vRefNum|.pb.ioDi|
|00002a00| 72 49 44 26 20 20 20 20 | 20 20 3d 20 66 53 70 65 |rID& | = fSpe|
|00002a10| 63 2e 70 61 72 49 44 0d | 0d 49 66 20 46 6e 20 50 |c.parID.|.If Fn P|
|00002a20| 42 47 65 74 43 61 74 49 | 6e 66 6f 53 79 6e 63 28 |BGetCatI|nfoSync(|
|00002a30| 20 70 62 20 29 20 74 68 | 65 6e 20 45 78 69 74 20 | pb ) th|en Exit |
|00002a40| 44 6f 2f 2f 20 6c 65 61 | 76 65 20 74 68 65 20 6c |Do// lea|ve the l|
|00002a50| 6f 6f 70 20 6f 6e 20 65 | 72 72 6f 72 0d 0d 0d 4c |oop on e|rror...L|
|00002a60| 6f 6e 67 20 49 66 20 28 | 20 70 62 2e 69 6f 46 6c |ong If (| pb.ioFl|
|00002a70| 55 73 72 57 64 73 2e 66 | 64 46 6c 61 67 73 25 20 |UsrWds.f|dFlags% |
|00002a80| 41 6e 64 20 5f 66 49 6e | 76 69 73 69 62 6c 65 20 |And _fIn|visible |
|00002a90| 29 20 3d 20 5f 66 61 6c | 73 65 2f 2f 20 73 6b 69 |) = _fal|se// ski|
|00002aa0| 70 20 69 6e 76 69 73 69 | 62 6c 65 20 69 74 65 6d |p invisi|ble item|
|00002ab0| 73 0d 67 46 69 6c 65 49 | 6e 64 65 78 2b 2b 2f 2f |s.gFileI|ndex++//|
|00002ac0| 20 77 65 27 76 65 20 67 | 6f 74 20 6f 6e 65 20 6d | we've g|ot one m|
|00002ad0| 6f 72 65 20 69 74 65 6d | 20 74 6f 20 61 64 64 20 |ore item| to add |
|00002ae0| 74 6f 20 6f 75 72 20 6c | 69 73 74 0d 67 46 69 6c |to our l|ist.gFil|
|00002af0| 65 73 2e 69 74 65 6d 49 | 44 28 67 46 69 6c 65 49 |es.itemI|D(gFileI|
|00002b00| 6e 64 65 78 29 20 3d 20 | 67 46 69 6c 65 49 6e 64 |ndex) = |gFileInd|
|00002b10| 65 78 2f 2f 20 74 68 69 | 73 20 69 6e 64 65 78 20 |ex// thi|s index |
|00002b20| 77 69 6c 6c 20 62 65 63 | 6f 6d 65 20 6f 75 72 20 |will bec|ome our |
|00002b30| 44 61 74 61 42 72 6f 77 | 73 65 72 20 69 74 65 6d |DataBrow|ser item|
|00002b40| 49 44 0d 67 46 69 6c 65 | 73 2e 70 61 72 65 6e 74 |ID.gFile|s.parent|
|00002b50| 28 67 46 69 6c 65 49 6e | 64 65 78 29 20 3d 20 70 |(gFileIn|dex) = p|
|00002b60| 61 72 65 6e 74 46 6f 6c | 64 65 72 2f 2f 20 73 74 |arentFol|der// st|
|00002b70| 6f 72 65 20 74 68 65 20 | 70 61 72 65 6e 74 20 66 |ore the |parent f|
|00002b80| 6f 6c 64 65 72 20 69 6e | 64 65 78 20 69 6e 20 74 |older in|dex in t|
|00002b90| 68 65 20 69 74 65 6d 20 | 73 74 72 75 63 74 75 72 |he item |structur|
|00002ba0| 65 0d 67 46 69 6c 65 73 | 2e 73 70 65 63 20 20 28 |e.gFiles|.spec (|
|00002bb0| 67 46 69 6c 65 49 6e 64 | 65 78 29 20 3d 20 66 53 |gFileInd|ex) = fS|
|00002bc0| 70 65 63 2f 2f 20 73 61 | 76 65 20 74 68 65 20 69 |pec// sa|ve the i|
|00002bd0| 74 65 6d 20 46 53 53 70 | 65 63 0d 0d 4c 6f 6e 67 |tem FSSp|ec..Long|
|00002be0| 20 49 66 20 46 6e 20 42 | 69 74 54 73 74 20 28 70 | If Fn B|itTst (p|
|00002bf0| 62 2e 69 6f 46 6c 41 74 | 74 72 69 62 25 2c 20 5f |b.ioFlAt|trib%, _|
|00002c00| 6b 46 6f 6c 64 65 72 42 | 69 74 29 2f 2f 20 49 73 |kFolderB|it)// Is|
|00002c10| 20 69 74 20 61 20 66 6f | 6c 64 65 72 3f 0d 20 2f | it a fo|lder?. /|
|00002c20| 2f 20 69 74 27 73 20 61 | 20 66 6f 6c 64 65 72 2e |/ it's a| folder.|
|00002c30| 2e 2e 0d 67 46 69 6c 65 | 73 2e 74 79 70 65 20 20 |...gFile|s.type |
|00002c40| 20 28 67 46 69 6c 65 49 | 6e 64 65 78 29 20 20 3d | (gFileI|ndex) =|
|00002c50| 20 5f 22 66 6c 64 72 22 | 2f 2f 20 73 65 74 20 74 | _"fldr"|// set t|
|00002c60| 68 65 20 66 69 6c 65 20 | 74 79 70 65 0d 67 46 69 |he file |type.gFi|
|00002c70| 6c 65 73 2e 63 72 65 61 | 74 6f 72 28 67 46 69 6c |les.crea|tor(gFil|
|00002c80| 65 49 6e 64 65 78 29 20 | 20 3d 20 5f 22 2d 2d 2d |eIndex) | = _"---|
|00002c90| 2d 22 2f 2f 20 73 65 74 | 20 74 68 65 20 63 72 65 |-"// set| the cre|
|00002ca0| 61 74 6f 72 20 63 6f 64 | 65 0d 0d 74 70 53 70 65 |ator cod|e..tpSpe|
|00002cb0| 63 2e 76 52 65 66 4e 75 | 6d 20 3d 20 70 62 2e 69 |c.vRefNu|m = pb.i|
|00002cc0| 6f 56 52 65 66 4e 75 6d | 25 2f 2f 20 66 69 6c 6c |oVRefNum|%// fill|
|00002cd0| 20 61 20 74 65 6d 70 6f | 72 61 72 79 20 46 53 53 | a tempo|rary FSS|
|00002ce0| 70 65 63 20 73 74 72 75 | 63 74 75 72 65 20 0d 74 |pec stru|cture .t|
|00002cf0| 70 53 70 65 63 2e 70 61 | 72 49 44 20 20 20 3d 20 |pSpec.pa|rID = |
|00002d00| 70 62 2e 69 6f 44 69 72 | 49 44 26 2f 2f 20 73 74 |pb.ioDir|ID&// st|
|00002d10| 6f 72 65 20 74 68 65 20 | 64 69 72 49 44 20 6f 66 |ore the |dirID of|
|00002d20| 20 74 68 65 20 70 61 72 | 65 6e 74 20 66 6f 6c 64 | the par|ent fold|
|00002d30| 65 72 20 69 6e 20 74 68 | 65 20 73 74 72 75 63 74 |er in th|e struct|
|00002d40| 75 72 65 2e 2e 2e 0d 74 | 70 53 70 65 63 2e 70 61 |ure....t|pSpec.pa|
|00002d50| 72 49 44 20 20 20 3d 20 | 46 6e 20 47 65 74 46 6f |rID = |Fn GetFo|
|00002d60| 6c 64 65 72 44 69 72 49 | 44 28 20 66 53 70 65 63 |lderDirI|D( fSpec|
|00002d70| 2c 20 5f 6b 44 6f 6e 74 | 43 72 65 61 74 65 46 6f |, _kDont|CreateFo|
|00002d80| 6c 64 65 72 20 29 2f 2f | 20 74 6f 20 63 6f 6e 76 |lder )//| to conv|
|00002d90| 65 72 74 20 69 74 20 74 | 6f 20 74 68 65 20 64 69 |ert it t|o the di|
|00002da0| 72 49 44 20 6f 66 20 74 | 68 65 20 6e 65 77 20 66 |rID of t|he new f|
|00002db0| 6f 6c 64 65 72 20 77 65 | 20 77 61 6e 74 20 74 6f |older we| want to|
|00002dc0| 20 73 63 61 6e 0d 0d 46 | 6e 20 43 6f 6c 6c 65 63 | scan..F|n Collec|
|00002dd0| 74 46 69 6c 65 49 74 65 | 6d 73 28 20 74 70 53 70 |tFileIte|ms( tpSp|
|00002de0| 65 63 2c 20 67 46 69 6c | 65 49 6e 64 65 78 20 29 |ec, gFil|eIndex )|
|00002df0| 2f 2f 20 73 74 61 72 74 | 20 61 6e 6f 74 68 65 72 |// start| another|
|00002e00| 20 72 6f 75 6e 64 20 77 | 69 74 68 20 74 68 61 74 | round w|ith that|
|00002e10| 20 66 6f 6c 64 65 72 0d | 0d 78 65 6c 73 65 2f 2f | folder.|.xelse//|
|00002e20| 20 69 74 20 69 73 20 61 | 20 66 69 6c 65 2e 2e 2e | it is a| file...|
|00002e30| 0d 0d 67 46 69 6c 65 73 | 2e 74 79 70 65 20 20 20 |..gFiles|.type |
|00002e40| 28 67 46 69 6c 65 49 6e | 64 65 78 29 20 3d 20 70 |(gFileIn|dex) = p|
|00002e50| 62 2e 69 6f 46 6c 55 73 | 72 57 64 73 2e 66 64 54 |b.ioFlUs|rWds.fdT|
|00002e60| 79 70 65 26 2f 2f 20 67 | 72 61 62 20 74 68 65 20 |ype&// g|rab the |
|00002e70| 69 6e 66 6f 20 66 72 6f | 6d 20 74 68 65 20 70 61 |info fro|m the pa|
|00002e80| 72 61 6d 20 62 6c 6f 63 | 6b 0d 67 46 69 6c 65 73 |ram bloc|k.gFiles|
|00002e90| 2e 63 72 65 61 74 6f 72 | 28 67 46 69 6c 65 49 6e |.creator|(gFileIn|
|00002ea0| 64 65 78 29 20 3d 20 70 | 62 2e 69 6f 46 6c 55 73 |dex) = p|b.ioFlUs|
|00002eb0| 72 57 64 73 2e 66 64 43 | 72 65 61 74 6f 72 26 0d |rWds.fdC|reator&.|
|00002ec0| 67 46 69 6c 65 73 2e 66 | 6c 61 67 73 20 20 28 67 |gFiles.f|lags (g|
|00002ed0| 46 69 6c 65 49 6e 64 65 | 78 29 20 3d 20 70 62 2e |FileInde|x) = pb.|
|00002ee0| 69 6f 46 6c 55 73 72 57 | 64 73 2e 66 64 46 6c 61 |ioFlUsrW|ds.fdFla|
|00002ef0| 67 73 25 0d 67 46 69 6c | 65 73 2e 64 61 74 61 4c |gs%.gFil|es.dataL|
|00002f00| 65 6e 28 67 46 69 6c 65 | 49 6e 64 65 78 29 20 3d |en(gFile|Index) =|
|00002f10| 20 70 62 2e 69 6f 46 6c | 4c 67 4c 65 6e 26 0d 67 | pb.ioFl|LgLen&.g|
|00002f20| 46 69 6c 65 73 2e 72 73 | 72 63 4c 65 6e 28 67 46 |Files.rs|rcLen(gF|
|00002f30| 69 6c 65 49 6e 64 65 78 | 29 20 3d 20 70 62 2e 69 |ileIndex|) = pb.i|
|00002f40| 6f 46 6c 52 4c 67 4c 65 | 6e 26 0d 67 46 69 6c 65 |oFlRLgLe|n&.gFile|
|00002f50| 73 2e 63 44 61 74 65 20 | 20 28 67 46 69 6c 65 49 |s.cDate | (gFileI|
|00002f60| 6e 64 65 78 29 20 3d 20 | 70 62 2e 69 6f 46 6c 43 |ndex) = |pb.ioFlC|
|00002f70| 72 44 61 74 26 0d 67 46 | 69 6c 65 73 2e 6d 44 61 |rDat&.gF|iles.mDa|
|00002f80| 74 65 20 20 28 67 46 69 | 6c 65 49 6e 64 65 78 29 |te (gFi|leIndex)|
|00002f90| 20 3d 20 70 62 2e 69 6f | 46 6c 4d 64 44 61 74 26 | = pb.io|FlMdDat&|
|00002fa0| 0d 67 46 69 6c 65 73 2e | 61 74 74 72 69 62 20 28 |.gFiles.|attrib (|
|00002fb0| 67 46 69 6c 65 49 6e 64 | 65 78 29 20 3d 20 70 62 |gFileInd|ex) = pb|
|00002fc0| 2e 69 6f 46 6c 41 74 74 | 72 69 62 25 0d 45 6e 64 |.ioFlAtt|rib%.End|
|00002fd0| 20 49 66 0d 0d 45 6e 64 | 20 49 66 0d 0d 69 6e 64 | If..End| If..ind|
|00002fe0| 65 78 2b 2b 2f 2f 20 6e | 65 78 74 20 66 69 6c 65 |ex++// n|ext file|
|00002ff0| 20 6f 72 20 66 6f 6c 64 | 65 72 20 69 6e 20 74 68 | or fold|er in th|
|00003000| 65 20 63 75 72 72 65 6e | 74 20 66 6f 6c 64 65 72 |e curren|t folder|
|00003010| 0d 0d 55 6e 74 69 6c 20 | 5f 6e 69 6c 0d 0d 45 6e |..Until |_nil..En|
|00003020| 64 20 46 6e 0d 0d 0d 27 | 7e 12 2d 2d 2d 2d 2d 0d |d Fn...'|~.-----.|
|00003030| 27 7e 12 44 61 74 61 42 | 72 6f 77 73 65 72 20 53 |'~.DataB|rowser S|
|00003040| 65 74 74 69 6e 67 20 26 | 20 47 65 74 74 69 6e 67 |etting &| Getting|
|00003050| 20 44 61 74 61 0d 27 7e | 27 31 0d 2f 2a 0d 20 20 | Data.'~|'1./*. |
|00003060| 20 20 20 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e | This |function|
|00003070| 20 69 73 20 63 61 6c 6c | 65 64 20 76 69 61 20 61 | is call|ed via a|
|00003080| 20 63 61 6c 6c 62 61 63 | 6b 20 70 72 6f 63 65 64 | callbac|k proced|
|00003090| 75 72 65 2e 20 54 68 69 | 73 20 69 73 0d 20 20 20 |ure. Thi|s is. |
|000030a0| 20 20 74 68 65 20 6f 6e | 6c 79 20 72 65 71 75 69 | the on|ly requi|
|000030b0| 72 65 64 20 72 6f 75 74 | 69 6e 65 20 74 6f 20 77 |red rout|ine to w|
|000030c0| 6f 72 6b 20 77 69 74 68 | 20 61 20 44 61 74 61 42 |ork with| a DataB|
|000030d0| 72 6f 77 73 65 72 20 63 | 6f 6e 74 72 6f 6c 2e 0d |rowser c|ontrol..|
|000030e0| 20 20 20 20 20 54 68 65 | 20 44 61 74 61 42 72 6f | The| DataBro|
|000030f0| 77 73 65 72 20 61 73 6b | 73 20 79 6f 75 20 74 6f |wser ask|s you to|
|00003100| 20 73 65 74 75 70 20 73 | 6f 6d 65 20 76 61 6c 75 | setup s|ome valu|
|00003110| 65 73 20 66 6f 72 20 74 | 68 65 20 63 65 6c 6c 73 |es for t|he cells|
|00003120| 0d 20 20 20 20 20 74 68 | 61 74 20 69 74 20 6d 75 |. th|at it mu|
|00003130| 73 74 20 64 69 73 70 6c | 61 79 2e 20 54 68 6f 73 |st displ|ay. Thos|
|00003140| 65 20 76 61 6c 75 65 73 | 20 61 72 65 20 73 65 74 |e values| are set|
|00003150| 20 77 69 74 68 20 73 70 | 65 63 69 66 69 63 20 66 | with sp|ecific f|
|00003160| 75 6e 63 74 69 6f 6e 73 | 0d 20 20 20 20 20 64 65 |unctions|. de|
|00003170| 70 65 6e 64 69 6e 67 20 | 6f 6e 20 74 68 65 20 74 |pending |on the t|
|00003180| 79 70 65 20 6f 66 20 74 | 68 65 20 63 65 6c 6c 20 |ype of t|he cell |
|00003190| 74 6f 20 62 65 20 75 70 | 64 61 74 65 64 2e 0d 20 |to be up|dated.. |
|000031a0| 20 20 20 20 57 69 74 68 | 20 74 68 65 20 73 61 6d | With| the sam|
|000031b0| 65 20 63 61 6c 6c 62 61 | 63 6b 20 72 6f 75 74 69 |e callba|ck routi|
|000031c0| 6e 65 20 74 68 65 20 44 | 61 74 61 42 72 6f 77 73 |ne the D|ataBrows|
|000031d0| 65 72 20 6d 61 79 20 69 | 6e 66 6f 72 6d 20 79 6f |er may i|nform yo|
|000031e0| 75 0d 20 20 20 20 20 74 | 68 61 74 20 61 20 63 65 |u. t|hat a ce|
|000031f0| 6c 6c 20 68 61 73 20 62 | 65 65 6e 20 63 68 61 6e |ll has b|een chan|
|00003200| 67 65 64 20 62 79 20 74 | 68 65 20 65 6e 64 20 75 |ged by t|he end u|
|00003210| 73 65 72 2c 20 73 6f 20 | 69 74 20 69 73 20 74 69 |ser, so |it is ti|
|00003220| 6d 65 0d 20 20 20 20 20 | 74 6f 20 67 65 74 20 74 |me. |to get t|
|00003230| 68 65 20 76 61 6c 75 65 | 20 73 65 6e 74 20 62 79 |he value| sent by|
|00003240| 20 74 68 65 20 44 61 74 | 61 42 72 6f 77 73 65 72 | the Dat|aBrowser|
|00003250| 20 74 6f 20 75 70 64 61 | 74 65 20 79 6f 75 72 0d | to upda|te your.|
|00003260| 20 20 20 20 20 69 6e 74 | 65 72 6e 61 6c 20 69 6e | int|ernal in|
|00003270| 66 6f 72 6d 61 74 69 6f | 6e 2e 0d 2a 2f 0d 43 6c |formatio|n..*/.Cl|
|00003280| 65 61 72 20 4c 6f 63 61 | 6c 20 46 6e 20 4d 79 47 |ear Loca|l Fn MyG|
|00003290| 65 74 53 65 74 49 74 65 | 6d 44 61 74 61 28 20 62 |etSetIte|mData( b|
|000032a0| 72 6f 77 73 65 72 20 41 | 73 20 43 6f 6e 74 72 6f |rowser A|s Contro|
|000032b0| 6c 52 65 66 2c 20 69 74 | 65 6d 49 44 20 41 73 20 |lRef, it|emID As |
|000032c0| 44 61 74 61 42 72 6f 77 | 73 65 72 49 74 65 6d 49 |DataBrow|serItemI|
|000032d0| 44 2c 20 63 6f 6c 75 6d | 6e 50 72 6f 70 49 44 20 |D, colum|nPropID |
|000032e0| 41 73 20 44 61 74 61 42 | 72 6f 77 73 65 72 50 72 |As DataB|rowserPr|
|000032f0| 6f 70 65 72 74 79 49 44 | 2c 20 69 74 65 6d 44 61 |opertyID|, itemDa|
|00003300| 74 61 20 41 73 20 44 61 | 74 61 42 72 6f 77 73 65 |ta As Da|taBrowse|
|00003310| 72 49 74 65 6d 44 61 74 | 61 52 65 66 2c 20 75 73 |rItemDat|aRef, us|
|00003320| 65 72 43 68 61 6e 67 65 | 64 49 74 65 6d 44 61 74 |erChange|dItemDat|
|00003330| 61 20 41 73 20 42 6f 6f | 6c 65 61 6e 20 29 0d 27 |a As Boo|lean ).'|
|00003340| 7e 27 39 0d 44 69 6d 20 | 41 73 20 4f 53 53 74 61 |~'9.Dim |As OSSta|
|00003350| 74 75 73 20 20 20 20 65 | 72 72 0d 44 69 6d 20 41 |tus e|rr.Dim A|
|00003360| 73 20 43 46 53 74 72 69 | 6e 67 52 65 66 20 74 78 |s CFStri|ngRef tx|
|00003370| 74 0d 44 69 6d 20 41 73 | 20 49 63 6f 6e 52 65 66 |t.Dim As| IconRef|
|00003380| 20 20 20 20 20 69 63 6f | 6e 48 0d 44 69 6d 20 41 | ico|nH.Dim A|
|00003390| 73 20 46 53 53 70 65 63 | 20 20 20 20 20 20 66 53 |s FSSpec| fS|
|000033a0| 70 65 63 20 3a 20 66 53 | 70 65 63 20 3d 20 67 46 |pec : fS|pec = gF|
|000033b0| 69 6c 65 73 2e 73 70 65 | 63 28 69 74 65 6d 49 44 |iles.spe|c(itemID|
|000033c0| 29 2f 2f 20 63 6f 70 79 | 20 69 6e 66 6f 20 66 72 |)// copy| info fr|
|000033d0| 6f 6d 20 74 68 65 20 64 | 79 6e 61 6d 69 63 20 61 |om the d|ynamic a|
|000033e0| 72 72 61 79 2e 2e 2e 0d | 44 69 6d 20 41 73 20 4f |rray....|Dim As O|
|000033f0| 53 54 79 70 65 20 20 20 | 20 20 20 66 54 79 70 65 |SType | fType|
|00003400| 20 3a 20 66 54 79 70 65 | 20 3d 20 67 46 69 6c 65 | : fType| = gFile|
|00003410| 73 2e 74 79 70 65 28 69 | 74 65 6d 49 44 29 2f 2f |s.type(i|temID)//|
|00003420| 20 2e 2e 2e 20 69 6e 20 | 6c 6f 63 61 6c 20 76 61 | ... in |local va|
|00003430| 72 69 61 62 6c 65 73 0d | 44 69 6d 20 41 73 20 4f |riables.|Dim As O|
|00003440| 53 54 79 70 65 20 20 20 | 20 20 20 66 43 72 65 61 |SType | fCrea|
|00003450| 20 3a 20 66 43 72 65 61 | 20 3d 20 67 46 69 6c 65 | : fCrea| = gFile|
|00003460| 73 2e 63 72 65 61 74 6f | 72 28 49 74 65 6d 49 44 |s.creato|r(ItemID|
|00003470| 29 0d 0d 65 72 72 20 3d | 20 5f 6e 6f 45 72 72 0d |)..err =| _noErr.|
|00003480| 0d 4c 6f 6e 67 20 49 66 | 20 75 73 65 72 43 68 61 |.Long If| userCha|
|00003490| 6e 67 65 64 49 74 65 6d | 44 61 74 61 20 3d 20 5f |ngedItem|Data = _|
|000034a0| 66 61 6c 73 65 0d 0d 53 | 65 6c 65 63 74 20 63 6f |false..S|elect co|
|000034b0| 6c 75 6d 6e 50 72 6f 70 | 49 44 0d 0d 43 61 73 65 |lumnProp|ID..Case|
|000034c0| 20 5f 6e 61 6d 65 43 6f | 6c 75 6d 6e 49 44 27 20 | _nameCo|lumnID' |
|000034d0| 6e 61 6d 65 73 20 61 6e | 64 20 69 63 6f 6e 73 0d |names an|d icons.|
|000034e0| 0d 69 63 6f 6e 48 20 3d | 20 46 6e 20 47 65 74 46 |.iconH =| Fn GetF|
|000034f0| 69 6c 65 49 63 6f 6e 28 | 20 66 53 70 65 63 2c 20 |ileIcon(| fSpec, |
|00003500| 66 74 79 70 65 20 29 0d | 4c 6f 6e 67 20 49 66 20 |ftype ).|Long If |
|00003510| 69 63 6f 6e 48 0d 65 72 | 72 20 3d 20 46 6e 20 53 |iconH.er|r = Fn S|
|00003520| 65 74 44 61 74 61 42 72 | 6f 77 73 65 72 49 74 65 |etDataBr|owserIte|
|00003530| 6d 44 61 74 61 49 63 6f | 6e 28 20 69 74 65 6d 44 |mDataIco|n( itemD|
|00003540| 61 74 61 2c 20 69 63 6f | 6e 48 20 29 0d 65 72 72 |ata, ico|nH ).err|
|00003550| 20 3d 20 46 6e 20 52 65 | 6c 65 61 73 65 49 63 6f | = Fn Re|leaseIco|
|00003560| 6e 52 65 66 28 69 63 6f | 6e 48 29 0d 45 6e 64 20 |nRef(ico|nH).End |
|00003570| 49 66 0d 0d 74 78 74 20 | 3d 20 46 6e 20 43 46 53 |If..txt |= Fn CFS|
|00003580| 74 72 69 6e 67 43 72 65 | 61 74 65 57 69 74 68 50 |tringCre|ateWithP|
|00003590| 61 73 63 61 6c 53 74 72 | 69 6e 67 28 20 46 6e 20 |ascalStr|ing( Fn |
|000035a0| 43 46 41 6c 6c 6f 63 61 | 74 6f 72 47 65 74 44 65 |CFAlloca|torGetDe|
|000035b0| 66 61 75 6c 74 2c 20 66 | 53 70 65 63 2e 6e 61 6d |fault, f|Spec.nam|
|000035c0| 65 2c 20 5f 6b 43 46 53 | 74 72 69 6e 67 45 6e 63 |e, _kCFS|tringEnc|
|000035d0| 6f 64 69 6e 67 4d 61 63 | 52 6f 6d 61 6e 20 29 0d |odingMac|Roman ).|
|000035e0| 65 72 72 20 3d 20 46 6e | 20 53 65 74 44 61 74 61 |err = Fn| SetData|
|000035f0| 42 72 6f 77 73 65 72 49 | 74 65 6d 44 61 74 61 54 |BrowserI|temDataT|
|00003600| 65 78 74 28 20 69 74 65 | 6d 44 61 74 61 2c 20 74 |ext( ite|mData, t|
|00003610| 78 74 20 29 20 3a 20 43 | 46 52 65 6c 65 61 73 65 |xt ) : C|FRelease|
|00003620| 28 20 74 78 74 20 29 0d | 0d 43 61 73 65 20 5f 74 |( txt ).|.Case _t|
|00003630| 79 70 65 43 6f 6c 75 6d | 6e 49 44 2c 20 5f 63 72 |ypeColum|nID, _cr|
|00003640| 65 61 74 6f 72 43 6f 6c | 75 6d 6e 49 44 2f 2f 20 |eatorCol|umnID// |
|00003650| 66 69 6c 65 20 74 79 70 | 65 20 61 6e 64 20 63 72 |file typ|e and cr|
|00003660| 65 61 74 6f 72 20 63 6f | 64 65 20 63 6f 6c 75 6d |eator co|de colum|
|00003670| 6e 73 0d 0d 4c 6f 6e 67 | 20 49 66 20 66 54 79 70 |ns..Long| If fTyp|
|00003680| 65 20 21 3d 20 5f 22 66 | 6c 64 72 22 2f 2f 20 73 |e != _"f|ldr"// s|
|00003690| 6b 69 70 20 66 6f 6c 64 | 65 72 73 0d 53 65 6c 65 |kip fold|ers.Sele|
|000036a0| 63 74 20 63 6f 6c 75 6d | 6e 50 72 6f 70 49 44 0d |ct colum|nPropID.|
|000036b0| 43 61 73 65 20 5f 74 79 | 70 65 43 6f 6c 75 6d 6e |Case _ty|peColumn|
|000036c0| 49 44 20 20 20 20 3a 20 | 74 78 74 20 3d 20 66 54 |ID : |txt = fT|
|000036d0| 79 70 65 2f 2f 20 64 65 | 61 6c 20 77 69 74 68 20 |ype// de|al with |
|000036e0| 54 79 70 65 20 63 6f 6c | 75 6d 6e 0d 43 61 73 65 |Type col|umn.Case|
|000036f0| 20 5f 63 72 65 61 74 6f | 72 43 6f 6c 75 6d 6e 49 | _creato|rColumnI|
|00003700| 44 20 3a 20 74 78 74 20 | 3d 20 66 43 72 65 61 2f |D : txt |= fCrea/|
|00003710| 2f 20 64 65 61 6c 20 77 | 69 74 68 20 43 72 65 61 |/ deal w|ith Crea|
|00003720| 74 6f 72 20 63 6f 6c 75 | 6d 6e 0d 43 61 73 65 20 |tor colu|mn.Case |
|00003730| 65 6c 73 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |else | |
|00003740| 20 3a 20 74 78 74 20 3d | 20 30 0d 45 6e 64 20 53 | : txt =| 0.End S|
|00003750| 65 6c 65 63 74 0d 74 78 | 74 20 3d 20 46 6e 20 43 |elect.tx|t = Fn C|
|00003760| 46 53 74 72 69 6e 67 43 | 72 65 61 74 65 57 69 74 |FStringC|reateWit|
|00003770| 68 50 61 73 63 61 6c 53 | 74 72 69 6e 67 28 20 46 |hPascalS|tring( F|
|00003780| 6e 20 43 46 41 6c 6c 6f | 63 61 74 6f 72 47 65 74 |n CFAllo|catorGet|
|00003790| 44 65 66 61 75 6c 74 2c | 20 6d 6b 69 24 28 74 78 |Default,| mki$(tx|
|000037a0| 74 29 2c 20 5f 6b 43 46 | 53 74 72 69 6e 67 45 6e |t), _kCF|StringEn|
|000037b0| 63 6f 64 69 6e 67 4d 61 | 63 52 6f 6d 61 6e 20 29 |codingMa|cRoman )|
|000037c0| 0d 65 72 72 20 3d 20 46 | 6e 20 53 65 74 44 61 74 |.err = F|n SetDat|
|000037d0| 61 42 72 6f 77 73 65 72 | 49 74 65 6d 44 61 74 61 |aBrowser|ItemData|
|000037e0| 54 65 78 74 28 20 69 74 | 65 6d 44 61 74 61 2c 20 |Text( it|emData, |
|000037f0| 74 78 74 20 29 20 3a 20 | 43 46 52 65 6c 65 61 73 |txt ) : |CFReleas|
|00003800| 65 28 20 74 78 74 20 29 | 0d 45 6e 64 20 49 66 0d |e( txt )|.End If.|
|00003810| 0d 43 61 73 65 20 5f 6b | 44 61 74 61 42 72 6f 77 |.Case _k|DataBrow|
|00003820| 73 65 72 49 74 65 6d 49 | 73 43 6f 6e 74 61 69 6e |serItemI|sContain|
|00003830| 65 72 50 72 6f 70 65 72 | 74 79 2f 2f 20 69 73 20 |erProper|ty// is |
|00003840| 74 68 61 74 20 69 74 65 | 6d 20 61 20 63 6f 6e 74 |that ite|m a cont|
|00003850| 61 69 6e 65 72 3f 0d 0d | 65 72 72 20 3d 20 46 6e |ainer?..|err = Fn|
|00003860| 20 53 65 74 44 61 74 61 | 42 72 6f 77 73 65 72 49 | SetData|BrowserI|
|00003870| 74 65 6d 44 61 74 61 42 | 6f 6f 6c 65 61 6e 56 61 |temDataB|ooleanVa|
|00003880| 6c 75 65 28 20 69 74 65 | 6d 44 61 74 61 2c 20 28 |lue( ite|mData, (|
|00003890| 66 54 79 70 65 20 3d 20 | 5f 22 66 6c 64 72 22 29 |fType = |_"fldr")|
|000038a0| 20 29 2f 2f 20 61 6e 73 | 77 65 72 20 74 72 75 65 | )// ans|wer true|
|000038b0| 20 69 66 20 74 68 65 20 | 69 74 65 6d 20 69 73 20 | if the |item is |
|000038c0| 61 20 66 6f 6c 64 65 72 | 0d 0d 43 61 73 65 20 65 |a folder|..Case e|
|000038d0| 6c 73 65 3a 0d 0d 65 72 | 72 20 3d 20 5f 65 72 72 |lse:..er|r = _err|
|000038e0| 44 61 74 61 42 72 6f 77 | 73 65 72 50 72 6f 70 65 |DataBrow|serPrope|
|000038f0| 72 74 79 4e 6f 74 53 75 | 70 70 6f 72 74 65 64 0d |rtyNotSu|pported.|
|00003900| 0d 45 6e 64 20 53 65 6c | 65 63 74 0d 0d 78 65 6c |.End Sel|ect..xel|
|00003910| 73 65 0d 2f 2a 0d 20 20 | 20 20 20 54 68 65 20 65 |se./*. | The e|
|00003920| 6e 64 20 75 73 65 72 20 | 68 61 73 20 61 6c 74 65 |nd user |has alte|
|00003930| 72 65 64 20 74 68 65 20 | 63 65 6c 6c 20 69 66 20 |red the |cell if |
|00003940| 77 65 20 63 6f 6d 65 20 | 68 65 72 65 2e 0d 20 20 |we come |here.. |
|00003950| 20 20 20 46 6f 72 20 74 | 65 73 74 69 6e 67 20 77 | For t|esting w|
|00003960| 69 74 68 20 74 68 65 20 | 63 6f 6c 6f 72 20 63 6f |ith the |color co|
|00003970| 6c 75 6d 6e 0d 2a 2f 0d | 65 72 72 20 3d 20 5f 65 |lumn.*/.|err = _e|
|00003980| 72 72 44 61 74 61 42 72 | 6f 77 73 65 72 50 72 6f |rrDataBr|owserPro|
|00003990| 70 65 72 74 79 4e 6f 74 | 53 75 70 70 6f 72 74 65 |pertyNot|Supporte|
|000039a0| 64 0d 0d 45 6e 64 20 49 | 66 0d 0d 45 6e 64 20 46 |d..End I|f..End F|
|000039b0| 6e 20 3d 20 65 72 72 0d | 0d 0d 2f 2a 0d 20 20 20 |n = err.|../*. |
|000039c0| 20 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 | This f|unction |
|000039d0| 63 61 6c 6c 65 64 20 62 | 79 20 74 68 65 20 49 74 |called b|y the It|
|000039e0| 65 6d 4e 6f 74 69 66 69 | 63 61 74 69 6f 6e 20 63 |emNotifi|cation c|
|000039f0| 61 6c 6c 62 61 63 6b 20 | 70 72 6f 63 65 64 75 72 |allback |procedur|
|00003a00| 65 0d 20 20 20 20 20 77 | 69 6c 6c 20 72 65 63 65 |e. w|ill rece|
|00003a10| 69 76 65 20 73 6f 6d 65 | 20 69 6e 74 65 72 65 73 |ive some| interes|
|00003a20| 74 69 6e 67 20 6d 65 73 | 73 61 67 65 20 63 6f 6d |ting mes|sage com|
|00003a30| 69 6e 67 20 66 72 6f 6d | 20 74 68 65 20 44 61 74 |ing from| the Dat|
|00003a40| 61 42 72 6f 77 73 65 72 | 2e 0d 20 20 20 20 20 46 |aBrowser|.. F|
|00003a50| 6f 72 20 6f 75 72 20 70 | 75 72 70 6f 73 65 2c 20 |or our p|urpose, |
|00003a60| 77 65 20 61 72 65 20 69 | 6e 74 65 72 65 73 74 65 |we are i|ntereste|
|00003a70| 64 20 74 6f 20 6b 6e 6f | 77 20 77 68 65 6e 20 61 |d to kno|w when a|
|00003a80| 20 63 6f 6e 74 61 69 6e | 65 72 20 69 73 0d 20 20 | contain|er is. |
|00003a90| 20 20 20 6f 70 65 6e 65 | 64 20 73 6f 20 74 68 61 | opene|d so tha|
|00003aa0| 74 20 77 65 20 63 61 6e | 20 61 64 64 20 74 68 65 |t we can| add the|
|00003ab0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 73 75 62 | appropr|iate sub|
|00003ac0| 49 74 65 6d 73 2e 0d 2a | 2f 0d 43 6c 65 61 72 20 |Items..*|/.Clear |
|00003ad0| 4c 6f 63 61 6c 20 46 6e | 20 4d 79 49 74 65 6d 4e |Local Fn| MyItemN|
|00003ae0| 6f 74 69 66 69 63 61 74 | 69 6f 6e 28 20 62 72 6f |otificat|ion( bro|
|00003af0| 77 73 65 72 20 41 73 20 | 43 6f 6e 74 72 6f 6c 52 |wser As |ControlR|
|00003b00| 65 66 2c 20 69 74 65 6d | 49 44 20 41 73 20 44 61 |ef, item|ID As Da|
|00003b10| 74 61 42 72 6f 77 73 65 | 72 49 74 65 6d 49 44 2c |taBrowse|rItemID,|
|00003b20| 20 6d 65 73 73 61 67 65 | 20 41 73 20 44 61 74 61 | message| As Data|
|00003b30| 42 72 6f 77 73 65 72 49 | 74 65 6d 4e 6f 74 69 66 |BrowserI|temNotif|
|00003b40| 69 63 61 74 69 6f 6e 20 | 29 0d 27 7e 27 39 0d 44 |ication |).'~'9.D|
|00003b50| 69 6d 20 41 73 20 4f 53 | 53 74 61 74 75 73 20 20 |im As OS|Status |
|00003b60| 20 20 20 20 20 20 20 20 | 20 20 65 72 72 0d 44 69 | | err.Di|
|00003b70| 6d 20 41 73 20 55 49 6e | 74 33 32 20 20 20 20 20 |m As UIn|t32 |
|00003b80| 20 20 20 20 20 20 20 20 | 20 69 2c 20 6e 75 6d 49 | | i, numI|
|00003b90| 74 65 6d 73 0d 44 69 6d | 20 41 73 20 44 61 74 61 |tems.Dim| As Data|
|00003ba0| 42 72 6f 77 73 65 72 49 | 74 65 6d 49 44 20 40 20 |BrowserI|temID @ |
|00003bb0| 63 68 69 6c 64 49 74 65 | 6d 49 44 0d 44 69 6d 20 |childIte|mID.Dim |
|00003bc0| 41 73 20 48 61 6e 64 6c | 65 20 20 20 20 20 20 20 |As Handl|e |
|00003bd0| 20 20 20 20 20 20 20 73 | 75 62 49 74 65 6d 73 0d | s|ubItems.|
|00003be0| 0d 53 65 6c 65 63 74 20 | 6d 65 73 73 61 67 65 0d |.Select |message.|
|00003bf0| 0d 43 61 73 65 20 5f 6b | 44 61 74 61 42 72 6f 77 |.Case _k|DataBrow|
|00003c00| 73 65 72 43 6f 6e 74 61 | 69 6e 65 72 4f 70 65 6e |serConta|inerOpen|
|00003c10| 65 64 3a 2f 2f 20 61 20 | 63 6f 6e 74 61 69 6e 65 |ed:// a |containe|
|00003c20| 72 20 68 61 73 20 62 65 | 65 6e 20 6f 70 65 6e 65 |r has be|en opene|
|00003c30| 64 0d 0d 73 75 62 49 74 | 65 6d 73 20 3d 20 46 6e |d..subIt|ems = Fn|
|00003c40| 20 4e 65 77 48 61 6e 64 | 6c 65 28 20 30 20 29 2f | NewHand|le( 0 )/|
|00003c50| 2f 20 77 65 20 77 69 6c | 6c 20 70 72 65 70 61 72 |/ we wil|l prepar|
|00003c60| 65 20 6f 75 72 20 61 72 | 72 61 79 20 6f 66 20 73 |e our ar|ray of s|
|00003c70| 75 62 49 74 65 6d 73 20 | 69 6e 20 61 20 68 61 6e |ubItems |in a han|
|00003c80| 64 6c 65 0d 49 66 20 73 | 75 62 49 74 65 6d 73 20 |dle.If s|ubItems |
|00003c90| 3d 20 5f 6e 69 6c 20 74 | 68 65 6e 20 45 78 69 74 |= _nil t|hen Exit|
|00003ca0| 20 46 6e 0d 0d 6e 75 6d | 49 74 65 6d 73 20 3d 20 | Fn..num|Items = |
|00003cb0| 46 6e 20 55 42 6f 75 6e | 64 28 67 46 69 6c 65 73 |Fn UBoun|d(gFiles|
|00003cc0| 29 2f 2f 20 72 65 74 72 | 69 65 76 65 20 74 68 65 |)// retr|ieve the|
|00003cd0| 20 69 74 65 6d 20 63 6f | 75 6e 74 20 69 6e 20 6f | item co|unt in o|
|00003ce0| 75 72 20 64 79 6e 61 6d | 69 63 20 61 72 72 61 79 |ur dynam|ic array|
|00003cf0| 0d 2f 2a 0d 20 20 20 20 | 20 42 65 6c 6f 77 20 77 |./*. | Below w|
|00003d00| 65 20 73 74 61 72 74 20 | 74 68 65 20 6c 6f 6f 70 |e start |the loop|
|00003d10| 20 61 74 20 32 20 27 63 | 6f 73 20 77 65 20 64 6f | at 2 'c|os we do|
|00003d20| 6e 27 74 20 75 73 65 20 | 69 6e 64 65 78 20 30 20 |n't use |index 0 |
|00003d30| 66 6f 72 20 6f 75 72 0d | 20 20 20 20 20 64 79 6e |for our.| dyn|
|00003d40| 61 6d 69 63 20 61 72 72 | 61 79 2c 20 6e 65 69 74 |amic arr|ay, neit|
|00003d50| 68 65 72 20 69 6e 64 65 | 78 20 31 20 73 69 6e 63 |her inde|x 1 sinc|
|00003d60| 65 20 74 68 65 20 6c 61 | 74 74 65 72 20 69 73 20 |e the la|tter is |
|00003d70| 72 65 73 65 72 76 65 64 | 20 66 6f 72 0d 20 20 20 |reserved| for. |
|00003d80| 20 20 74 68 65 20 66 6f | 6c 64 65 72 20 63 68 6f | the fo|lder cho|
|00003d90| 73 65 6e 20 62 79 20 74 | 68 65 20 65 6e 64 2d 75 |sen by t|he end-u|
|00003da0| 73 65 72 20 61 6e 64 20 | 77 65 20 64 6f 6e 27 74 |ser and |we don't|
|00003db0| 20 77 61 6e 74 20 69 74 | 20 74 6f 20 61 70 70 65 | want it| to appe|
|00003dc0| 61 72 0d 20 20 20 20 20 | 69 6e 20 74 68 65 20 6c |ar. |in the l|
|00003dd0| 69 73 74 2e 0d 2a 2f 0d | 46 6f 72 20 69 20 3d 20 |ist..*/.|For i = |
|00003de0| 32 20 54 6f 20 6e 75 6d | 49 74 65 6d 73 0d 4c 6f |2 To num|Items.Lo|
|00003df0| 6e 67 20 49 66 20 67 46 | 69 6c 65 73 2e 70 61 72 |ng If gF|iles.par|
|00003e00| 65 6e 74 28 69 29 20 3d | 20 69 74 65 6d 49 44 2f |ent(i) =| itemID/|
|00003e10| 2f 20 69 66 20 74 68 65 | 20 70 61 72 65 6e 74 20 |/ if the| parent |
|00003e20| 69 74 65 6d 49 44 20 6f | 66 20 74 68 61 74 20 69 |itemID o|f that i|
|00003e30| 74 65 6d 20 69 73 20 74 | 68 65 20 69 74 65 6d 49 |tem is t|he itemI|
|00003e40| 44 20 6f 66 20 74 68 65 | 20 6f 70 65 6e 65 64 20 |D of the| opened |
|00003e50| 63 6f 6e 74 61 69 6e 65 | 72 0d 63 68 69 6c 64 49 |containe|r.childI|
|00003e60| 74 65 6d 49 44 20 3d 20 | 67 46 69 6c 65 73 2e 69 |temID = |gFiles.i|
|00003e70| 74 65 6d 49 44 28 69 29 | 2f 2f 20 77 65 20 63 61 |temID(i)|// we ca|
|00003e80| 6e 20 61 70 70 65 6e 64 | 20 74 68 61 74 20 69 74 |n append| that it|
|00003e90| 65 6d 20 28 69 74 73 20 | 69 74 65 6d 49 44 29 20 |em (its |itemID) |
|00003ea0| 74 6f 20 6f 75 72 20 6c | 69 73 74 0d 4c 6f 6e 67 |to our l|ist.Long|
|00003eb0| 20 49 66 20 46 6e 20 50 | 74 72 41 6e 64 48 61 6e | If Fn P|trAndHan|
|00003ec0| 64 28 20 40 63 68 69 6c | 64 49 74 65 6d 49 44 2c |d( @chil|dItemID,|
|00003ed0| 20 73 75 62 49 74 65 6d | 73 2c 20 53 69 7a 65 6f | subItem|s, Sizeo|
|00003ee0| 66 28 44 61 74 61 42 72 | 6f 77 73 65 72 49 74 65 |f(DataBr|owserIte|
|00003ef0| 6d 49 44 29 20 29 20 21 | 3d 20 5f 6e 6f 45 72 72 |mID) ) !|= _noErr|
|00003f00| 0d 44 69 73 70 6f 73 65 | 48 61 6e 64 6c 65 28 20 |.Dispose|Handle( |
|00003f10| 73 75 62 49 74 65 6d 73 | 20 29 20 3a 20 73 75 62 |subItems| ) : sub|
|00003f20| 49 74 65 6d 73 20 3d 20 | 5f 6e 69 6c 20 3a 20 45 |Items = |_nil : E|
|00003f30| 78 69 74 20 46 6e 2f 2f | 20 63 6c 65 61 6e 20 75 |xit Fn//| clean u|
|00003f40| 70 20 74 68 65 20 6d 65 | 6d 6f 72 79 20 69 66 20 |p the me|mory if |
|00003f50| 61 6e 20 65 72 72 6f 72 | 20 6f 63 63 75 72 73 0d |an error| occurs.|
|00003f60| 45 6e 64 20 49 66 0d 45 | 6e 64 20 49 66 0d 4e 65 |End If.E|nd If.Ne|
|00003f70| 78 74 0d 0d 48 4c 6f 63 | 6b 28 20 73 75 62 49 74 |xt..HLoc|k( subIt|
|00003f80| 65 6d 73 20 29 2f 2f 20 | 6e 6f 77 20 77 65 20 63 |ems )// |now we c|
|00003f90| 61 6e 20 61 64 64 20 74 | 68 65 20 69 74 65 6d 49 |an add t|he itemI|
|00003fa0| 44 73 20 69 6e 20 74 68 | 65 20 44 61 74 61 42 72 |Ds in th|e DataBr|
|00003fb0| 6f 77 73 65 72 20 63 6f | 6e 74 72 6f 6c 0d 65 72 |owser co|ntrol.er|
|00003fc0| 72 20 3d 20 46 6e 20 41 | 64 64 44 61 74 61 42 72 |r = Fn A|ddDataBr|
|00003fd0| 6f 77 73 65 72 49 74 65 | 6d 73 28 20 62 72 6f 77 |owserIte|ms( brow|
|00003fe0| 73 65 72 2c 20 69 74 65 | 6d 49 44 2c 20 46 6e 20 |ser, ite|mID, Fn |
|00003ff0| 47 65 74 48 61 6e 64 6c | 65 53 69 7a 65 28 20 73 |GetHandl|eSize( s|
|00004000| 75 62 49 74 65 6d 73 20 | 29 20 5c 5c 20 53 69 7a |ubItems |) \\ Siz|
|00004010| 65 6f 66 28 44 61 74 61 | 42 72 6f 77 73 65 72 49 |eof(Data|BrowserI|
|00004020| 74 65 6d 49 44 29 20 2c | 20 23 5b 73 75 62 49 74 |temID) ,| #[subIt|
|00004030| 65 6d 73 5d 2c 20 5f 6b | 44 61 74 61 42 72 6f 77 |ems], _k|DataBrow|
|00004040| 73 65 72 4f 72 64 65 72 | 44 65 63 72 65 61 73 69 |serOrder|Decreasi|
|00004050| 6e 67 20 29 0d 48 55 6e | 6c 6f 63 6b 28 20 73 75 |ng ).HUn|lock( su|
|00004060| 62 49 74 65 6d 73 20 29 | 0d 44 69 73 70 6f 73 65 |bItems )|.Dispose|
|00004070| 48 61 6e 64 6c 65 28 20 | 73 75 62 49 74 65 6d 73 |Handle( |subItems|
|00004080| 20 29 0d 0d 43 61 73 65 | 20 5f 6b 44 61 74 61 42 | )..Case| _kDataB|
|00004090| 72 6f 77 73 65 72 53 65 | 6c 65 63 74 69 6f 6e 53 |rowserSe|lectionS|
|000040a0| 65 74 43 68 61 6e 67 65 | 64 3a 0d 0d 45 6e 64 20 |etChange|d:..End |
|000040b0| 53 65 6c 65 63 74 0d 0d | 45 6e 64 20 46 6e 0d 0d |Select..|End Fn..|
|000040c0| 27 7e 12 2d 2d 2d 2d 2d | 2d 2d 0d 27 7e 12 44 61 |'~.-----|--.'~.Da|
|000040d0| 74 61 42 72 6f 77 73 65 | 72 20 49 6e 73 74 61 6c |taBrowse|r Instal|
|000040e0| 6c 69 6e 67 0d 27 7e 27 | 3b 0d 2f 2a 0d 20 20 20 |ling.'~'|;./*. |
|000040f0| 20 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 | This f|unction |
|00004100| 63 72 65 61 74 65 73 20 | 74 68 65 20 44 61 74 61 |creates |the Data|
|00004110| 42 72 6f 77 73 65 72 2e | 20 49 74 20 77 69 6c 6c |Browser.| It will|
|00004120| 0d 20 20 20 20 20 73 69 | 7a 65 20 74 68 65 20 44 |. si|ze the D|
|00004130| 61 74 61 42 72 6f 77 73 | 65 72 20 63 6f 6e 74 72 |ataBrows|er contr|
|00004140| 6f 6c 20 74 6f 20 6d 61 | 74 63 68 20 74 68 65 20 |ol to ma|tch the |
|00004150| 63 6f 6e 74 65 6e 74 0d | 20 20 20 20 20 61 72 65 |content.| are|
|00004160| 61 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 2c |a of the| window,|
|00004170| 20 74 68 65 6e 20 72 65 | 6d 6f 76 65 20 74 68 65 | then re|move the|
|00004180| 20 61 75 74 6f 6d 61 74 | 69 63 0d 20 20 20 20 20 | automat|ic. |
|00004190| 66 6f 63 75 73 20 72 69 | 6e 67 20 6f 66 20 74 68 |focus ri|ng of th|
|000041a0| 65 20 44 61 74 61 42 72 | 6f 77 73 65 72 2e 0d 2a |e DataBr|owser..*|
|000041b0| 2f 0d 43 6c 65 61 72 20 | 4c 6f 63 61 6c 20 46 6e |/.Clear |Local Fn|
|000041c0| 20 43 72 65 61 74 65 44 | 61 74 61 42 72 6f 77 73 | CreateD|ataBrows|
|000041d0| 65 72 28 20 77 52 65 66 | 20 41 73 20 57 69 6e 64 |er( wRef| As Wind|
|000041e0| 6f 77 52 65 66 20 29 0d | 27 7e 27 39 0d 44 69 6d |owRef ).|'~'9.Dim|
|000041f0| 20 41 73 20 52 65 63 74 | 20 20 20 20 20 20 20 20 | As Rect| |
|00004200| 20 72 0d 44 69 6d 20 41 | 73 20 43 6f 6e 74 72 6f | r.Dim A|s Contro|
|00004210| 6c 52 65 66 20 40 20 62 | 72 6f 77 73 65 72 0d 44 |lRef @ b|rowser.D|
|00004220| 69 6d 20 41 73 20 42 6f | 6f 6c 65 61 6e 20 20 20 |im As Bo|olean |
|00004230| 20 40 20 66 72 61 6d 65 | 41 6e 64 46 6f 63 75 73 | @ frame|AndFocus|
|00004240| 0d 0d 4c 6f 6e 67 20 49 | 66 20 46 6e 20 47 65 74 |..Long I|f Fn Get|
|00004250| 57 69 6e 64 6f 77 42 6f | 75 6e 64 73 28 20 77 52 |WindowBo|unds( wR|
|00004260| 65 66 2c 20 5f 6b 57 69 | 6e 64 6f 77 43 6f 6e 74 |ef, _kWi|ndowCont|
|00004270| 65 6e 74 52 67 6e 2c 20 | 72 20 29 20 3d 20 5f 6e |entRgn, |r ) = _n|
|00004280| 6f 45 72 72 0d 4f 66 66 | 73 65 74 52 65 63 74 28 |oErr.Off|setRect(|
|00004290| 20 72 2c 20 2d 72 2e 6c | 65 66 74 2c 20 2d 72 2e | r, -r.l|eft, -r.|
|000042a0| 74 6f 70 20 29 0d 4c 6f | 6e 67 20 49 66 20 46 6e |top ).Lo|ng If Fn|
|000042b0| 20 43 72 65 61 74 65 44 | 61 74 61 42 72 6f 77 73 | CreateD|ataBrows|
|000042c0| 65 72 43 6f 6e 74 72 6f | 6c 28 20 77 52 65 66 2c |erContro|l( wRef,|
|000042d0| 20 72 2c 20 5f 6b 44 61 | 74 61 42 72 6f 77 73 65 | r, _kDa|taBrowse|
|000042e0| 72 4c 69 73 74 56 69 65 | 77 2c 20 62 72 6f 77 73 |rListVie|w, brows|
|000042f0| 65 72 20 29 20 3d 20 5f | 6e 6f 45 72 72 0d 2f 2f |er ) = _|noErr.//|
|00004300| 20 54 75 72 6e 20 6f 66 | 66 20 44 42 27 73 20 66 | Turn of|f DB's f|
|00004310| 6f 63 75 73 20 66 72 61 | 6d 65 0d 4c 6f 6e 67 20 |ocus fra|me.Long |
|00004320| 49 66 20 46 6e 20 53 65 | 74 43 6f 6e 74 72 6f 6c |If Fn Se|tControl|
|00004330| 44 61 74 61 28 20 62 72 | 6f 77 73 65 72 2c 20 5f |Data( br|owser, _|
|00004340| 6b 43 6f 6e 74 72 6f 6c | 4e 6f 50 61 72 74 2c 20 |kControl|NoPart, |
|00004350| 5f 6b 43 6f 6e 74 72 6f | 6c 44 61 74 61 42 72 6f |_kContro|lDataBro|
|00004360| 77 73 65 72 49 6e 63 6c | 75 64 65 73 46 72 61 6d |wserIncl|udesFram|
|00004370| 65 41 6e 64 46 6f 63 75 | 73 54 61 67 2c 20 53 69 |eAndFocu|sTag, Si|
|00004380| 7a 65 6f 66 28 66 72 61 | 6d 65 41 6e 64 46 6f 63 |zeof(fra|meAndFoc|
|00004390| 75 73 29 2c 20 66 72 61 | 6d 65 41 6e 64 46 6f 63 |us), fra|meAndFoc|
|000043a0| 75 73 20 29 0d 45 6e 64 | 20 49 66 0d 45 6e 64 20 |us ).End| If.End |
|000043b0| 49 66 0d 45 6e 64 20 49 | 66 0d 0d 45 6e 64 20 46 |If.End I|f..End F|
|000043c0| 6e 20 3d 20 62 72 6f 77 | 73 65 72 0d 0d 27 7e 27 |n = brow|ser..'~'|
|000043d0| 3b 0d 2f 2a 0d 20 20 20 | 20 20 54 68 69 73 20 66 |;./*. | This f|
|000043e0| 75 6e 63 74 69 6f 6e 20 | 73 65 74 73 20 61 6c 6c |unction |sets all|
|000043f0| 20 74 68 65 20 63 61 6c | 6c 62 61 63 6b 20 70 72 | the cal|lback pr|
|00004400| 6f 63 65 64 75 72 65 73 | 20 74 68 61 74 20 74 68 |ocedures| that th|
|00004410| 65 20 44 61 74 61 42 72 | 6f 77 73 65 72 0d 20 20 |e DataBr|owser. |
|00004420| 20 20 20 77 69 6c 6c 20 | 75 73 65 20 69 6e 20 74 | will |use in t|
|00004430| 68 69 73 20 64 65 6d 6f | 20 74 6f 20 63 6f 6d 6d |his demo| to comm|
|00004440| 75 6e 69 63 61 74 65 20 | 77 69 74 68 20 74 68 65 |unicate |with the|
|00004450| 20 70 72 6f 67 72 61 6d | 2e 0d 20 20 20 20 20 54 | program|.. T|
|00004460| 68 65 72 65 20 69 73 20 | 61 20 62 75 6e 63 68 20 |here is |a bunch |
|00004470| 6f 66 20 20 63 61 6c 6c | 62 61 63 6b 20 72 6f 75 |of call|back rou|
|00004480| 74 69 6e 65 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |tines av|ailable |
|00004490| 66 6f 72 20 74 68 65 20 | 63 75 73 74 6f 6d 69 7a |for the |customiz|
|000044a0| 61 74 69 6f 6e 0d 20 20 | 20 20 20 6f 66 20 74 68 |ation. | of th|
|000044b0| 65 20 44 61 74 61 42 72 | 6f 77 73 65 72 20 63 6f |e DataBr|owser co|
|000044c0| 6e 74 72 6f 6c 2e 20 48 | 65 72 65 2c 20 77 65 20 |ntrol. H|ere, we |
|000044d0| 75 73 65 20 74 68 65 20 | 6f 6e 6c 79 20 74 77 6f |use the |only two|
|000044e0| 20 77 68 69 63 68 20 61 | 72 65 0d 20 20 20 20 20 | which a|re. |
|000044f0| 72 65 71 75 69 72 65 64 | 20 74 6f 20 64 69 73 70 |required| to disp|
|00004500| 6c 61 79 20 61 20 68 69 | 65 72 61 72 63 68 69 63 |lay a hi|erarchic|
|00004510| 61 6c 20 6c 69 73 74 2e | 0d 2a 2f 0d 43 6c 65 61 |al list.|.*/.Clea|
|00004520| 72 20 4c 6f 63 61 6c 20 | 46 6e 20 49 6e 73 74 61 |r Local |Fn Insta|
|00004530| 6c 6c 44 61 74 61 42 72 | 6f 77 73 65 72 43 61 6c |llDataBr|owserCal|
|00004540| 6c 62 61 63 6b 73 28 20 | 62 72 6f 77 73 65 72 20 |lbacks( |browser |
|00004550| 41 73 20 43 6f 6e 74 72 | 6f 6c 52 65 66 20 29 0d |As Contr|olRef ).|
|00004560| 27 7e 27 39 0d 44 69 6d | 20 41 73 20 4f 53 53 74 |'~'9.Dim| As OSSt|
|00004570| 61 74 75 73 20 20 20 20 | 20 20 20 20 20 20 20 20 |atus | |
|00004580| 20 20 20 65 72 72 0d 44 | 69 6d 20 41 73 20 44 61 | err.D|im As Da|
|00004590| 74 61 42 72 6f 77 73 65 | 72 43 61 6c 6c 62 61 63 |taBrowse|rCallbac|
|000045a0| 6b 73 20 40 20 6d 79 43 | 61 6c 6c 62 61 63 6b 73 |ks @ myC|allbacks|
|000045b0| 0d 0d 6d 79 43 61 6c 6c | 62 61 63 6b 73 2e 76 65 |..myCall|backs.ve|
|000045c0| 72 73 69 6f 6e 20 3d 20 | 5f 6b 44 61 74 61 42 72 |rsion = |_kDataBr|
|000045d0| 6f 77 73 65 72 4c 61 74 | 65 73 74 43 61 6c 6c 62 |owserLat|estCallb|
|000045e0| 61 63 6b 73 2f 2f 55 73 | 65 20 6c 61 74 65 73 74 |acks//Us|e latest|
|000045f0| 20 6c 61 79 6f 75 74 20 | 61 6e 64 20 63 61 6c 6c | layout |and call|
|00004600| 62 61 63 6b 20 73 69 67 | 6e 61 74 75 72 65 73 0d |back sig|natures.|
|00004610| 0d 65 72 72 20 3d 20 46 | 6e 20 49 6e 69 74 44 61 |.err = F|n InitDa|
|00004620| 74 61 42 72 6f 77 73 65 | 72 43 61 6c 6c 62 61 63 |taBrowse|rCallbac|
|00004630| 6b 73 28 20 6d 79 43 61 | 6c 6c 62 61 63 6b 73 20 |ks( myCa|llbacks |
|00004640| 29 0d 6d 79 43 61 6c 6c | 62 61 63 6b 73 2e 75 2e |).myCall|backs.u.|
|00004650| 69 74 65 6d 44 61 74 61 | 43 61 6c 6c 62 61 63 6b |itemData|Callback|
|00004660| 20 20 20 20 20 20 20 20 | 20 3d 20 46 6e 20 4e 65 | | = Fn Ne|
|00004670| 77 44 61 74 61 42 72 6f | 77 73 65 72 49 74 65 6d |wDataBro|wserItem|
|00004680| 44 61 74 61 55 50 50 20 | 20 20 20 20 20 20 20 20 |DataUPP | |
|00004690| 28 20 5b 50 72 6f 63 20 | 22 47 65 74 53 65 74 49 |( [Proc |"GetSetI|
|000046a0| 74 65 6d 44 61 74 61 50 | 72 6f 63 22 20 20 20 2b |temDataP|roc" +|
|000046b0| 20 5f 46 42 70 72 6f 63 | 54 6f 50 72 6f 63 50 74 | _FBproc|ToProcPt|
|000046c0| 72 4f 66 66 73 65 74 5d | 20 29 0d 6d 79 43 61 6c |rOffset]| ).myCal|
|000046d0| 6c 62 61 63 6b 73 2e 75 | 2e 69 74 65 6d 4e 6f 74 |lbacks.u|.itemNot|
|000046e0| 69 66 69 63 61 74 69 6f | 6e 43 61 6c 6c 62 61 63 |ificatio|nCallbac|
|000046f0| 6b 20 3d 20 46 6e 20 4e | 65 77 44 61 74 61 42 72 |k = Fn N|ewDataBr|
|00004700| 6f 77 73 65 72 49 74 65 | 6d 4e 6f 74 69 66 69 63 |owserIte|mNotific|
|00004710| 61 74 69 6f 6e 55 50 50 | 20 28 20 5b 50 72 6f 63 |ationUPP| ( [Proc|
|00004720| 20 22 49 74 65 6d 4e 6f | 74 69 66 69 63 61 74 69 | "ItemNo|tificati|
|00004730| 6f 6e 50 72 6f 63 22 20 | 2b 20 5f 46 42 70 72 6f |onProc" |+ _FBpro|
|00004740| 63 54 6f 50 72 6f 63 50 | 74 72 4f 66 66 73 65 74 |cToProcP|trOffset|
|00004750| 5d 20 29 0d 65 72 72 20 | 3d 20 46 6e 20 53 65 74 |] ).err |= Fn Set|
|00004760| 44 61 74 61 42 72 6f 77 | 73 65 72 43 61 6c 6c 62 |DataBrow|serCallb|
|00004770| 61 63 6b 73 28 20 62 72 | 6f 77 73 65 72 2c 20 6d |acks( br|owser, m|
|00004780| 79 43 61 6c 6c 62 61 63 | 6b 73 20 29 0d 0d 45 6e |yCallbac|ks )..En|
|00004790| 64 20 46 6e 0d 0d 0d 2f | 2a 0d 20 20 20 20 20 54 |d Fn.../|*. T|
|000047a0| 68 65 20 74 77 6f 20 66 | 75 6e 63 74 69 6f 6e 73 |he two f|unctions|
|000047b0| 20 62 65 6c 6f 77 20 69 | 61 72 65 20 6d 65 61 6e | below i|are mean|
|000047c0| 74 20 74 6f 20 73 69 6d | 70 6c 69 66 79 0d 20 20 |t to sim|plify. |
|000047d0| 20 20 20 74 68 65 20 63 | 6f 64 65 2c 20 61 6c 6c | the c|ode, all|
|000047e0| 6f 77 69 6e 67 20 74 6f | 20 61 76 6f 69 64 20 63 |owing to| avoid c|
|000047f0| 75 6d 62 65 72 73 6f 6d | 65 20 73 74 61 74 65 6d |umbersom|e statem|
|00004800| 65 6e 74 73 0d 2a 2f 0d | 27 7e 27 31 0d 0d 2f 2a |ents.*/.|'~'1../*|
|00004810| 0d 20 20 20 20 20 41 66 | 74 65 72 20 63 72 65 61 |. Af|ter crea|
|00004820| 74 69 6e 67 20 74 68 65 | 20 44 61 74 61 42 72 6f |ting the| DataBro|
|00004830| 77 73 65 72 2c 20 79 6f | 75 20 6e 65 65 64 20 74 |wser, yo|u need t|
|00004840| 6f 20 63 6f 6e 66 69 67 | 75 72 65 20 69 74 2e 0d |o config|ure it..|
|00004850| 20 20 20 20 20 54 68 61 | 74 20 69 73 20 74 6f 20 | Tha|t is to |
|00004860| 73 61 79 20 74 6f 20 64 | 65 66 69 6e 65 20 63 6f |say to d|efine co|
|00004870| 6c 75 6d 6e 73 20 61 6e | 64 20 74 68 65 69 72 20 |lumns an|d their |
|00004880| 70 72 6f 70 65 72 74 69 | 65 73 2e 0d 20 20 20 20 |properti|es.. |
|00004890| 20 48 65 72 65 20 61 72 | 65 20 74 68 65 20 63 6f | Here ar|e the co|
|000048a0| 6c 75 6d 6e 20 70 72 6f | 70 65 72 74 79 20 74 79 |lumn pro|perty ty|
|000048b0| 70 65 73 20 79 6f 75 20 | 63 61 6e 20 75 73 65 3a |pes you |can use:|
|000048c0| 0d 0d 20 20 20 20 20 20 | 20 20 20 20 63 6f 6e 73 |.. | cons|
|000048d0| 74 61 6e 74 20 6e 61 6d | 65 73 20 20 20 20 20 20 |tant nam|es |
|000048e0| 20 20 20 20 20 20 20 20 | 20 20 20 63 65 6c 6c 27 | | cell'|
|000048f0| 73 20 63 6f 6e 74 65 6e | 74 73 20 61 72 65 20 73 |s conten|ts are s|
|00004900| 65 74 20 77 69 74 68 0d | 20 20 20 20 20 5f 6b 44 |et with.| _kD|
|00004910| 61 74 61 42 72 6f 77 73 | 65 72 43 75 73 74 6f 6d |ataBrows|erCustom|
|00004920| 54 79 70 65 20 20 20 20 | 20 20 20 20 4e 6f 20 61 |Type | No a|
|00004930| 73 73 6f 63 69 61 74 65 | 64 20 64 61 74 61 20 28 |ssociate|d data (|
|00004940| 6d 75 73 74 20 75 73 65 | 20 63 75 73 74 6f 6d 20 |must use| custom |
|00004950| 63 61 6c 6c 62 61 63 6b | 73 29 0d 20 20 20 20 20 |callback|s). |
|00004960| 5f 6b 44 61 74 61 42 72 | 6f 77 73 65 72 49 63 6f |_kDataBr|owserIco|
|00004970| 6e 54 79 70 65 20 20 20 | 20 20 20 20 20 20 20 49 |nType | I|
|00004980| 63 6f 6e 52 65 66 2c 20 | 49 63 6f 6e 54 72 61 6e |conRef, |IconTran|
|00004990| 73 66 6f 72 6d 54 79 70 | 65 2c 20 52 47 42 43 6f |sformTyp|e, RGBCo|
|000049a0| 6c 6f 72 20 0d 20 20 20 | 20 20 5f 6b 44 61 74 61 |lor . | _kData|
|000049b0| 42 72 6f 77 73 65 72 54 | 65 78 74 54 79 70 65 20 |BrowserT|extType |
|000049c0| 20 20 20 20 20 20 20 20 | 20 43 46 53 74 72 69 6e | | CFStrin|
|000049d0| 67 52 65 66 0d 20 20 20 | 20 20 5f 6b 44 61 74 61 |gRef. | _kData|
|000049e0| 42 72 6f 77 73 65 72 44 | 61 74 65 54 69 6d 65 54 |BrowserD|ateTimeT|
|000049f0| 79 70 65 20 20 20 20 20 | 20 44 61 74 65 54 69 6d |ype | DateTim|
|00004a00| 65 20 6f 72 20 4c 6f 6e | 67 44 61 74 65 54 69 6d |e or Lon|gDateTim|
|00004a10| 65 0d 20 20 20 20 20 5f | 6b 44 61 74 61 42 72 6f |e. _|kDataBro|
|00004a20| 77 73 65 72 53 6c 69 64 | 65 72 54 79 70 65 20 20 |wserSlid|erType |
|00004a30| 20 20 20 20 20 20 4d 69 | 6e 2c 20 4d 61 78 2c 20 | Mi|n, Max, |
|00004a40| 56 61 6c 75 65 0d 20 20 | 20 20 20 5f 6b 44 61 74 |Value. | _kDat|
|00004a50| 61 42 72 6f 77 73 65 72 | 43 68 65 63 6b 62 6f 78 |aBrowser|Checkbox|
|00004a60| 54 79 70 65 20 20 20 20 | 20 20 54 68 65 6d 65 42 |Type | ThemeB|
|00004a70| 75 74 74 6f 6e 56 61 6c | 75 65 0d 20 20 20 20 20 |uttonVal|ue. |
|00004a80| 5f 6b 44 61 74 61 42 72 | 6f 77 73 65 72 50 72 6f |_kDataBr|owserPro|
|00004a90| 67 72 65 73 73 42 61 72 | 54 79 70 65 20 20 20 4d |gressBar|Type M|
|00004aa0| 69 6e 2c 20 4d 61 78 2c | 20 56 61 6c 75 65 0d 20 |in, Max,| Value. |
|00004ab0| 20 20 20 20 5f 6b 44 61 | 74 61 42 72 6f 77 73 65 | _kDa|taBrowse|
|00004ac0| 72 52 65 6c 65 76 61 6e | 63 65 52 61 6e 6b 54 79 |rRelevan|ceRankTy|
|00004ad0| 70 65 20 4d 69 6e 2c 20 | 4d 61 78 2c 20 56 61 6c |pe Min, |Max, Val|
|00004ae0| 75 65 0d 20 20 20 20 20 | 5f 6b 44 61 74 61 42 72 |ue. |_kDataBr|
|00004af0| 6f 77 73 65 72 50 6f 70 | 75 70 4d 65 6e 75 54 79 |owserPop|upMenuTy|
|00004b00| 70 65 20 20 20 20 20 4d | 65 6e 75 52 65 66 2c 20 |pe M|enuRef, |
|00004b10| 56 61 6c 75 65 0d 20 20 | 20 20 20 5f 6b 44 61 74 |Value. | _kDat|
|00004b20| 61 42 72 6f 77 73 65 72 | 49 63 6f 6e 41 6e 64 54 |aBrowser|IconAndT|
|00004b30| 65 78 74 54 79 70 65 20 | 20 20 49 63 6f 6e 52 65 |extType | IconRe|
|00004b40| 66 2c 20 43 46 53 74 72 | 69 6e 67 52 65 66 2c 20 |f, CFStr|ingRef, |
|00004b50| 65 74 63 20 0d 0d 2a 2f | 0d 43 6c 65 61 72 20 4c |etc ..*/|.Clear L|
|00004b60| 6f 63 61 6c 20 4d 6f 64 | 65 0d 4c 6f 63 61 6c 20 |ocal Mod|e.Local |
|00004b70| 46 6e 20 53 65 74 75 70 | 43 6f 6c 75 6d 6e 28 20 |Fn Setup|Column( |
|00004b80| 20 20 20 20 20 20 20 63 | 6f 6c 75 6d 6e 20 41 73 | c|olumn As|
|00004b90| 20 2e 44 61 74 61 42 72 | 6f 77 73 65 72 4c 69 73 | .DataBr|owserLis|
|00004ba0| 74 56 69 65 77 43 6f 6c | 75 6d 6e 44 65 73 63 2c |tViewCol|umnDesc,|
|00004bb0| 20 c2 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | .. | |
|00004bc0| 20 20 20 20 20 20 20 20 | 20 20 20 63 6f 6c 75 6d | | colum|
|00004bd0| 6e 49 44 20 41 73 20 55 | 49 6e 74 33 32 2c 20 c2 |nID As U|Int32, .|
|00004be0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004bf0| 20 20 20 63 6f 6c 75 6d | 6e 50 72 6f 70 65 72 74 | colum|nPropert|
|00004c00| 79 20 41 73 20 44 61 74 | 61 42 72 6f 77 73 65 72 |y As Dat|aBrowser|
|00004c10| 50 72 6f 70 65 72 74 79 | 54 79 70 65 2c 20 c2 0d |Property|Type, ..|
|00004c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c30| 20 20 20 20 20 63 6f 6c | 75 6d 6e 54 69 74 6c 65 | col|umnTitle|
|00004c40| 20 41 73 20 53 74 72 32 | 35 35 2c 20 c2 0d 20 20 | As Str2|55, .. |
|00004c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c60| 20 20 20 63 6f 6c 75 6d | 6e 46 6c 61 67 73 20 41 | colum|nFlags A|
|00004c70| 73 20 44 61 74 61 42 72 | 6f 77 73 65 72 50 72 6f |s DataBr|owserPro|
|00004c80| 70 65 72 74 79 46 6c 61 | 67 73 2c 20 c2 0d 20 20 |pertyFla|gs, .. |
|00004c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ca0| 20 68 65 61 64 65 72 43 | 6f 6e 74 65 6e 74 20 41 | headerC|ontent A|
|00004cb0| 73 20 53 49 6e 74 31 36 | 2c 20 c2 0d 20 20 20 20 |s SInt16|, .. |
|00004cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004cd0| 20 20 20 20 6d 69 6e 57 | 69 64 74 68 20 41 73 20 | minW|idth As |
|00004ce0| 55 49 6e 74 31 36 2c 20 | c2 0d 20 20 20 20 20 20 |UInt16, |.. |
|00004cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004d00| 20 20 6d 61 78 57 69 64 | 74 68 20 41 73 20 55 49 | maxWid|th As UI|
|00004d10| 6e 74 31 36 20 29 0d 27 | 7e 27 39 0d 0d 63 6f 6c |nt16 ).'|~'9..col|
|00004d20| 75 6d 6e 2e 70 72 6f 70 | 65 72 74 79 44 65 73 63 |umn.prop|ertyDesc|
|00004d30| 2e 70 72 6f 70 65 72 74 | 79 49 44 20 20 20 20 3d |.propert|yID =|
|00004d40| 20 63 6f 6c 75 6d 6e 49 | 44 0d 63 6f 6c 75 6d 6e | columnI|D.column|
|00004d50| 2e 70 72 6f 70 65 72 74 | 79 44 65 73 63 2e 70 72 |.propert|yDesc.pr|
|00004d60| 6f 70 65 72 74 79 54 79 | 70 65 20 20 3d 20 63 6f |opertyTy|pe = co|
|00004d70| 6c 75 6d 6e 50 72 6f 70 | 65 72 74 79 0d 63 6f 6c |lumnProp|erty.col|
|00004d80| 75 6d 6e 2e 70 72 6f 70 | 65 72 74 79 44 65 73 63 |umn.prop|ertyDesc|
|00004d90| 2e 70 72 6f 70 65 72 74 | 79 46 6c 61 67 73 20 3d |.propert|yFlags =|
|00004da0| 20 63 6f 6c 75 6d 6e 46 | 6c 61 67 73 0d 0d 63 6f | columnF|lags..co|
|00004db0| 6c 75 6d 6e 2e 68 65 61 | 64 65 72 42 74 6e 44 65 |lumn.hea|derBtnDe|
|00004dc0| 73 63 2e 62 74 6e 43 6f | 6e 74 65 6e 74 49 6e 66 |sc.btnCo|ntentInf|
|00004dd0| 6f 2e 63 6f 6e 74 65 6e | 74 54 79 70 65 20 3d 20 |o.conten|tType = |
|00004de0| 68 65 61 64 65 72 43 6f | 6e 74 65 6e 74 0d 63 6f |headerCo|ntent.co|
|00004df0| 6c 75 6d 6e 2e 68 65 61 | 64 65 72 42 74 6e 44 65 |lumn.hea|derBtnDe|
|00004e00| 73 63 2e 6d 69 6e 69 6d | 75 6d 57 69 64 74 68 20 |sc.minim|umWidth |
|00004e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3d 20 | | = |
|00004e20| 6d 69 6e 57 69 64 74 68 | 0d 63 6f 6c 75 6d 6e 2e |minWidth|.column.|
|00004e30| 68 65 61 64 65 72 42 74 | 6e 44 65 73 63 2e 6d 61 |headerBt|nDesc.ma|
|00004e40| 78 69 6d 75 6d 57 69 64 | 74 68 20 20 20 20 20 20 |ximumWid|th |
|00004e50| 20 20 20 20 20 20 20 20 | 20 3d 20 6d 61 78 57 69 | | = maxWi|
|00004e60| 64 74 68 0d 63 6f 6c 75 | 6d 6e 2e 68 65 61 64 65 |dth.colu|mn.heade|
|00004e70| 72 42 74 6e 44 65 73 63 | 2e 74 69 74 6c 65 53 74 |rBtnDesc|.titleSt|
|00004e80| 72 69 6e 67 20 3d 20 46 | 6e 20 43 46 53 74 72 69 |ring = F|n CFStri|
|00004e90| 6e 67 43 72 65 61 74 65 | 57 69 74 68 50 61 73 63 |ngCreate|WithPasc|
|00004ea0| 61 6c 53 74 72 69 6e 67 | 28 20 46 6e 20 43 46 41 |alString|( Fn CFA|
|00004eb0| 6c 6c 6f 63 61 74 6f 72 | 47 65 74 44 65 66 61 75 |llocator|GetDefau|
|00004ec0| 6c 74 2c 20 63 6f 6c 75 | 6d 6e 54 69 74 6c 65 2c |lt, colu|mnTitle,|
|00004ed0| 20 5f 6b 43 46 53 74 72 | 69 6e 67 45 6e 63 6f 64 | _kCFStr|ingEncod|
|00004ee0| 69 6e 67 4d 61 63 52 6f | 6d 61 6e 20 29 0d 0d 45 |ingMacRo|man )..E|
|00004ef0| 6e 64 20 46 6e 0d 0d 0d | 27 7e 27 39 0d 2f 2a 0d |nd Fn...|'~'9./*.|
|00004f00| 20 20 20 20 20 53 65 74 | 75 70 43 6f 6c 75 6d 6e | Set|upColumn|
|00004f10| 48 65 61 64 65 72 53 74 | 79 6c 65 28 20 63 6f 6c |HeaderSt|yle( col|
|00004f20| 75 6d 6e 2c 20 66 6f 6e | 74 2c 20 73 69 7a 65 2c |umn, fon|t, size,|
|00004f30| 20 66 61 63 65 2c 20 6d | 6f 64 65 2c 6a 75 73 74 | face, m|ode,just|
|00004f40| 20 29 0d 0d 20 20 20 20 | 20 63 6f 6c 75 6d 6e 20 | ).. | column |
|00004f50| 20 20 20 20 3a 20 61 20 | 63 6f 6c 75 6d 6e 20 64 | : a |column d|
|00004f60| 65 73 63 72 69 70 74 6f | 72 0d 0d 20 20 20 20 20 |escripto|r.. |
|00004f70| 66 6f 6e 74 20 20 20 20 | 20 20 20 3a 20 66 6f 6e |font | : fon|
|00004f80| 74 20 49 44 20 75 73 65 | 64 20 69 6e 20 74 68 65 |t ID use|d in the|
|00004f90| 20 68 65 61 64 65 72 20 | 62 75 74 74 6f 6e 20 6f | header |button o|
|00004fa0| 72 20 74 68 65 20 6f 6c | 64 20 63 6f 6e 74 61 6e |r the ol|d contan|
|00004fb0| 74 73 3a 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ts:. | |
|00004fc0| 20 20 20 20 20 20 20 20 | 5f 73 79 73 66 6f 6e 74 | |_sysfont|
|00004fd0| 20 20 20 20 5f 6c 6f 6e | 64 6f 6e 20 20 20 20 20 | _lon|don |
|00004fe0| 20 20 5f 74 69 6d 65 73 | 0d 20 20 20 20 20 20 20 | _times|. |
|00004ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5f 61 70 | | _ap|
|00005000| 70 6c 66 6f 6e 74 20 20 | 20 5f 61 74 68 65 6e 73 |plfont | _athens|
|00005010| 20 20 20 20 20 20 20 5f | 68 65 6c 76 65 74 69 63 | _|helvetic|
|00005020| 61 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |a. | |
|00005030| 20 20 20 20 20 20 5f 6e | 65 77 79 6f 72 6b 20 20 | _n|ewyork |
|00005040| 20 20 5f 73 61 6e 66 72 | 61 6e 20 20 20 20 20 20 | _sanfr|an |
|00005050| 5f 63 6f 75 72 69 65 72 | 0d 20 20 20 20 20 20 20 |_courier|. |
|00005060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 5f 67 65 | | _ge|
|00005070| 6e 65 76 61 20 20 20 20 | 20 5f 74 6f 72 6f 6e 74 |neva | _toront|
|00005080| 6f 20 20 20 20 20 20 5f | 73 79 6d 62 6f 6c 0d 20 |o _|symbol. |
|00005090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000050a0| 20 20 20 5f 6d 6f 6e 61 | 63 6f 20 20 20 20 20 5f | _mona|co _|
|000050b0| 63 61 69 72 6f 20 20 20 | 20 20 20 20 20 5f 6d 6f |cairo | _mo|
|000050c0| 62 69 6c 65 0d 20 20 20 | 20 20 20 20 20 20 20 20 |bile. | |
|000050d0| 20 20 20 20 20 20 20 20 | 20 5f 76 65 6e 69 63 65 | | _venice|
|000050e0| 20 20 20 20 20 5f 6c 6f | 73 61 6e 67 65 6c 65 73 | _lo|sangeles|
|000050f0| 20 20 20 5f 61 70 66 6f | 6e 74 69 64 0d 0d 20 20 | _apfo|ntid.. |
|00005100| 20 20 20 73 69 7a 65 20 | 20 20 20 20 20 3a 20 66 | size | : f|
|00005110| 6f 6e 74 20 73 69 7a 65 | 20 69 6e 20 70 69 78 65 |ont size| in pixe|
|00005120| 6c 73 0d 0d 20 20 20 20 | 20 66 61 63 65 20 20 20 |ls.. | face |
|00005130| 20 20 20 3a 20 66 6f 6e | 74 20 73 74 79 6c 65 2e | : fon|t style.|
|00005140| 20 55 73 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 | Use the| followi|
|00005150| 6e 67 20 63 6f 6e 73 74 | 61 6e 74 73 3a 0d 20 20 |ng const|ants:. |
|00005160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005170| 20 20 5f 62 6f 6c 64 42 | 69 74 25 20 20 20 20 5f | _boldB|it% _|
|00005180| 75 6c 69 6e 65 42 69 74 | 25 20 20 20 20 5f 73 68 |ulineBit|% _sh|
|00005190| 61 64 6f 77 42 69 74 25 | 20 20 20 20 20 0d 20 20 |adowBit%| . |
|000051a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051b0| 20 20 5f 69 74 61 6c 69 | 63 42 69 74 25 20 20 5f | _itali|cBit% _|
|000051c0| 6f 75 74 6c 69 6e 65 42 | 69 74 25 20 20 5f 63 6f |outlineB|it% _co|
|000051d0| 6e 64 65 6e 73 65 42 69 | 74 25 0d 20 20 20 20 20 |ndenseBi|t%. |
|000051e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000051f0| 20 0d 20 20 20 20 20 6d | 6f 64 65 20 20 20 20 20 | . m|ode |
|00005200| 20 3a 20 74 72 61 6e 73 | 66 65 72 20 6d 6f 64 65 | : trans|fer mode|
|00005210| 2e 20 54 72 79 3a 0d 20 | 20 20 20 20 20 20 20 20 |. Try:. | |
|00005220| 20 20 20 20 20 20 20 20 | 20 20 20 5f 73 72 63 43 | | _srcC|
|00005230| 6f 70 79 20 20 20 20 20 | 20 20 5f 6e 6f 74 53 72 |opy | _notSr|
|00005240| 63 43 6f 70 79 20 20 5f | 70 61 74 43 6f 70 79 20 |cCopy _|patCopy |
|00005250| 20 5f 6e 6f 74 50 61 74 | 43 6f 70 79 0d 20 20 20 | _notPat|Copy. |
|00005260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005270| 20 5f 73 72 63 4f 72 20 | 20 20 20 20 20 20 20 20 | _srcOr | |
|00005280| 5f 6e 6f 74 53 72 63 4f | 72 20 20 20 20 5f 70 61 |_notSrcO|r _pa|
|00005290| 74 4f 72 20 20 20 20 5f | 6e 6f 74 50 61 74 4f 72 |tOr _|notPatOr|
|000052a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000052b0| 20 20 20 20 20 5f 73 72 | 63 58 6f 72 20 20 20 20 | _sr|cXor |
|000052c0| 20 20 20 20 5f 6e 6f 74 | 53 72 63 58 6f 72 20 20 | _not|SrcXor |
|000052d0| 20 5f 70 61 74 58 6f 72 | 20 20 20 5f 6e 6f 74 50 | _patXor| _notP|
|000052e0| 61 74 58 6f 72 0d 20 20 | 20 20 20 20 20 20 20 20 |atXor. | |
|000052f0| 20 20 20 20 20 20 20 20 | 20 20 5f 73 72 63 42 69 | | _srcBi|
|00005300| 63 20 20 20 20 20 20 20 | 20 5f 6e 6f 74 53 72 63 |c | _notSrc|
|00005310| 42 69 63 20 20 20 5f 70 | 61 74 42 69 63 20 20 20 |Bic _p|atBic |
|00005320| 5f 6e 6f 74 50 61 74 42 | 69 63 20 20 20 20 20 20 |_notPatB|ic |
|00005330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005340| 20 20 20 20 20 20 20 20 | 20 20 20 0d 20 20 20 20 | | . |
|00005350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005360| 5f 68 69 6c 69 74 65 20 | 20 20 20 20 20 20 20 5f |_hilite | _|
|00005370| 62 6c 65 6e 64 20 20 20 | 20 20 20 20 20 20 20 20 |blend | |
|00005380| 20 20 20 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00005390| 20 20 20 20 20 20 20 20 | 5f 61 64 64 50 69 6e 20 | |_addPin |
|000053a0| 20 20 20 20 20 20 20 5f | 61 64 64 4f 76 65 72 0d | _|addOver.|
|000053b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000053c0| 20 20 20 20 5f 73 75 62 | 50 69 6e 20 20 20 20 20 | _sub|Pin |
|000053d0| 20 20 20 5f 61 64 64 4d | 61 78 0d 20 20 20 20 20 | _addM|ax. |
|000053e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 5f | | _|
|000053f0| 61 64 4d 61 78 20 20 20 | 20 20 20 20 20 20 5f 73 |adMax | _s|
|00005400| 75 62 4f 76 65 72 0d 20 | 20 20 20 20 20 20 20 20 |ubOver. | |
|00005410| 20 20 20 20 20 20 20 20 | 20 20 20 5f 61 64 4d 69 | | _adMi|
|00005420| 6e 20 20 20 20 20 20 20 | 20 20 5f 64 69 74 68 65 |n | _dithe|
|00005430| 72 43 6f 70 79 0d 20 20 | 20 20 20 20 20 20 20 20 |rCopy. | |
|00005440| 20 20 20 20 20 20 20 20 | 20 20 5f 74 72 61 6e 73 | | _trans|
|00005450| 70 61 72 65 6e 74 20 20 | 20 5f 67 72 61 79 69 73 |parent | _grayis|
|00005460| 68 54 65 78 74 4f 72 0d | 20 20 20 20 20 20 20 20 |hTextOr.| |
|00005470| 20 20 20 20 20 20 20 20 | 20 20 20 20 5f 68 69 6c | | _hil|
|00005480| 69 74 65 74 72 61 6e 73 | 66 65 72 6d 6f 64 65 0d |itetrans|fermode.|
|00005490| 0d 20 20 20 20 20 6a 75 | 73 74 20 20 20 20 20 3a |. ju|st :|
|000054a0| 20 74 65 78 74 20 6a 75 | 73 74 69 66 69 63 61 74 | text ju|stificat|
|000054b0| 69 6f 6e 2e 20 55 73 65 | 3a 0d 20 20 20 20 20 20 |ion. Use|:. |
|000054c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5f 74 | | _t|
|000054d0| 65 4a 75 73 74 4c 65 66 | 74 20 20 20 20 20 5f 74 |eJustLef|t _t|
|000054e0| 65 46 6c 75 73 68 44 65 | 66 61 75 6c 74 0d 20 20 |eFlushDe|fault. |
|000054f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005500| 20 20 5f 74 65 4a 75 73 | 74 43 65 6e 74 65 72 20 | _teJus|tCenter |
|00005510| 20 20 5f 74 65 43 65 6e | 74 65 72 0d 20 20 20 20 | _teCen|ter. |
|00005520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005530| 5f 74 65 4a 75 73 74 52 | 69 67 68 74 20 20 20 20 |_teJustR|ight |
|00005540| 5f 74 65 46 6c 75 73 68 | 52 69 67 68 74 0d 20 20 |_teFlush|Right. |
|00005550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005560| 20 20 5f 74 65 46 6f 72 | 63 65 4c 65 66 74 20 20 | _teFor|ceLeft |
|00005570| 20 20 5f 74 65 46 6c 75 | 73 68 4c 65 66 74 0d 2a | _teFlu|shLeft.*|
|00005580| 2f 0d 0d 43 6c 65 61 72 | 20 4c 6f 63 61 6c 20 4d |/..Clear| Local M|
|00005590| 6f 64 65 0d 4c 6f 63 61 | 6c 20 46 6e 20 53 65 74 |ode.Loca|l Fn Set|
|000055a0| 75 70 43 6f 6c 75 6d 6e | 48 65 61 64 65 72 53 74 |upColumn|HeaderSt|
|000055b0| 79 6c 65 28 20 63 6f 6c | 75 6d 6e 20 41 73 20 5e |yle( col|umn As ^|
|000055c0| 44 61 74 61 42 72 6f 77 | 73 65 72 4c 69 73 74 56 |DataBrow|serListV|
|000055d0| 69 65 77 43 6f 6c 75 6d | 6e 44 65 73 63 2c 20 c2 |iewColum|nDesc, .|
|000055e0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000055f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005600| 66 6f 6e 74 20 41 73 20 | 53 68 6f 72 74 2c 20 c2 |font As |Short, .|
|00005610| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005630| 73 69 7a 65 20 41 73 20 | 53 68 6f 72 74 2c 20 c2 |size As |Short, .|
|00005640| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005660| 66 61 63 65 20 41 73 20 | 53 68 6f 72 74 2c 20 c2 |face As |Short, .|
|00005670| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005690| 6d 6f 64 65 20 41 73 20 | 53 68 6f 72 74 2c 20 c2 |mode As |Short, .|
|000056a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000056b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000056c0| 6a 75 73 74 20 41 73 20 | 53 68 6f 72 74 20 29 0d |just As |Short ).|
|000056d0| 27 7e 27 39 0d 44 69 6d | 20 63 6f 6c 53 74 79 6c |'~'9.Dim| colStyl|
|000056e0| 65 20 41 73 20 43 6f 6e | 74 72 6f 6c 46 6f 6e 74 |e As Con|trolFont|
|000056f0| 53 74 79 6c 65 52 65 63 | 0d 0d 63 6f 6c 53 74 79 |StyleRec|..colSty|
|00005700| 6c 65 20 3d 20 63 6f 6c | 75 6d 6e 2e 68 65 61 64 |le = col|umn.head|
|00005710| 65 72 42 74 6e 44 65 73 | 63 2e 62 74 6e 46 6f 6e |erBtnDes|c.btnFon|
|00005720| 74 53 74 79 6c 65 0d 49 | 66 20 66 6f 6e 74 20 74 |tStyle.I|f font t|
|00005730| 68 65 6e 20 63 6f 6c 53 | 74 79 6c 65 2e 66 6c 61 |hen colS|tyle.fla|
|00005740| 67 73 20 3d 20 63 6f 6c | 53 74 79 6c 65 2e 66 6c |gs = col|Style.fl|
|00005750| 61 67 73 20 4f 72 20 5f | 6b 43 6f 6e 74 72 6f 6c |ags Or _|kControl|
|00005760| 55 73 65 46 6f 6e 74 4d | 61 73 6b 20 3a 20 63 6f |UseFontM|ask : co|
|00005770| 6c 53 74 79 6c 65 2e 66 | 6f 6e 74 20 20 3d 20 66 |lStyle.f|ont = f|
|00005780| 6f 6e 74 0d 49 66 20 73 | 69 7a 65 20 74 68 65 6e |ont.If s|ize then|
|00005790| 20 63 6f 6c 53 74 79 6c | 65 2e 66 6c 61 67 73 20 | colStyl|e.flags |
|000057a0| 3d 20 63 6f 6c 53 74 79 | 6c 65 2e 66 6c 61 67 73 |= colSty|le.flags|
|000057b0| 20 4f 72 20 5f 6b 43 6f | 6e 74 72 6f 6c 55 73 65 | Or _kCo|ntrolUse|
|000057c0| 53 69 7a 65 4d 61 73 6b | 20 3a 20 63 6f 6c 53 74 |SizeMask| : colSt|
|000057d0| 79 6c 65 2e 73 69 7a 65 | 20 20 3d 20 73 69 7a 65 |yle.size| = size|
|000057e0| 0d 49 66 20 66 61 63 65 | 20 74 68 65 6e 20 63 6f |.If face| then co|
|000057f0| 6c 53 74 79 6c 65 2e 66 | 6c 61 67 73 20 3d 20 63 |lStyle.f|lags = c|
|00005800| 6f 6c 53 74 79 6c 65 2e | 66 6c 61 67 73 20 4f 72 |olStyle.|flags Or|
|00005810| 20 5f 6b 43 6f 6e 74 72 | 6f 6c 55 73 65 46 61 63 | _kContr|olUseFac|
|00005820| 65 4d 61 73 6b 20 3a 20 | 63 6f 6c 53 74 79 6c 65 |eMask : |colStyle|
|00005830| 2e 73 74 79 6c 65 20 3d | 20 66 61 63 65 0d 49 66 |.style =| face.If|
|00005840| 20 6d 6f 64 65 20 74 68 | 65 6e 20 63 6f 6c 53 74 | mode th|en colSt|
|00005850| 79 6c 65 2e 66 6c 61 67 | 73 20 3d 20 63 6f 6c 53 |yle.flag|s = colS|
|00005860| 74 79 6c 65 2e 66 6c 61 | 67 73 20 4f 72 20 5f 6b |tyle.fla|gs Or _k|
|00005870| 43 6f 6e 74 72 6f 6c 55 | 73 65 4d 6f 64 65 4d 61 |ControlU|seModeMa|
|00005880| 73 6b 20 3a 20 63 6f 6c | 53 74 79 6c 65 2e 4d 6f |sk : col|Style.Mo|
|00005890| 64 65 20 20 3d 20 6d 6f | 64 65 0d 49 66 20 6a 75 |de = mo|de.If ju|
|000058a0| 73 74 20 74 68 65 6e 20 | 63 6f 6c 53 74 79 6c 65 |st then |colStyle|
|000058b0| 2e 66 6c 61 67 73 20 3d | 20 63 6f 6c 53 74 79 6c |.flags =| colStyl|
|000058c0| 65 2e 66 6c 61 67 73 20 | 4f 72 20 5f 6b 43 6f 6e |e.flags |Or _kCon|
|000058d0| 74 72 6f 6c 55 73 65 4a | 75 73 74 4d 61 73 6b 20 |trolUseJ|ustMask |
|000058e0| 3a 20 63 6f 6c 53 74 79 | 6c 65 2e 6a 75 73 74 20 |: colSty|le.just |
|000058f0| 20 3d 20 6a 75 73 74 0d | 42 6c 6f 63 6b 4d 6f 76 | = just.|BlockMov|
|00005900| 65 44 61 74 61 28 20 40 | 63 6f 6c 53 74 79 6c 65 |eData( @|colStyle|
|00005910| 2c 20 40 63 6f 6c 75 6d | 6e 2e 68 65 61 64 65 72 |, @colum|n.header|
|00005920| 42 74 6e 44 65 73 63 2e | 62 74 6e 46 6f 6e 74 53 |BtnDesc.|btnFontS|
|00005930| 74 79 6c 65 2c 20 53 69 | 7a 65 6f 66 28 43 6f 6e |tyle, Si|zeof(Con|
|00005940| 74 72 6f 6c 46 6f 6e 74 | 53 74 79 6c 65 52 65 63 |trolFont|StyleRec|
|00005950| 29 20 29 0d 45 6e 64 20 | 46 6e 0d 0d 0d 2f 2a 0d |) ).End |Fn.../*.|
|00005960| 20 20 20 20 20 54 68 69 | 73 20 66 75 6e 63 74 69 | Thi|s functi|
|00005970| 6f 6e 20 77 69 6c 6c 20 | 61 64 64 20 74 68 65 20 |on will |add the |
|00005980| 63 6f 6c 75 6d 6e 73 20 | 69 6e 20 74 68 65 20 44 |columns |in the D|
|00005990| 61 74 61 42 72 6f 77 73 | 65 72 20 63 6f 6e 74 72 |ataBrows|er contr|
|000059a0| 6f 6c 0d 2a 2f 0d 43 6c | 65 61 72 20 4c 6f 63 61 |ol.*/.Cl|ear Loca|
|000059b0| 6c 20 46 6e 20 43 6f 6e | 66 69 67 75 72 65 44 61 |l Fn Con|figureDa|
|000059c0| 74 61 42 72 6f 77 73 65 | 72 28 20 62 72 6f 77 73 |taBrowse|r( brows|
|000059d0| 65 72 20 41 73 20 43 6f | 6e 74 72 6f 6c 52 65 66 |er As Co|ntrolRef|
|000059e0| 20 29 0d 27 7e 27 39 0d | 44 69 6d 20 41 73 20 4f | ).'~'9.|Dim As O|
|000059f0| 53 53 74 61 74 75 73 20 | 20 20 20 20 20 20 20 20 |SStatus | |
|00005a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 72 | | er|
|00005a10| 72 0d 44 69 6d 20 41 73 | 20 44 61 74 61 42 72 6f |r.Dim As| DataBro|
|00005a20| 77 73 65 72 4c 69 73 74 | 56 69 65 77 43 6f 6c 75 |wserList|ViewColu|
|00005a30| 6d 6e 44 65 73 63 20 20 | 63 6f 6c 0d 44 69 6d 20 |mnDesc |col.Dim |
|00005a40| 41 73 20 44 61 74 61 42 | 72 6f 77 73 65 72 56 69 |As DataB|rowserVi|
|00005a50| 65 77 53 74 79 6c 65 20 | 20 20 20 20 20 20 20 20 |ewStyle | |
|00005a60| 40 20 76 69 65 77 53 74 | 79 6c 65 0d 0d 65 72 72 |@ viewSt|yle..err|
|00005a70| 20 3d 20 46 6e 20 47 65 | 74 44 61 74 61 42 72 6f | = Fn Ge|tDataBro|
|00005a80| 77 73 65 72 56 69 65 77 | 53 74 79 6c 65 28 20 62 |wserView|Style( b|
|00005a90| 72 6f 77 73 65 72 2c 20 | 76 69 65 77 53 74 79 6c |rowser, |viewStyl|
|00005aa0| 65 20 29 0d 0d 53 65 6c | 65 63 74 20 76 69 65 77 |e )..Sel|ect view|
|00005ab0| 53 74 79 6c 65 0d 0d 43 | 61 73 65 20 5f 6b 44 61 |Style..C|ase _kDa|
|00005ac0| 74 61 42 72 6f 77 73 65 | 72 4c 69 73 74 56 69 65 |taBrowse|rListVie|
|00005ad0| 77 3a 0d 0d 63 6f 6c 2e | 68 65 61 64 65 72 42 74 |w:..col.|headerBt|
|00005ae0| 6e 44 65 73 63 2e 74 69 | 74 6c 65 4f 66 66 73 65 |nDesc.ti|tleOffse|
|00005af0| 74 20 3d 20 30 0d 63 6f | 6c 2e 68 65 61 64 65 72 |t = 0.co|l.header|
|00005b00| 42 74 6e 44 65 73 63 2e | 76 65 72 73 69 6f 6e 20 |BtnDesc.|version |
|00005b10| 20 20 20 20 3d 20 5f 6b | 44 61 74 61 42 72 6f 77 | = _k|DataBrow|
|00005b20| 73 65 72 4c 69 73 74 56 | 69 65 77 4c 61 74 65 73 |serListV|iewLates|
|00005b30| 74 48 65 61 64 65 72 44 | 65 73 63 0d 0d 2f 2a 0d |tHeaderD|esc../*.|
|00005b40| 20 20 20 20 20 54 77 6f | 20 63 75 73 74 6f 6d 20 | Two| custom |
|00005b50| 66 75 6e 63 74 69 6f 6e | 73 20 66 6f 72 20 65 61 |function|s for ea|
|00005b60| 73 79 20 73 65 74 75 70 | 0d 0d 20 20 20 20 20 66 |sy setup|.. f|
|00005b70| 6e 20 53 65 74 75 70 43 | 6f 6c 75 6d 6e 28 20 63 |n SetupC|olumn( c|
|00005b80| 6f 6c 75 6d 6e 44 65 73 | 63 72 69 70 74 6f 72 2c |olumnDes|criptor,|
|00005b90| c2 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|00005bb0| 6f 6c 75 6d 6e 49 44 2c | 20 c2 0d 20 20 20 20 20 |olumnID,| .. |
|00005bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005bd0| 20 20 63 6f 6c 75 6d 6e | 50 72 6f 70 65 72 74 79 | column|Property|
|00005be0| 2c 20 c2 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |, .. | |
|00005bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6f | | co|
|00005c00| 6c 75 6d 6e 54 69 74 6c | 65 2c 20 c2 0d 20 20 20 |lumnTitl|e, .. |
|00005c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c20| 20 20 20 20 20 20 20 63 | 6f 6c 75 6d 6e 46 6c 61 | c|olumnFla|
|00005c30| 67 73 2c 20 c2 0d 20 20 | 20 20 20 20 20 20 20 20 |gs, .. | |
|00005c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 68 65 | | he|
|00005c50| 61 64 65 72 43 6f 6e 74 | 65 6e 74 2c 20 c2 0d 20 |aderCont|ent, .. |
|00005c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c70| 20 20 20 20 20 20 20 20 | 20 20 20 20 6d 69 6e 57 | | minW|
|00005c80| 69 64 74 68 2c 20 c2 0d | 20 20 20 20 20 20 20 20 |idth, ..| |
|00005c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ca0| 20 20 20 20 20 6d 61 78 | 57 69 64 74 68 20 29 0d | max|Width ).|
|00005cb0| 0d 20 20 20 20 20 66 6e | 20 53 65 74 75 70 43 6f |. fn| SetupCo|
|00005cc0| 6c 75 6d 6e 48 65 61 64 | 65 72 53 74 79 6c 65 28 |lumnHead|erStyle(|
|00005cd0| 20 63 6f 6c 75 6d 6e 44 | 65 73 63 72 69 70 74 6f | columnD|escripto|
|00005ce0| 72 2c 20 66 6f 6e 74 49 | 44 2c 20 74 65 78 74 53 |r, fontI|D, textS|
|00005cf0| 69 7a 65 2c 20 74 65 78 | 74 46 61 63 65 2c 20 74 |ize, tex|tFace, t|
|00005d00| 65 78 74 4d 6f 64 65 2c | 6a 75 73 74 69 66 69 63 |extMode,|justific|
|00005d10| 61 74 69 6f 6e 20 29 0d | 2a 2f 0d 0d 2f 2f 20 2d |ation ).|*/..// -|
|00005d20| 2d 2d 2d 2d 2d 2d 20 41 | 64 64 20 74 68 65 20 6e |------ A|dd the n|
|00005d30| 61 6d 65 20 26 20 69 63 | 6f 6e 20 63 6f 6c 75 6d |ame & ic|on colum|
|00005d40| 6e 20 2d 2d 2d 2d 2d 2d | 2d 20 0d 46 6e 20 53 65 |n ------|- .Fn Se|
|00005d50| 74 75 70 43 6f 6c 75 6d | 6e 28 20 20 20 20 20 20 |tupColum|n( |
|00005d60| 20 20 20 20 63 6f 6c 2c | 20 c2 0d 20 20 20 20 20 | col,| .. |
|00005d70| 20 20 20 20 20 20 20 20 | 20 20 5f 6e 61 6d 65 43 | | _nameC|
|00005d80| 6f 6c 75 6d 6e 49 44 2c | 20 c2 0d 5f 6b 44 61 74 |olumnID,| .._kDat|
|00005d90| 61 42 72 6f 77 73 65 72 | 49 63 6f 6e 41 6e 64 54 |aBrowser|IconAndT|
|00005da0| 65 78 74 54 79 70 65 2c | 20 c2 0d 20 20 20 20 20 |extType,| .. |
|00005db0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005dc0| 20 20 22 4e 61 6d 65 22 | 2c c2 0d 5f 6b 44 61 74 | "Name"|,.._kDat|
|00005dd0| 61 42 72 6f 77 73 65 72 | 4c 69 73 74 56 69 65 77 |aBrowser|ListView|
|00005de0| 53 65 6c 65 63 74 69 6f | 6e 43 6f 6c 75 6d 6e 5f |Selectio|nColumn_|
|00005df0| 6b 44 61 74 61 42 72 6f | 77 73 65 72 4c 69 73 74 |kDataBro|wserList|
|00005e00| 56 69 65 77 44 65 66 61 | 75 6c 74 43 6f 6c 75 6d |ViewDefa|ultColum|
|00005e10| 6e 46 6c 61 67 73 2c 20 | c2 0d 20 20 20 20 5f 6b |nFlags, |.. _k|
|00005e20| 43 6f 6e 74 72 6f 6c 43 | 6f 6e 74 65 6e 74 54 65 |ControlC|ontentTe|
|00005e30| 78 74 4f 6e 6c 79 2c 20 | c2 0d 20 20 20 20 20 20 |xtOnly, |.. |
|00005e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005e50| 30 20 2c 32 38 30 20 29 | 0d 46 6e 20 53 65 74 75 |0 ,280 )|.Fn Setu|
|00005e60| 70 43 6f 6c 75 6d 6e 48 | 65 61 64 65 72 53 74 79 |pColumnH|eaderSty|
|00005e70| 6c 65 28 20 63 6f 6c 2c | 20 30 2c 20 30 2c 20 30 |le( col,| 0, 0, 0|
|00005e80| 2c 20 30 2c 20 5f 74 65 | 46 6c 75 73 68 44 65 66 |, 0, _te|FlushDef|
|00005e90| 61 75 6c 74 20 29 0d 65 | 72 72 20 3d 20 46 6e 20 |ault ).e|rr = Fn |
|00005ea0| 41 64 64 44 61 74 61 42 | 72 6f 77 73 65 72 4c 69 |AddDataB|rowserLi|
|00005eb0| 73 74 56 69 65 77 43 6f | 6c 75 6d 6e 28 20 62 72 |stViewCo|lumn( br|
|00005ec0| 6f 77 73 65 72 2c 20 63 | 6f 6c 2c 20 5f 6b 44 61 |owser, c|ol, _kDa|
|00005ed0| 74 61 42 72 6f 77 73 65 | 72 4c 69 73 74 56 69 65 |taBrowse|rListVie|
|00005ee0| 77 41 70 70 65 6e 64 43 | 6f 6c 75 6d 6e 20 29 0d |wAppendC|olumn ).|
|00005ef0| 0d 2f 2f 20 2d 2d 2d 2d | 2d 2d 2d 20 41 64 64 20 |.// ----|--- Add |
|00005f00| 74 68 65 20 43 72 65 61 | 74 6f 72 20 43 6f 64 65 |the Crea|tor Code|
|00005f10| 20 63 6f 6c 75 6d 6e 20 | 2d 2d 2d 2d 2d 2d 2d 20 | column |------- |
|00005f20| 0d 46 6e 20 53 65 74 75 | 70 43 6f 6c 75 6d 6e 28 |.Fn Setu|pColumn(|
|00005f30| 20 20 20 20 20 20 63 6f | 6c 2c 20 c2 0d 20 20 20 | co|l, .. |
|00005f40| 20 20 20 20 20 5f 63 72 | 65 61 74 6f 72 43 6f 6c | _cr|eatorCol|
|00005f50| 75 6d 6e 49 44 2c 20 c2 | 0d 20 20 20 5f 6b 44 61 |umnID, .|. _kDa|
|00005f60| 74 61 42 72 6f 77 73 65 | 72 54 65 78 74 54 79 70 |taBrowse|rTextTyp|
|00005f70| 65 2c 20 c2 0d 20 20 20 | 20 20 20 20 20 20 20 20 |e, .. | |
|00005f80| 20 20 20 20 22 43 72 65 | 61 74 6f 72 22 2c 20 c2 | "Cre|ator", .|
|00005f90| 0d 5f 6b 44 61 74 61 42 | 72 6f 77 73 65 72 4c 69 |._kDataB|rowserLi|
|00005fa0| 73 74 56 69 65 77 53 65 | 6c 65 63 74 69 6f 6e 43 |stViewSe|lectionC|
|00005fb0| 6f 6c 75 6d 6e 20 5f 6b | 44 61 74 61 42 72 6f 77 |olumn _k|DataBrow|
|00005fc0| 73 65 72 4c 69 73 74 56 | 69 65 77 44 65 66 61 75 |serListV|iewDefau|
|00005fd0| 6c 74 43 6f 6c 75 6d 6e | 46 6c 61 67 73 2c 20 c2 |ltColumn|Flags, .|
|00005fe0| 0d 5f 6b 43 6f 6e 74 72 | 6f 6c 43 6f 6e 74 65 6e |._kContr|olConten|
|00005ff0| 74 54 65 78 74 4f 6e 6c | 79 2c 20 c2 0d 20 20 20 |tTextOnl|y, .. |
|00006000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006010| 20 30 20 2c 31 35 30 20 | 29 0d 46 6e 20 53 65 74 | 0 ,150 |).Fn Set|
|00006020| 75 70 43 6f 6c 75 6d 6e | 48 65 61 64 65 72 53 74 |upColumn|HeaderSt|
|00006030| 79 6c 65 28 20 63 6f 6c | 2c 20 30 2c 20 30 2c 20 |yle( col|, 0, 0, |
|00006040| 30 2c 20 30 2c 20 5f 74 | 65 43 65 6e 74 65 72 20 |0, 0, _t|eCenter |
|00006050| 29 0d 65 72 72 20 3d 20 | 46 6e 20 41 64 64 44 61 |).err = |Fn AddDa|
|00006060| 74 61 42 72 6f 77 73 65 | 72 4c 69 73 74 56 69 65 |taBrowse|rListVie|
|00006070| 77 43 6f 6c 75 6d 6e 28 | 20 62 72 6f 77 73 65 72 |wColumn(| browser|
|00006080| 2c 20 63 6f 6c 2c 20 5f | 6b 44 61 74 61 42 72 6f |, col, _|kDataBro|
|00006090| 77 73 65 72 4c 69 73 74 | 56 69 65 77 41 70 70 65 |wserList|ViewAppe|
|000060a0| 6e 64 43 6f 6c 75 6d 6e | 20 29 0d 0d 2f 2f 20 2d |ndColumn| )..// -|
|000060b0| 2d 2d 2d 2d 2d 2d 20 41 | 64 64 20 74 68 65 20 46 |------ A|dd the F|
|000060c0| 69 6c 65 20 54 79 70 65 | 20 63 6f 6c 75 6d 6e 20 |ile Type| column |
|000060d0| 2d 2d 2d 2d 2d 2d 2d 20 | 0d 46 6e 20 53 65 74 75 |------- |.Fn Setu|
|000060e0| 70 43 6f 6c 75 6d 6e 28 | 20 20 20 20 20 63 6f 6c |pColumn(| col|
|000060f0| 2c 20 c2 0d 20 20 20 20 | 20 20 20 20 20 20 5f 74 |, .. | _t|
|00006100| 79 70 65 43 6f 6c 75 6d | 6e 49 44 2c 20 c2 0d 20 |ypeColum|nID, .. |
|00006110| 20 5f 6b 44 61 74 61 42 | 72 6f 77 73 65 72 54 65 | _kDataB|rowserTe|
|00006120| 78 74 54 79 70 65 2c 20 | c2 0d 20 20 20 20 20 20 |xtType, |.. |
|00006130| 20 20 20 20 20 20 20 20 | 20 20 20 22 54 79 70 65 | | "Type|
|00006140| 22 2c 20 c2 0d 5f 6b 44 | 61 74 61 42 72 6f 77 73 |", .._kD|ataBrows|
|00006150| 65 72 4c 69 73 74 56 69 | 65 77 53 65 6c 65 63 74 |erListVi|ewSelect|
|00006160| 69 6f 6e 43 6f 6c 75 6d | 6e 5f 6b 44 61 74 61 42 |ionColum|n_kDataB|
|00006170| 72 6f 77 73 65 72 4c 69 | 73 74 56 69 65 77 44 65 |rowserLi|stViewDe|
|00006180| 66 61 75 6c 74 43 6f 6c | 75 6d 6e 46 6c 61 67 73 |faultCol|umnFlags|
|00006190| 2c 20 c2 0d 5f 6b 43 6f | 6e 74 72 6f 6c 43 6f 6e |, .._kCo|ntrolCon|
|000061a0| 74 65 6e 74 54 65 78 74 | 4f 6e 6c 79 2c 20 c2 0d |tentText|Only, ..|
|000061b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000061c0| 20 20 30 20 2c 31 35 30 | 20 29 0d 65 72 72 20 3d | 0 ,150| ).err =|
|000061d0| 20 46 6e 20 41 64 64 44 | 61 74 61 42 72 6f 77 73 | Fn AddD|ataBrows|
|000061e0| 65 72 4c 69 73 74 56 69 | 65 77 43 6f 6c 75 6d 6e |erListVi|ewColumn|
|000061f0| 28 20 62 72 6f 77 73 65 | 72 2c 20 63 6f 6c 2c 20 |( browse|r, col, |
|00006200| 5f 6b 44 61 74 61 42 72 | 6f 77 73 65 72 4c 69 73 |_kDataBr|owserLis|
|00006210| 74 56 69 65 77 41 70 70 | 65 6e 64 43 6f 6c 75 6d |tViewApp|endColum|
|00006220| 6e 29 0d 0d 2f 2f 20 73 | 65 74 75 70 20 74 68 65 |n)..// s|etup the|
|00006230| 20 64 69 73 63 6c 6f 73 | 75 72 65 20 63 6f 6c 75 | disclos|ure colu|
|00006240| 6d 6e 0d 65 72 72 20 3d | 20 46 6e 20 53 65 74 44 |mn.err =| Fn SetD|
|00006250| 61 74 61 42 72 6f 77 73 | 65 72 4c 69 73 74 56 69 |ataBrows|erListVi|
|00006260| 65 77 44 69 73 63 6c 6f | 73 75 72 65 43 6f 6c 75 |ewDisclo|sureColu|
|00006270| 6d 6e 28 20 62 72 6f 77 | 73 65 72 2c 20 5f 6e 61 |mn( brow|ser, _na|
|00006280| 6d 65 43 6f 6c 75 6d 6e | 49 44 2c 20 5f 66 61 6c |meColumn|ID, _fal|
|00006290| 73 65 20 29 0d 0d 43 61 | 73 65 20 5f 6b 44 61 74 |se )..Ca|se _kDat|
|000062a0| 61 42 72 6f 77 73 65 72 | 43 6f 6c 75 6d 6e 56 69 |aBrowser|ColumnVi|
|000062b0| 65 77 3a 0d 0d 45 6e 64 | 20 53 65 6c 65 63 74 0d |ew:..End| Select.|
|000062c0| 0d 45 6e 64 20 46 6e 0d | 0d 27 7e 27 3b 0d 27 7e |.End Fn.|.'~';.'~|
|000062d0| 12 2d 2d 2d 2d 0d 27 7e | 12 45 76 65 6e 74 20 48 |.----.'~|.Event H|
|000062e0| 61 6e 64 6c 69 6e 67 0d | 27 7e 27 31 0d 2f 2a 0d |andling.|'~'1./*.|
|000062f0| 20 20 20 20 54 68 69 73 | 20 66 75 6e 63 74 69 6f | This| functio|
|00006300| 6e 20 69 73 20 63 61 6c | 6c 65 64 20 76 69 61 20 |n is cal|led via |
|00006310| 61 20 6d 65 6e 75 20 49 | 74 65 6d 2e 0d 2a 2f 0d |a menu I|tem..*/.|
|00006320| 4c 6f 63 61 6c 20 46 6e | 20 64 6f 4f 70 65 6e 46 |Local Fn| doOpenF|
|00006330| 6f 6c 64 65 72 20 0d 27 | 7e 27 39 0d 0d 44 69 6d |older .'|~'9..Dim|
|00006340| 20 41 73 20 69 6e 74 20 | 20 20 20 65 72 72 0d 44 | As int | err.D|
|00006350| 69 6d 20 41 73 20 46 53 | 53 70 65 63 20 66 53 70 |im As FS|Spec fSp|
|00006360| 65 63 0d 44 69 6d 20 41 | 73 20 53 74 72 32 35 35 |ec.Dim A|s Str255|
|00006370| 20 6e 61 6d 65 20 0d 0d | 4c 6f 6e 67 20 49 66 20 | name ..|Long If |
|00006380| 4c 65 6e 28 20 46 69 6c | 65 73 24 28 20 5f 46 53 |Len( Fil|es$( _FS|
|00006390| 53 70 65 63 46 6f 6c 64 | 65 72 2c 20 22 43 68 6f |SpecFold|er, "Cho|
|000063a0| 6f 73 65 20 61 20 66 6f | 6c 64 65 72 22 2c 2c 66 |ose a fo|lder",,f|
|000063b0| 53 70 65 63 20 29 20 29 | 2f 2f 20 73 65 6c 65 63 |Spec ) )|// selec|
|000063c0| 74 20 66 6f 6c 64 65 72 | 20 64 69 61 6c 6f 67 0d |t folder| dialog.|
|000063d0| 46 6e 20 43 6c 65 61 72 | 44 61 74 61 42 72 6f 77 |Fn Clear|DataBrow|
|000063e0| 73 65 72 2f 2f 20 6e 6f | 74 20 63 61 6e 63 65 6c |ser// no|t cancel|
|000063f0| 6c 65 64 2c 20 73 6f 20 | 63 6c 65 61 72 20 74 68 |led, so |clear th|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.