Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95 » !AWJan95/Goodies/Event/Examples/!Address/!Address

!AWJan95/Goodies/Event/Examples/!Address/!Address

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Archimedes World » AW-1995-01-Disc2.adf » Disk2Jan95
Filename: !AWJan95/Goodies/Event/Examples/!Address/!Address
Read OK:
File size: 0EB3 bytes
Load address: 0000
Exec address: 0000
File contents
    1REM > <Address$Dir>.!Address
    2:
    3debugging%=FALSE
    4REM Copyright Paul Hobbs 1990,1991,1992
    5REM Rheinpfalzstrasse 2
    6REM    85049 Ingolstadt
    7REM             Germany
    8:
    9REM This program and parts thereof may be freely distributed
   10:
   11ON ERROR PROCshell_Error
   12:
   13LIBRARY "<EvntShell$Path>ShellLibRT"
   14:
   15SYS "Hourglass_On"
   16:
   17
   18SYS "Wimp_SlotSize",-1,-1 TO progsize%
   19pagesize%=1<<10
   20freespace%=&8000+progsize%
   21END=freespace%+pagesize%
   22HIMEM=freespace%
   23:
   24PROCshell_HeapManagerInit("<EvntShell$Path>",freespace%)
   25
   26PROCshell_Init
   27task%=FNshell_WimpInit_I(200,"Address Demo")
   28PROCshell_TraceInit("")
   29PROCshell_TraceOn
   30PROCshell_ResourcesInit
   31PROCapp_init
   32:
   33REM -------------------- Initialise Variables ----------------------------
   34:
   35_closedown%     =FALSE :REM Set this to TRUE when you want the program to
   36                       :REM end
   37changed%        =FALSE :REM Used to keep track of whether the data has
   38                       :REM been changed. Call PROCfile_changed() when it
   39                       :REM has. But if the program does not use data
   40                       :REM files just ignore this variable but do not
   41                       :REM delete it as the program checks it before
   42                       :REM exiting!
   43:
   44REM -------------------- Miscelleanous Initialisation --------------------
   45:
   46SYS "Hourglass_Off"
   47ON ERROR OFF
   48ON ERROR PROCshell_Error
   49REPEAT
   50  PROCshell_Action(FNshell_Poll_I(0,task%))
   51UNTIL _closedown%
   52:
   53PROCshell_Exit:END
   54:
   55REM ======================================================================
   56:
   57DEF PROCapp_init
   58PROCSetUp_Menus
   59sicon=FNshell_Iconbar(-1,"!"+FNshell_GetAppName,"NoData",120,MenuHandle_IconBar%,0,0,0)
   60PROCshell_AttachClickSelect(-1,sicon,"_ClickSelect_IconBar")
   61PROCshell_AttachHelpTag(-1,sicon,"iconbar")
   62PROCshell_CreateWindowStatic("mainw",mainw%)
   63PROCshell_AttachMenu(mainw%,-1,MenuHandle_Main%,0,0,0)
   64PROCshell_CreateWindowStatic("search",search%)
   65PROCshell_AttachMenu(search%,4,MenuHandle_Demo%,0,0,0)
   66ENDPROC
   67:
   68
   69REM ===== Menu_Setup routines ======================================
   70
   71DEF PROCSetUp_Menus
   72LOCAL void%
   73
   74MenuHandle_IconBar%=FNshell_MenuNew("Address")
   75MenuItem_Info%     =FNshell_MenuAdd(0,"Info","")
   76void%              =FNshell_MenuAdd(0,"Preferences..","")
   77void%              =FNshell_MenuAdd(0,"Quit","_MenuSelect_Quit")
   78PROCshell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
   79
   80MenuHandle_Main%   =FNshell_MenuNew("Main Menu")
   81void%              =FNshell_MenuAdd(0,"Paul","")
   82void%              =FNshell_MenuAdd(0,"Hilke","")
   83void%              =FNshell_MenuAdd(0,"Quit","_MenuSelect_Quit")
   84
   85MenuHandle_Demo%   =FNshell_MenuNew("Demo Menu")
   86void%              =FNshell_MenuAdd(0,"As you can see, menus can be","")
   87void%              =FNshell_MenuAdd(0,"any width and can be attached","")
   88void%              =FNshell_MenuAdd(0,"to specific icons if required","")
   89
   90ENDPROC
   91:
   92
   93REM ===== Dialog_PreOpen routines ==================================
   94
   95DEF FN_PreOpenInfo(wh%)
   96PROCshell_IconPutData(wh%,0,FNshell_MessageNoArgs("progInfo0"),0)
   97PROCshell_IconPutData(wh%,1,FNshell_MessageNoArgs("progInfo1"),0)
   98PROCshell_IconPutData(wh%,2,FNshell_MessageNoArgs("progInfo2"),0)
   99PROCshell_IconPutData(wh%,3,FNshell_MessageNoArgs("progInfo3"),0)
  100=0
  101:
  102
  103REM ===== Click_Select routines ====================================
  104
  105DEF FN_ClickSelect_IconBar(wh%,icon%)
  106PROCshell_OpenWindowStatic(mainw%)
  107PROCshell_OpenWindowStatic(search%)
  108void% = FNshell_WindowCountIcons(mainw%)
  109=0
  110:
  111
  112REM ===== Menu_Select routines =====================================
  113
  114DEF FN_MenuSelect_Quit(blk%)
  115_closedown%=TRUE
  116=0
  117:
  118
  119REM ===== End of user application ==================================
  120:
� > <Address$Dir>.!Address
:
debugging%=�
)� Copyright Paul Hobbs 1990,1991,1992
� Rheinpfalzstrasse 2
�    85049 Ingolstadt
�             Germany
:
	>� This program and parts thereof may be freely distributed

:
� � �shell_Error
:

#ț "<EvntShell$Path>ShellLibRT"
:
ș "Hourglass_On"
:

(ș "Wimp_SlotSize",-1,-1 � progsize%
pagesize%=1<<10
freespace%=&8000+progsize%
�=freespace%+pagesize%
�=freespace%
:
9�shell_HeapManagerInit("<EvntShell$Path>",freespace%)

�shell_Init
/task%=�shell_WimpInit_I(200,"Address Demo")
�shell_TraceInit("")
�shell_TraceOn
�shell_ResourcesInit

�app_init
 :
!L� -------------------- Initialise Variables ----------------------------
":
#G_closedown%     =� :� Set this to TRUE when you want the program to
$!                       :� end
%Dchanged%        =� :� Used to keep track of whether the data has
&K                       :� been changed. Call PROCfile_changed() when it
'G                       :� has. But if the program does not use data
(H                       :� files just ignore this variable but do not
)G                       :� delete it as the program checks it before
*&                       :� exiting!
+:
,L� -------------------- Miscelleanous Initialisation --------------------
-:
.ș "Hourglass_Off"
/	� � �
0� � �shell_Error
1�
2+  �shell_Action(�shell_Poll_I(0,task%))
3� _closedown%
4:
5�shell_Exit:�
6:
7L� ======================================================================
8:
9� �app_init
:�SetUp_Menus
;Ysicon=�shell_Iconbar(-1,"!"+�shell_GetAppName,"NoData",120,MenuHandle_IconBar%,0,0,0)
<=�shell_AttachClickSelect(-1,sicon,"_ClickSelect_IconBar")
=,�shell_AttachHelpTag(-1,sicon,"iconbar")
>-�shell_CreateWindowStatic("mainw",mainw%)
?7�shell_AttachMenu(mainw%,-1,MenuHandle_Main%,0,0,0)
@/�shell_CreateWindowStatic("search",search%)
A7�shell_AttachMenu(search%,4,MenuHandle_Demo%,0,0,0)
B�
C:
D
EF� ===== Menu_Setup routines ======================================
F
G� �SetUp_Menus
H� void%
I
J1MenuHandle_IconBar%=�shell_MenuNew("Address")
K3MenuItem_Info%     =�shell_MenuAdd(0,"Info","")
L<void%              =�shell_MenuAdd(0,"Preferences..","")
MCvoid%              =�shell_MenuAdd(0,"Quit","_MenuSelect_Quit")
NF�shell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
O
P3MenuHandle_Main%   =�shell_MenuNew("Main Menu")
Q3void%              =�shell_MenuAdd(0,"Paul","")
R4void%              =�shell_MenuAdd(0,"Hilke","")
SCvoid%              =�shell_MenuAdd(0,"Quit","_MenuSelect_Quit")
T
U3MenuHandle_Demo%   =�shell_MenuNew("Demo Menu")
VKvoid%              =�shell_MenuAdd(0,"As you can see, menus can be","")
WLvoid%              =�shell_MenuAdd(0,"any width and can be attached","")
XLvoid%              =�shell_MenuAdd(0,"to specific icons if required","")
Y
Z�
[:
\
]F� ===== Dialog_PreOpen routines ==================================
^
_� �_PreOpenInfo(wh%)
`A�shell_IconPutData(wh%,0,�shell_MessageNoArgs("progInfo0"),0)
aA�shell_IconPutData(wh%,1,�shell_MessageNoArgs("progInfo1"),0)
bA�shell_IconPutData(wh%,2,�shell_MessageNoArgs("progInfo2"),0)
cA�shell_IconPutData(wh%,3,�shell_MessageNoArgs("progInfo3"),0)
d=0
e:
f
gF� ===== Click_Select routines ====================================
h
i&� �_ClickSelect_IconBar(wh%,icon%)
j#�shell_OpenWindowStatic(mainw%)
k$�shell_OpenWindowStatic(search%)
l+void% = �shell_WindowCountIcons(mainw%)
m=0
n:
o
pF� ===== Menu_Select routines =====================================
q
r� �_MenuSelect_Quit(blk%)
s_closedown%=�
t=0
u:
v
wF� ===== End of user application ==================================
x:
�
00000000  0d 00 01 1e f4 20 3e 20  3c 41 64 64 72 65 73 73  |..... > <Address|
00000010  24 44 69 72 3e 2e 21 41  64 64 72 65 73 73 0d 00  |$Dir>.!Address..|
00000020  02 05 3a 0d 00 03 10 64  65 62 75 67 67 69 6e 67  |..:....debugging|
00000030  25 3d a3 0d 00 04 29 f4  20 43 6f 70 79 72 69 67  |%=....). Copyrig|
00000040  68 74 20 50 61 75 6c 20  48 6f 62 62 73 20 31 39  |ht Paul Hobbs 19|
00000050  39 30 2c 31 39 39 31 2c  31 39 39 32 0d 00 05 19  |90,1991,1992....|
00000060  f4 20 52 68 65 69 6e 70  66 61 6c 7a 73 74 72 61  |. Rheinpfalzstra|
00000070  73 73 65 20 32 0d 00 06  19 f4 20 20 20 20 38 35  |sse 2.....    85|
00000080  30 34 39 20 49 6e 67 6f  6c 73 74 61 64 74 0d 00  |049 Ingolstadt..|
00000090  07 19 f4 20 20 20 20 20  20 20 20 20 20 20 20 20  |...             |
000000a0  47 65 72 6d 61 6e 79 0d  00 08 05 3a 0d 00 09 3e  |Germany....:...>|
000000b0  f4 20 54 68 69 73 20 70  72 6f 67 72 61 6d 20 61  |. This program a|
000000c0  6e 64 20 70 61 72 74 73  20 74 68 65 72 65 6f 66  |nd parts thereof|
000000d0  20 6d 61 79 20 62 65 20  66 72 65 65 6c 79 20 64  | may be freely d|
000000e0  69 73 74 72 69 62 75 74  65 64 0d 00 0a 05 3a 0d  |istributed....:.|
000000f0  00 0b 14 ee 20 85 20 f2  73 68 65 6c 6c 5f 45 72  |.... . .shell_Er|
00000100  72 6f 72 0d 00 0c 05 3a  0d 00 0d 23 c8 9b 20 22  |ror....:...#.. "|
00000110  3c 45 76 6e 74 53 68 65  6c 6c 24 50 61 74 68 3e  |<EvntShell$Path>|
00000120  53 68 65 6c 6c 4c 69 62  52 54 22 0d 00 0e 05 3a  |ShellLibRT"....:|
00000130  0d 00 0f 15 c8 99 20 22  48 6f 75 72 67 6c 61 73  |...... "Hourglas|
00000140  73 5f 4f 6e 22 0d 00 10  05 3a 0d 00 11 04 0d 00  |s_On"....:......|
00000150  12 28 c8 99 20 22 57 69  6d 70 5f 53 6c 6f 74 53  |.(.. "Wimp_SlotS|
00000160  69 7a 65 22 2c 2d 31 2c  2d 31 20 b8 20 70 72 6f  |ize",-1,-1 . pro|
00000170  67 73 69 7a 65 25 0d 00  13 13 70 61 67 65 73 69  |gsize%....pagesi|
00000180  7a 65 25 3d 31 3c 3c 31  30 0d 00 14 1e 66 72 65  |ze%=1<<10....fre|
00000190  65 73 70 61 63 65 25 3d  26 38 30 30 30 2b 70 72  |espace%=&8000+pr|
000001a0  6f 67 73 69 7a 65 25 0d  00 15 1a e0 3d 66 72 65  |ogsize%.....=fre|
000001b0  65 73 70 61 63 65 25 2b  70 61 67 65 73 69 7a 65  |espace%+pagesize|
000001c0  25 0d 00 16 10 d3 3d 66  72 65 65 73 70 61 63 65  |%.....=freespace|
000001d0  25 0d 00 17 05 3a 0d 00  18 39 f2 73 68 65 6c 6c  |%....:...9.shell|
000001e0  5f 48 65 61 70 4d 61 6e  61 67 65 72 49 6e 69 74  |_HeapManagerInit|
000001f0  28 22 3c 45 76 6e 74 53  68 65 6c 6c 24 50 61 74  |("<EvntShell$Pat|
00000200  68 3e 22 2c 66 72 65 65  73 70 61 63 65 25 29 0d  |h>",freespace%).|
00000210  00 19 04 0d 00 1a 0f f2  73 68 65 6c 6c 5f 49 6e  |........shell_In|
00000220  69 74 0d 00 1b 2f 74 61  73 6b 25 3d a4 73 68 65  |it.../task%=.she|
00000230  6c 6c 5f 57 69 6d 70 49  6e 69 74 5f 49 28 32 30  |ll_WimpInit_I(20|
00000240  30 2c 22 41 64 64 72 65  73 73 20 44 65 6d 6f 22  |0,"Address Demo"|
00000250  29 0d 00 1c 18 f2 73 68  65 6c 6c 5f 54 72 61 63  |).....shell_Trac|
00000260  65 49 6e 69 74 28 22 22  29 0d 00 1d 12 f2 73 68  |eInit("").....sh|
00000270  65 6c 6c 5f 54 72 61 63  65 4f 6e 0d 00 1e 18 f2  |ell_TraceOn.....|
00000280  73 68 65 6c 6c 5f 52 65  73 6f 75 72 63 65 73 49  |shell_ResourcesI|
00000290  6e 69 74 0d 00 1f 0d f2  61 70 70 5f 69 6e 69 74  |nit.....app_init|
000002a0  0d 00 20 05 3a 0d 00 21  4c f4 20 2d 2d 2d 2d 2d  |.. .:..!L. -----|
000002b0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 20  |--------------- |
000002c0  49 6e 69 74 69 61 6c 69  73 65 20 56 61 72 69 61  |Initialise Varia|
000002d0  62 6c 65 73 20 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |bles -----------|
000002e0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
000002f0  2d 0d 00 22 05 3a 0d 00  23 47 5f 63 6c 6f 73 65  |-..".:..#G_close|
00000300  64 6f 77 6e 25 20 20 20  20 20 3d a3 20 3a f4 20  |down%     =. :. |
00000310  53 65 74 20 74 68 69 73  20 74 6f 20 54 52 55 45  |Set this to TRUE|
00000320  20 77 68 65 6e 20 79 6f  75 20 77 61 6e 74 20 74  | when you want t|
00000330  68 65 20 70 72 6f 67 72  61 6d 20 74 6f 0d 00 24  |he program to..$|
00000340  21 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |!               |
00000350  20 20 20 20 20 20 20 20  3a f4 20 65 6e 64 0d 00  |        :. end..|
00000360  25 44 63 68 61 6e 67 65  64 25 20 20 20 20 20 20  |%Dchanged%      |
00000370  20 20 3d a3 20 3a f4 20  55 73 65 64 20 74 6f 20  |  =. :. Used to |
00000380  6b 65 65 70 20 74 72 61  63 6b 20 6f 66 20 77 68  |keep track of wh|
00000390  65 74 68 65 72 20 74 68  65 20 64 61 74 61 20 68  |ether the data h|
000003a0  61 73 0d 00 26 4b 20 20  20 20 20 20 20 20 20 20  |as..&K          |
000003b0  20 20 20 20 20 20 20 20  20 20 20 20 20 3a f4 20  |             :. |
000003c0  62 65 65 6e 20 63 68 61  6e 67 65 64 2e 20 43 61  |been changed. Ca|
000003d0  6c 6c 20 50 52 4f 43 66  69 6c 65 5f 63 68 61 6e  |ll PROCfile_chan|
000003e0  67 65 64 28 29 20 77 68  65 6e 20 69 74 0d 00 27  |ged() when it..'|
000003f0  47 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |G               |
00000400  20 20 20 20 20 20 20 20  3a f4 20 68 61 73 2e 20  |        :. has. |
00000410  42 75 74 20 69 66 20 74  68 65 20 70 72 6f 67 72  |But if the progr|
00000420  61 6d 20 64 6f 65 73 20  6e 6f 74 20 75 73 65 20  |am does not use |
00000430  64 61 74 61 0d 00 28 48  20 20 20 20 20 20 20 20  |data..(H        |
00000440  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 3a  |               :|
00000450  f4 20 66 69 6c 65 73 20  6a 75 73 74 20 69 67 6e  |. files just ign|
00000460  6f 72 65 20 74 68 69 73  20 76 61 72 69 61 62 6c  |ore this variabl|
00000470  65 20 62 75 74 20 64 6f  20 6e 6f 74 0d 00 29 47  |e but do not..)G|
00000480  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000490  20 20 20 20 20 20 20 3a  f4 20 64 65 6c 65 74 65  |       :. delete|
000004a0  20 69 74 20 61 73 20 74  68 65 20 70 72 6f 67 72  | it as the progr|
000004b0  61 6d 20 63 68 65 63 6b  73 20 69 74 20 62 65 66  |am checks it bef|
000004c0  6f 72 65 0d 00 2a 26 20  20 20 20 20 20 20 20 20  |ore..*&         |
000004d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 3a f4  |              :.|
000004e0  20 65 78 69 74 69 6e 67  21 0d 00 2b 05 3a 0d 00  | exiting!..+.:..|
000004f0  2c 4c f4 20 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |,L. ------------|
00000500  2d 2d 2d 2d 2d 2d 2d 2d  20 4d 69 73 63 65 6c 6c  |-------- Miscell|
00000510  65 61 6e 6f 75 73 20 49  6e 69 74 69 61 6c 69 73  |eanous Initialis|
00000520  61 74 69 6f 6e 20 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |ation ----------|
00000530  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 0d 00 2d 05 3a 0d  |----------..-.:.|
00000540  00 2e 16 c8 99 20 22 48  6f 75 72 67 6c 61 73 73  |..... "Hourglass|
00000550  5f 4f 66 66 22 0d 00 2f  09 ee 20 85 20 87 0d 00  |_Off"../.. . ...|
00000560  30 14 ee 20 85 20 f2 73  68 65 6c 6c 5f 45 72 72  |0.. . .shell_Err|
00000570  6f 72 0d 00 31 05 f5 0d  00 32 2b 20 20 f2 73 68  |or..1....2+  .sh|
00000580  65 6c 6c 5f 41 63 74 69  6f 6e 28 a4 73 68 65 6c  |ell_Action(.shel|
00000590  6c 5f 50 6f 6c 6c 5f 49  28 30 2c 74 61 73 6b 25  |l_Poll_I(0,task%|
000005a0  29 29 0d 00 33 11 fd 20  5f 63 6c 6f 73 65 64 6f  |))..3.. _closedo|
000005b0  77 6e 25 0d 00 34 05 3a  0d 00 35 11 f2 73 68 65  |wn%..4.:..5..she|
000005c0  6c 6c 5f 45 78 69 74 3a  e0 0d 00 36 05 3a 0d 00  |ll_Exit:...6.:..|
000005d0  37 4c f4 20 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |7L. ============|
000005e0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000610  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 0d 00 38 05 3a 0d  |==========..8.:.|
00000620  00 39 0f dd 20 f2 61 70  70 5f 69 6e 69 74 0d 00  |.9.. .app_init..|
00000630  3a 10 f2 53 65 74 55 70  5f 4d 65 6e 75 73 0d 00  |:..SetUp_Menus..|
00000640  3b 59 73 69 63 6f 6e 3d  a4 73 68 65 6c 6c 5f 49  |;Ysicon=.shell_I|
00000650  63 6f 6e 62 61 72 28 2d  31 2c 22 21 22 2b a4 73  |conbar(-1,"!"+.s|
00000660  68 65 6c 6c 5f 47 65 74  41 70 70 4e 61 6d 65 2c  |hell_GetAppName,|
00000670  22 4e 6f 44 61 74 61 22  2c 31 32 30 2c 4d 65 6e  |"NoData",120,Men|
00000680  75 48 61 6e 64 6c 65 5f  49 63 6f 6e 42 61 72 25  |uHandle_IconBar%|
00000690  2c 30 2c 30 2c 30 29 0d  00 3c 3d f2 73 68 65 6c  |,0,0,0)..<=.shel|
000006a0  6c 5f 41 74 74 61 63 68  43 6c 69 63 6b 53 65 6c  |l_AttachClickSel|
000006b0  65 63 74 28 2d 31 2c 73  69 63 6f 6e 2c 22 5f 43  |ect(-1,sicon,"_C|
000006c0  6c 69 63 6b 53 65 6c 65  63 74 5f 49 63 6f 6e 42  |lickSelect_IconB|
000006d0  61 72 22 29 0d 00 3d 2c  f2 73 68 65 6c 6c 5f 41  |ar")..=,.shell_A|
000006e0  74 74 61 63 68 48 65 6c  70 54 61 67 28 2d 31 2c  |ttachHelpTag(-1,|
000006f0  73 69 63 6f 6e 2c 22 69  63 6f 6e 62 61 72 22 29  |sicon,"iconbar")|
00000700  0d 00 3e 2d f2 73 68 65  6c 6c 5f 43 72 65 61 74  |..>-.shell_Creat|
00000710  65 57 69 6e 64 6f 77 53  74 61 74 69 63 28 22 6d  |eWindowStatic("m|
00000720  61 69 6e 77 22 2c 6d 61  69 6e 77 25 29 0d 00 3f  |ainw",mainw%)..?|
00000730  37 f2 73 68 65 6c 6c 5f  41 74 74 61 63 68 4d 65  |7.shell_AttachMe|
00000740  6e 75 28 6d 61 69 6e 77  25 2c 2d 31 2c 4d 65 6e  |nu(mainw%,-1,Men|
00000750  75 48 61 6e 64 6c 65 5f  4d 61 69 6e 25 2c 30 2c  |uHandle_Main%,0,|
00000760  30 2c 30 29 0d 00 40 2f  f2 73 68 65 6c 6c 5f 43  |0,0)..@/.shell_C|
00000770  72 65 61 74 65 57 69 6e  64 6f 77 53 74 61 74 69  |reateWindowStati|
00000780  63 28 22 73 65 61 72 63  68 22 2c 73 65 61 72 63  |c("search",searc|
00000790  68 25 29 0d 00 41 37 f2  73 68 65 6c 6c 5f 41 74  |h%)..A7.shell_At|
000007a0  74 61 63 68 4d 65 6e 75  28 73 65 61 72 63 68 25  |tachMenu(search%|
000007b0  2c 34 2c 4d 65 6e 75 48  61 6e 64 6c 65 5f 44 65  |,4,MenuHandle_De|
000007c0  6d 6f 25 2c 30 2c 30 2c  30 29 0d 00 42 05 e1 0d  |mo%,0,0,0)..B...|
000007d0  00 43 05 3a 0d 00 44 04  0d 00 45 46 f4 20 3d 3d  |.C.:..D...EF. ==|
000007e0  3d 3d 3d 20 4d 65 6e 75  5f 53 65 74 75 70 20 72  |=== Menu_Setup r|
000007f0  6f 75 74 69 6e 65 73 20  3d 3d 3d 3d 3d 3d 3d 3d  |outines ========|
00000800  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000810  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 0d 00  |==============..|
00000820  46 04 0d 00 47 12 dd 20  f2 53 65 74 55 70 5f 4d  |F...G.. .SetUp_M|
00000830  65 6e 75 73 0d 00 48 0b  ea 20 76 6f 69 64 25 0d  |enus..H.. void%.|
00000840  00 49 04 0d 00 4a 31 4d  65 6e 75 48 61 6e 64 6c  |.I...J1MenuHandl|
00000850  65 5f 49 63 6f 6e 42 61  72 25 3d a4 73 68 65 6c  |e_IconBar%=.shel|
00000860  6c 5f 4d 65 6e 75 4e 65  77 28 22 41 64 64 72 65  |l_MenuNew("Addre|
00000870  73 73 22 29 0d 00 4b 33  4d 65 6e 75 49 74 65 6d  |ss")..K3MenuItem|
00000880  5f 49 6e 66 6f 25 20 20  20 20 20 3d a4 73 68 65  |_Info%     =.she|
00000890  6c 6c 5f 4d 65 6e 75 41  64 64 28 30 2c 22 49 6e  |ll_MenuAdd(0,"In|
000008a0  66 6f 22 2c 22 22 29 0d  00 4c 3c 76 6f 69 64 25  |fo","")..L<void%|
000008b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 3d a4  |              =.|
000008c0  73 68 65 6c 6c 5f 4d 65  6e 75 41 64 64 28 30 2c  |shell_MenuAdd(0,|
000008d0  22 50 72 65 66 65 72 65  6e 63 65 73 2e 2e 22 2c  |"Preferences..",|
000008e0  22 22 29 0d 00 4d 43 76  6f 69 64 25 20 20 20 20  |"")..MCvoid%    |
000008f0  20 20 20 20 20 20 20 20  20 20 3d a4 73 68 65 6c  |          =.shel|
00000900  6c 5f 4d 65 6e 75 41 64  64 28 30 2c 22 51 75 69  |l_MenuAdd(0,"Qui|
00000910  74 22 2c 22 5f 4d 65 6e  75 53 65 6c 65 63 74 5f  |t","_MenuSelect_|
00000920  51 75 69 74 22 29 0d 00  4e 46 f2 73 68 65 6c 6c  |Quit")..NF.shell|
00000930  5f 41 74 74 61 63 68 4d  65 6e 75 44 42 6f 78 28  |_AttachMenuDBox(|
00000940  4d 65 6e 75 49 74 65 6d  5f 49 6e 66 6f 25 2c 22  |MenuItem_Info%,"|
00000950  70 72 6f 67 49 6e 66 6f  22 2c 22 5f 50 72 65 4f  |progInfo","_PreO|
00000960  70 65 6e 49 6e 66 6f 22  2c 22 22 29 0d 00 4f 04  |penInfo","")..O.|
00000970  0d 00 50 33 4d 65 6e 75  48 61 6e 64 6c 65 5f 4d  |..P3MenuHandle_M|
00000980  61 69 6e 25 20 20 20 3d  a4 73 68 65 6c 6c 5f 4d  |ain%   =.shell_M|
00000990  65 6e 75 4e 65 77 28 22  4d 61 69 6e 20 4d 65 6e  |enuNew("Main Men|
000009a0  75 22 29 0d 00 51 33 76  6f 69 64 25 20 20 20 20  |u")..Q3void%    |
000009b0  20 20 20 20 20 20 20 20  20 20 3d a4 73 68 65 6c  |          =.shel|
000009c0  6c 5f 4d 65 6e 75 41 64  64 28 30 2c 22 50 61 75  |l_MenuAdd(0,"Pau|
000009d0  6c 22 2c 22 22 29 0d 00  52 34 76 6f 69 64 25 20  |l","")..R4void% |
000009e0  20 20 20 20 20 20 20 20  20 20 20 20 20 3d a4 73  |             =.s|
000009f0  68 65 6c 6c 5f 4d 65 6e  75 41 64 64 28 30 2c 22  |hell_MenuAdd(0,"|
00000a00  48 69 6c 6b 65 22 2c 22  22 29 0d 00 53 43 76 6f  |Hilke","")..SCvo|
00000a10  69 64 25 20 20 20 20 20  20 20 20 20 20 20 20 20  |id%             |
00000a20  20 3d a4 73 68 65 6c 6c  5f 4d 65 6e 75 41 64 64  | =.shell_MenuAdd|
00000a30  28 30 2c 22 51 75 69 74  22 2c 22 5f 4d 65 6e 75  |(0,"Quit","_Menu|
00000a40  53 65 6c 65 63 74 5f 51  75 69 74 22 29 0d 00 54  |Select_Quit")..T|
00000a50  04 0d 00 55 33 4d 65 6e  75 48 61 6e 64 6c 65 5f  |...U3MenuHandle_|
00000a60  44 65 6d 6f 25 20 20 20  3d a4 73 68 65 6c 6c 5f  |Demo%   =.shell_|
00000a70  4d 65 6e 75 4e 65 77 28  22 44 65 6d 6f 20 4d 65  |MenuNew("Demo Me|
00000a80  6e 75 22 29 0d 00 56 4b  76 6f 69 64 25 20 20 20  |nu")..VKvoid%   |
00000a90  20 20 20 20 20 20 20 20  20 20 20 3d a4 73 68 65  |           =.she|
00000aa0  6c 6c 5f 4d 65 6e 75 41  64 64 28 30 2c 22 41 73  |ll_MenuAdd(0,"As|
00000ab0  20 79 6f 75 20 63 61 6e  20 73 65 65 2c 20 6d 65  | you can see, me|
00000ac0  6e 75 73 20 63 61 6e 20  62 65 22 2c 22 22 29 0d  |nus can be","").|
00000ad0  00 57 4c 76 6f 69 64 25  20 20 20 20 20 20 20 20  |.WLvoid%        |
00000ae0  20 20 20 20 20 20 3d a4  73 68 65 6c 6c 5f 4d 65  |      =.shell_Me|
00000af0  6e 75 41 64 64 28 30 2c  22 61 6e 79 20 77 69 64  |nuAdd(0,"any wid|
00000b00  74 68 20 61 6e 64 20 63  61 6e 20 62 65 20 61 74  |th and can be at|
00000b10  74 61 63 68 65 64 22 2c  22 22 29 0d 00 58 4c 76  |tached","")..XLv|
00000b20  6f 69 64 25 20 20 20 20  20 20 20 20 20 20 20 20  |oid%            |
00000b30  20 20 3d a4 73 68 65 6c  6c 5f 4d 65 6e 75 41 64  |  =.shell_MenuAd|
00000b40  64 28 30 2c 22 74 6f 20  73 70 65 63 69 66 69 63  |d(0,"to specific|
00000b50  20 69 63 6f 6e 73 20 69  66 20 72 65 71 75 69 72  | icons if requir|
00000b60  65 64 22 2c 22 22 29 0d  00 59 04 0d 00 5a 05 e1  |ed","")..Y...Z..|
00000b70  0d 00 5b 05 3a 0d 00 5c  04 0d 00 5d 46 f4 20 3d  |..[.:..\...]F. =|
00000b80  3d 3d 3d 3d 20 44 69 61  6c 6f 67 5f 50 72 65 4f  |==== Dialog_PreO|
00000b90  70 65 6e 20 72 6f 75 74  69 6e 65 73 20 3d 3d 3d  |pen routines ===|
00000ba0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000bb0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 0d  |===============.|
00000bc0  00 5e 04 0d 00 5f 18 dd  20 a4 5f 50 72 65 4f 70  |.^..._.. ._PreOp|
00000bd0  65 6e 49 6e 66 6f 28 77  68 25 29 0d 00 60 41 f2  |enInfo(wh%)..`A.|
00000be0  73 68 65 6c 6c 5f 49 63  6f 6e 50 75 74 44 61 74  |shell_IconPutDat|
00000bf0  61 28 77 68 25 2c 30 2c  a4 73 68 65 6c 6c 5f 4d  |a(wh%,0,.shell_M|
00000c00  65 73 73 61 67 65 4e 6f  41 72 67 73 28 22 70 72  |essageNoArgs("pr|
00000c10  6f 67 49 6e 66 6f 30 22  29 2c 30 29 0d 00 61 41  |ogInfo0"),0)..aA|
00000c20  f2 73 68 65 6c 6c 5f 49  63 6f 6e 50 75 74 44 61  |.shell_IconPutDa|
00000c30  74 61 28 77 68 25 2c 31  2c a4 73 68 65 6c 6c 5f  |ta(wh%,1,.shell_|
00000c40  4d 65 73 73 61 67 65 4e  6f 41 72 67 73 28 22 70  |MessageNoArgs("p|
00000c50  72 6f 67 49 6e 66 6f 31  22 29 2c 30 29 0d 00 62  |rogInfo1"),0)..b|
00000c60  41 f2 73 68 65 6c 6c 5f  49 63 6f 6e 50 75 74 44  |A.shell_IconPutD|
00000c70  61 74 61 28 77 68 25 2c  32 2c a4 73 68 65 6c 6c  |ata(wh%,2,.shell|
00000c80  5f 4d 65 73 73 61 67 65  4e 6f 41 72 67 73 28 22  |_MessageNoArgs("|
00000c90  70 72 6f 67 49 6e 66 6f  32 22 29 2c 30 29 0d 00  |progInfo2"),0)..|
00000ca0  63 41 f2 73 68 65 6c 6c  5f 49 63 6f 6e 50 75 74  |cA.shell_IconPut|
00000cb0  44 61 74 61 28 77 68 25  2c 33 2c a4 73 68 65 6c  |Data(wh%,3,.shel|
00000cc0  6c 5f 4d 65 73 73 61 67  65 4e 6f 41 72 67 73 28  |l_MessageNoArgs(|
00000cd0  22 70 72 6f 67 49 6e 66  6f 33 22 29 2c 30 29 0d  |"progInfo3"),0).|
00000ce0  00 64 06 3d 30 0d 00 65  05 3a 0d 00 66 04 0d 00  |.d.=0..e.:..f...|
00000cf0  67 46 f4 20 3d 3d 3d 3d  3d 20 43 6c 69 63 6b 5f  |gF. ===== Click_|
00000d00  53 65 6c 65 63 74 20 72  6f 75 74 69 6e 65 73 20  |Select routines |
00000d10  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000d30  3d 3d 3d 3d 0d 00 68 04  0d 00 69 26 dd 20 a4 5f  |====..h...i&. ._|
00000d40  43 6c 69 63 6b 53 65 6c  65 63 74 5f 49 63 6f 6e  |ClickSelect_Icon|
00000d50  42 61 72 28 77 68 25 2c  69 63 6f 6e 25 29 0d 00  |Bar(wh%,icon%)..|
00000d60  6a 23 f2 73 68 65 6c 6c  5f 4f 70 65 6e 57 69 6e  |j#.shell_OpenWin|
00000d70  64 6f 77 53 74 61 74 69  63 28 6d 61 69 6e 77 25  |dowStatic(mainw%|
00000d80  29 0d 00 6b 24 f2 73 68  65 6c 6c 5f 4f 70 65 6e  |)..k$.shell_Open|
00000d90  57 69 6e 64 6f 77 53 74  61 74 69 63 28 73 65 61  |WindowStatic(sea|
00000da0  72 63 68 25 29 0d 00 6c  2b 76 6f 69 64 25 20 3d  |rch%)..l+void% =|
00000db0  20 a4 73 68 65 6c 6c 5f  57 69 6e 64 6f 77 43 6f  | .shell_WindowCo|
00000dc0  75 6e 74 49 63 6f 6e 73  28 6d 61 69 6e 77 25 29  |untIcons(mainw%)|
00000dd0  0d 00 6d 06 3d 30 0d 00  6e 05 3a 0d 00 6f 04 0d  |..m.=0..n.:..o..|
00000de0  00 70 46 f4 20 3d 3d 3d  3d 3d 20 4d 65 6e 75 5f  |.pF. ===== Menu_|
00000df0  53 65 6c 65 63 74 20 72  6f 75 74 69 6e 65 73 20  |Select routines |
00000e00  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000e20  3d 3d 3d 3d 3d 0d 00 71  04 0d 00 72 1d dd 20 a4  |=====..q...r.. .|
00000e30  5f 4d 65 6e 75 53 65 6c  65 63 74 5f 51 75 69 74  |_MenuSelect_Quit|
00000e40  28 62 6c 6b 25 29 0d 00  73 11 5f 63 6c 6f 73 65  |(blk%)..s._close|
00000e50  64 6f 77 6e 25 3d b9 0d  00 74 06 3d 30 0d 00 75  |down%=...t.=0..u|
00000e60  05 3a 0d 00 76 04 0d 00  77 46 f4 20 3d 3d 3d 3d  |.:..v...wF. ====|
00000e70  3d 20 45 6e 64 20 6f 66  20 75 73 65 72 20 61 70  |= End of user ap|
00000e80  70 6c 69 63 61 74 69 6f  6e 20 3d 3d 3d 3d 3d 3d  |plication ======|
00000e90  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000ea0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 0d 00 78 05  |============..x.|
00000eb0  3a 0d ff                                          |:..|
00000eb3