Home » Archimedes archive » Acorn Computing » 1994 08 subscription disc.adf » 9408s » Shareware/Event/Documents/Examples/!EvntShell/!EvntShell

Shareware/Event/Documents/Examples/!EvntShell/!EvntShell

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

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

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

:
3� � �12:ș"Hourglass_Smash":�:�" at line: ";�:�
:

)ț "<EvntShellSystem$Path>ShellLibRT"
:
ș "Hourglass_On"
:
(ș "Wimp_SlotSize",-1,-1 � progsize%
pagesize%=1<<10
freespace%=&8000+progsize%
�=freespace%+pagesize%
�=freespace%
:
?�shell_HeapManagerInit("<EvntShellSystem$Path>",freespace%)
�shell_Init
1task%=�shell_WimpInit_I(200,"EvntShell 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 --------------------
+:
,:
-� � �shell_Error
.:
/ș "Hourglass_Off"
0�
1+  �shell_Action(�shell_Poll_I(0,task%))
2� _closedown%
3:
4�shell_Exit:�
5:
6L� ======================================================================
7:
8� �app_init
9�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%)
@7�shell_AttachMenu(search%,4,MenuHandle_Demo%,0,0,0)
A�
B:
C
DF� ===== Menu_Setup routines ======================================
E
F� �SetUp_Menus
G� void%
H
I3MenuHandle_IconBar%=�shell_MenuNew("EvntShell")
J3MenuItem_Info%     =�shell_MenuAdd(0,"Info","")
K<void%              =�shell_MenuAdd(0,"Preferences..","")
LCvoid%              =�shell_MenuAdd(0,"Quit","_MenuSelect_Quit")
MF�shell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
N
O3MenuHandle_Main%   =�shell_MenuNew("Main Menu")
P3void%              =�shell_MenuAdd(0,"Paul","")
Q4void%              =�shell_MenuAdd(0,"Hilke","")
RCvoid%              =�shell_MenuAdd(0,"Quit","_MenuSelect_Quit")
S
T3MenuHandle_Demo%   =�shell_MenuNew("Demo Menu")
UKvoid%              =�shell_MenuAdd(0,"As you can see, menus can be","")
VLvoid%              =�shell_MenuAdd(0,"any width and can be attached","")
WLvoid%              =�shell_MenuAdd(0,"to specific icons if required","")
X
Y�
Z:
[
\F� ===== Dialog_PreOpen routines ==================================
]
^� �_PreOpenInfo(wh%)
_A�shell_IconPutData(wh%,0,�shell_MessageNoArgs("progInfo0"),0)
`A�shell_IconPutData(wh%,1,�shell_MessageNoArgs("progInfo1"),0)
aA�shell_IconPutData(wh%,2,�shell_MessageNoArgs("progInfo2"),0)
bA�shell_IconPutData(wh%,3,�shell_MessageNoArgs("progInfo3"),0)
c=0
d:
e
fF� ===== Click_Select routines ====================================
g
h&� �_ClickSelect_IconBar(wh%,icon%)
i#�shell_OpenWindowStatic(mainw%)
j$�shell_OpenWindowStatic(search%)
k�
l=0
m:
n
oF� ===== Menu_Select routines =====================================
p
q� �_MenuSelect_Quit(blk%)
r_closedown%=�
s=0
t:
u
vF� ===== End of user application ==================================
w:
x
�
00000000  0d 00 01 22 f4 20 3e 20  3c 45 76 6e 74 53 68 65  |...". > <EvntShe|
00000010  6c 6c 24 44 69 72 3e 2e  21 45 76 6e 74 53 68 65  |ll$Dir>.!EvntShe|
00000020  6c 6c 0d 00 02 05 3a 0d  00 03 10 64 65 62 75 67  |ll....:....debug|
00000030  67 69 6e 67 25 3d a3 0d  00 04 29 f4 20 43 6f 70  |ging%=....). Cop|
00000040  79 72 69 67 68 74 20 50  61 75 6c 20 48 6f 62 62  |yright Paul Hobb|
00000050  73 20 31 39 39 30 2c 31  39 39 31 2c 31 39 39 32  |s 1990,1991,1992|
00000060  0d 00 05 19 f4 20 52 68  65 69 6e 70 66 61 6c 7a  |..... Rheinpfalz|
00000070  73 74 72 61 73 73 65 20  32 0d 00 06 19 f4 20 20  |strasse 2.....  |
00000080  20 20 38 35 30 34 39 20  49 6e 67 6f 6c 73 74 61  |  85049 Ingolsta|
00000090  64 74 0d 00 07 19 f4 20  20 20 20 20 20 20 20 20  |dt.....         |
000000a0  20 20 20 20 47 65 72 6d  61 6e 79 0d 00 08 05 3a  |    Germany....:|
000000b0  0d 00 09 3e f4 20 54 68  69 73 20 70 72 6f 67 72  |...>. This progr|
000000c0  61 6d 20 61 6e 64 20 70  61 72 74 73 20 74 68 65  |am and parts the|
000000d0  72 65 6f 66 20 6d 61 79  20 62 65 20 66 72 65 65  |reof may be free|
000000e0  6c 79 20 64 69 73 74 72  69 62 75 74 65 64 0d 00  |ly distributed..|
000000f0  0a 05 3a 0d 00 0b 33 ee  20 85 20 eb 31 32 3a c8  |..:...3. . .12:.|
00000100  99 22 48 6f 75 72 67 6c  61 73 73 5f 53 6d 61 73  |."Hourglass_Smas|
00000110  68 22 3a f6 3a f1 22 20  61 74 20 6c 69 6e 65 3a  |h":.:." at line:|
00000120  20 22 3b 9e 3a e0 0d 00  0c 05 3a 0d 00 0d 29 c8  | ";.:.....:...).|
00000130  9b 20 22 3c 45 76 6e 74  53 68 65 6c 6c 53 79 73  |. "<EvntShellSys|
00000140  74 65 6d 24 50 61 74 68  3e 53 68 65 6c 6c 4c 69  |tem$Path>ShellLi|
00000150  62 52 54 22 0d 00 0e 05  3a 0d 00 0f 15 c8 99 20  |bRT"....:...... |
00000160  22 48 6f 75 72 67 6c 61  73 73 5f 4f 6e 22 0d 00  |"Hourglass_On"..|
00000170  10 05 3a 0d 00 11 28 c8  99 20 22 57 69 6d 70 5f  |..:...(.. "Wimp_|
00000180  53 6c 6f 74 53 69 7a 65  22 2c 2d 31 2c 2d 31 20  |SlotSize",-1,-1 |
00000190  b8 20 70 72 6f 67 73 69  7a 65 25 0d 00 12 13 70  |. progsize%....p|
000001a0  61 67 65 73 69 7a 65 25  3d 31 3c 3c 31 30 0d 00  |agesize%=1<<10..|
000001b0  13 1e 66 72 65 65 73 70  61 63 65 25 3d 26 38 30  |..freespace%=&80|
000001c0  30 30 2b 70 72 6f 67 73  69 7a 65 25 0d 00 14 1a  |00+progsize%....|
000001d0  e0 3d 66 72 65 65 73 70  61 63 65 25 2b 70 61 67  |.=freespace%+pag|
000001e0  65 73 69 7a 65 25 0d 00  15 10 d3 3d 66 72 65 65  |esize%.....=free|
000001f0  73 70 61 63 65 25 0d 00  16 05 3a 0d 00 17 3f f2  |space%....:...?.|
00000200  73 68 65 6c 6c 5f 48 65  61 70 4d 61 6e 61 67 65  |shell_HeapManage|
00000210  72 49 6e 69 74 28 22 3c  45 76 6e 74 53 68 65 6c  |rInit("<EvntShel|
00000220  6c 53 79 73 74 65 6d 24  50 61 74 68 3e 22 2c 66  |lSystem$Path>",f|
00000230  72 65 65 73 70 61 63 65  25 29 0d 00 18 0f f2 73  |reespace%).....s|
00000240  68 65 6c 6c 5f 49 6e 69  74 0d 00 19 31 74 61 73  |hell_Init...1tas|
00000250  6b 25 3d a4 73 68 65 6c  6c 5f 57 69 6d 70 49 6e  |k%=.shell_WimpIn|
00000260  69 74 5f 49 28 32 30 30  2c 22 45 76 6e 74 53 68  |it_I(200,"EvntSh|
00000270  65 6c 6c 20 44 65 6d 6f  22 29 0d 00 1a 18 f2 73  |ell Demo").....s|
00000280  68 65 6c 6c 5f 54 72 61  63 65 49 6e 69 74 28 22  |hell_TraceInit("|
00000290  22 29 0d 00 1b 12 f2 73  68 65 6c 6c 5f 54 72 61  |").....shell_Tra|
000002a0  63 65 4f 6e 0d 00 1c 18  f2 73 68 65 6c 6c 5f 52  |ceOn.....shell_R|
000002b0  65 73 6f 75 72 63 65 73  49 6e 69 74 0d 00 1d 0d  |esourcesInit....|
000002c0  f2 61 70 70 5f 69 6e 69  74 0d 00 1e 05 3a 0d 00  |.app_init....:..|
000002d0  1f 4c f4 20 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |.L. ------------|
000002e0  2d 2d 2d 2d 2d 2d 2d 2d  20 49 6e 69 74 69 61 6c  |-------- Initial|
000002f0  69 73 65 20 56 61 72 69  61 62 6c 65 73 20 2d 2d  |ise Variables --|
00000300  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000310  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 0d 00 20 05 3a 0d  |----------.. .:.|
00000320  00 21 47 5f 63 6c 6f 73  65 64 6f 77 6e 25 20 20  |.!G_closedown%  |
00000330  20 20 20 3d a3 20 3a f4  20 53 65 74 20 74 68 69  |   =. :. Set thi|
00000340  73 20 74 6f 20 54 52 55  45 20 77 68 65 6e 20 79  |s to TRUE when y|
00000350  6f 75 20 77 61 6e 74 20  74 68 65 20 70 72 6f 67  |ou want the prog|
00000360  72 61 6d 20 74 6f 0d 00  22 21 20 20 20 20 20 20  |ram to.."!      |
00000370  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000380  20 3a f4 20 65 6e 64 0d  00 23 44 63 68 61 6e 67  | :. end..#Dchang|
00000390  65 64 25 20 20 20 20 20  20 20 20 3d a3 20 3a f4  |ed%        =. :.|
000003a0  20 55 73 65 64 20 74 6f  20 6b 65 65 70 20 74 72  | Used to keep tr|
000003b0  61 63 6b 20 6f 66 20 77  68 65 74 68 65 72 20 74  |ack of whether t|
000003c0  68 65 20 64 61 74 61 20  68 61 73 0d 00 24 4b 20  |he data has..$K |
000003d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000003e0  20 20 20 20 20 20 3a f4  20 62 65 65 6e 20 63 68  |      :. been ch|
000003f0  61 6e 67 65 64 2e 20 43  61 6c 6c 20 50 52 4f 43  |anged. Call PROC|
00000400  66 69 6c 65 5f 63 68 61  6e 67 65 64 28 29 20 77  |file_changed() w|
00000410  68 65 6e 20 69 74 0d 00  25 47 20 20 20 20 20 20  |hen it..%G      |
00000420  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000430  20 3a f4 20 68 61 73 2e  20 42 75 74 20 69 66 20  | :. has. But if |
00000440  74 68 65 20 70 72 6f 67  72 61 6d 20 64 6f 65 73  |the program does|
00000450  20 6e 6f 74 20 75 73 65  20 64 61 74 61 0d 00 26  | not use data..&|
00000460  48 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |H               |
00000470  20 20 20 20 20 20 20 20  3a f4 20 66 69 6c 65 73  |        :. files|
00000480  20 6a 75 73 74 20 69 67  6e 6f 72 65 20 74 68 69  | just ignore thi|
00000490  73 20 76 61 72 69 61 62  6c 65 20 62 75 74 20 64  |s variable but d|
000004a0  6f 20 6e 6f 74 0d 00 27  47 20 20 20 20 20 20 20  |o not..'G       |
000004b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000004c0  3a f4 20 64 65 6c 65 74  65 20 69 74 20 61 73 20  |:. delete it as |
000004d0  74 68 65 20 70 72 6f 67  72 61 6d 20 63 68 65 63  |the program chec|
000004e0  6b 73 20 69 74 20 62 65  66 6f 72 65 0d 00 28 26  |ks it before..(&|
000004f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000500  20 20 20 20 20 20 20 3a  f4 20 65 78 69 74 69 6e  |       :. exitin|
00000510  67 21 0d 00 29 05 3a 0d  00 2a 4c f4 20 2d 2d 2d  |g!..).:..*L. ---|
00000520  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000530  2d 20 4d 69 73 63 65 6c  6c 65 61 6e 6f 75 73 20  |- Miscelleanous |
00000540  49 6e 69 74 69 61 6c 69  73 61 74 69 6f 6e 20 2d  |Initialisation -|
00000550  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000560  2d 2d 2d 0d 00 2b 05 3a  0d 00 2c 05 3a 0d 00 2d  |---..+.:..,.:..-|
00000570  14 ee 20 85 20 f2 73 68  65 6c 6c 5f 45 72 72 6f  |.. . .shell_Erro|
00000580  72 0d 00 2e 05 3a 0d 00  2f 16 c8 99 20 22 48 6f  |r....:../... "Ho|
00000590  75 72 67 6c 61 73 73 5f  4f 66 66 22 0d 00 30 05  |urglass_Off"..0.|
000005a0  f5 0d 00 31 2b 20 20 f2  73 68 65 6c 6c 5f 41 63  |...1+  .shell_Ac|
000005b0  74 69 6f 6e 28 a4 73 68  65 6c 6c 5f 50 6f 6c 6c  |tion(.shell_Poll|
000005c0  5f 49 28 30 2c 74 61 73  6b 25 29 29 0d 00 32 11  |_I(0,task%))..2.|
000005d0  fd 20 5f 63 6c 6f 73 65  64 6f 77 6e 25 0d 00 33  |. _closedown%..3|
000005e0  05 3a 0d 00 34 11 f2 73  68 65 6c 6c 5f 45 78 69  |.:..4..shell_Exi|
000005f0  74 3a e0 0d 00 35 05 3a  0d 00 36 4c f4 20 3d 3d  |t:...5.:..6L. ==|
00000600  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000640  3d 3d 3d 3d 0d 00 37 05  3a 0d 00 38 0f dd 20 f2  |====..7.:..8.. .|
00000650  61 70 70 5f 69 6e 69 74  0d 00 39 10 f2 53 65 74  |app_init..9..Set|
00000660  55 70 5f 4d 65 6e 75 73  0d 00 3a 59 73 69 63 6f  |Up_Menus..:Ysico|
00000670  6e 3d a4 73 68 65 6c 6c  5f 49 63 6f 6e 62 61 72  |n=.shell_Iconbar|
00000680  28 2d 31 2c 22 21 22 2b  a4 73 68 65 6c 6c 5f 47  |(-1,"!"+.shell_G|
00000690  65 74 41 70 70 4e 61 6d  65 2c 22 4e 6f 44 61 74  |etAppName,"NoDat|
000006a0  61 22 2c 31 32 30 2c 4d  65 6e 75 48 61 6e 64 6c  |a",120,MenuHandl|
000006b0  65 5f 49 63 6f 6e 42 61  72 25 2c 30 2c 30 2c 30  |e_IconBar%,0,0,0|
000006c0  29 0d 00 3b 3d f2 73 68  65 6c 6c 5f 41 74 74 61  |)..;=.shell_Atta|
000006d0  63 68 43 6c 69 63 6b 53  65 6c 65 63 74 28 2d 31  |chClickSelect(-1|
000006e0  2c 73 69 63 6f 6e 2c 22  5f 43 6c 69 63 6b 53 65  |,sicon,"_ClickSe|
000006f0  6c 65 63 74 5f 49 63 6f  6e 42 61 72 22 29 0d 00  |lect_IconBar")..|
00000700  3c 2c f2 73 68 65 6c 6c  5f 41 74 74 61 63 68 48  |<,.shell_AttachH|
00000710  65 6c 70 54 61 67 28 2d  31 2c 73 69 63 6f 6e 2c  |elpTag(-1,sicon,|
00000720  22 69 63 6f 6e 62 61 72  22 29 0d 00 3d 2d f2 73  |"iconbar")..=-.s|
00000730  68 65 6c 6c 5f 43 72 65  61 74 65 57 69 6e 64 6f  |hell_CreateWindo|
00000740  77 53 74 61 74 69 63 28  22 6d 61 69 6e 77 22 2c  |wStatic("mainw",|
00000750  6d 61 69 6e 77 25 29 0d  00 3e 37 f2 73 68 65 6c  |mainw%)..>7.shel|
00000760  6c 5f 41 74 74 61 63 68  4d 65 6e 75 28 6d 61 69  |l_AttachMenu(mai|
00000770  6e 77 25 2c 2d 31 2c 4d  65 6e 75 48 61 6e 64 6c  |nw%,-1,MenuHandl|
00000780  65 5f 4d 61 69 6e 25 2c  30 2c 30 2c 30 29 0d 00  |e_Main%,0,0,0)..|
00000790  3f 2f f2 73 68 65 6c 6c  5f 43 72 65 61 74 65 57  |?/.shell_CreateW|
000007a0  69 6e 64 6f 77 53 74 61  74 69 63 28 22 73 65 61  |indowStatic("sea|
000007b0  72 63 68 22 2c 73 65 61  72 63 68 25 29 0d 00 40  |rch",search%)..@|
000007c0  37 f2 73 68 65 6c 6c 5f  41 74 74 61 63 68 4d 65  |7.shell_AttachMe|
000007d0  6e 75 28 73 65 61 72 63  68 25 2c 34 2c 4d 65 6e  |nu(search%,4,Men|
000007e0  75 48 61 6e 64 6c 65 5f  44 65 6d 6f 25 2c 30 2c  |uHandle_Demo%,0,|
000007f0  30 2c 30 29 0d 00 41 05  e1 0d 00 42 05 3a 0d 00  |0,0)..A....B.:..|
00000800  43 04 0d 00 44 46 f4 20  3d 3d 3d 3d 3d 20 4d 65  |C...DF. ===== Me|
00000810  6e 75 5f 53 65 74 75 70  20 72 6f 75 74 69 6e 65  |nu_Setup routine|
00000820  73 20 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |s ==============|
00000830  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000840  3d 3d 3d 3d 3d 3d 3d 3d  0d 00 45 04 0d 00 46 12  |========..E...F.|
00000850  dd 20 f2 53 65 74 55 70  5f 4d 65 6e 75 73 0d 00  |. .SetUp_Menus..|
00000860  47 0b ea 20 76 6f 69 64  25 0d 00 48 04 0d 00 49  |G.. void%..H...I|
00000870  33 4d 65 6e 75 48 61 6e  64 6c 65 5f 49 63 6f 6e  |3MenuHandle_Icon|
00000880  42 61 72 25 3d a4 73 68  65 6c 6c 5f 4d 65 6e 75  |Bar%=.shell_Menu|
00000890  4e 65 77 28 22 45 76 6e  74 53 68 65 6c 6c 22 29  |New("EvntShell")|
000008a0  0d 00 4a 33 4d 65 6e 75  49 74 65 6d 5f 49 6e 66  |..J3MenuItem_Inf|
000008b0  6f 25 20 20 20 20 20 3d  a4 73 68 65 6c 6c 5f 4d  |o%     =.shell_M|
000008c0  65 6e 75 41 64 64 28 30  2c 22 49 6e 66 6f 22 2c  |enuAdd(0,"Info",|
000008d0  22 22 29 0d 00 4b 3c 76  6f 69 64 25 20 20 20 20  |"")..K<void%    |
000008e0  20 20 20 20 20 20 20 20  20 20 3d a4 73 68 65 6c  |          =.shel|
000008f0  6c 5f 4d 65 6e 75 41 64  64 28 30 2c 22 50 72 65  |l_MenuAdd(0,"Pre|
00000900  66 65 72 65 6e 63 65 73  2e 2e 22 2c 22 22 29 0d  |ferences..","").|
00000910  00 4c 43 76 6f 69 64 25  20 20 20 20 20 20 20 20  |.LCvoid%        |
00000920  20 20 20 20 20 20 3d a4  73 68 65 6c 6c 5f 4d 65  |      =.shell_Me|
00000930  6e 75 41 64 64 28 30 2c  22 51 75 69 74 22 2c 22  |nuAdd(0,"Quit","|
00000940  5f 4d 65 6e 75 53 65 6c  65 63 74 5f 51 75 69 74  |_MenuSelect_Quit|
00000950  22 29 0d 00 4d 46 f2 73  68 65 6c 6c 5f 41 74 74  |")..MF.shell_Att|
00000960  61 63 68 4d 65 6e 75 44  42 6f 78 28 4d 65 6e 75  |achMenuDBox(Menu|
00000970  49 74 65 6d 5f 49 6e 66  6f 25 2c 22 70 72 6f 67  |Item_Info%,"prog|
00000980  49 6e 66 6f 22 2c 22 5f  50 72 65 4f 70 65 6e 49  |Info","_PreOpenI|
00000990  6e 66 6f 22 2c 22 22 29  0d 00 4e 04 0d 00 4f 33  |nfo","")..N...O3|
000009a0  4d 65 6e 75 48 61 6e 64  6c 65 5f 4d 61 69 6e 25  |MenuHandle_Main%|
000009b0  20 20 20 3d a4 73 68 65  6c 6c 5f 4d 65 6e 75 4e  |   =.shell_MenuN|
000009c0  65 77 28 22 4d 61 69 6e  20 4d 65 6e 75 22 29 0d  |ew("Main Menu").|
000009d0  00 50 33 76 6f 69 64 25  20 20 20 20 20 20 20 20  |.P3void%        |
000009e0  20 20 20 20 20 20 3d a4  73 68 65 6c 6c 5f 4d 65  |      =.shell_Me|
000009f0  6e 75 41 64 64 28 30 2c  22 50 61 75 6c 22 2c 22  |nuAdd(0,"Paul","|
00000a00  22 29 0d 00 51 34 76 6f  69 64 25 20 20 20 20 20  |")..Q4void%     |
00000a10  20 20 20 20 20 20 20 20  20 3d a4 73 68 65 6c 6c  |         =.shell|
00000a20  5f 4d 65 6e 75 41 64 64  28 30 2c 22 48 69 6c 6b  |_MenuAdd(0,"Hilk|
00000a30  65 22 2c 22 22 29 0d 00  52 43 76 6f 69 64 25 20  |e","")..RCvoid% |
00000a40  20 20 20 20 20 20 20 20  20 20 20 20 20 3d a4 73  |             =.s|
00000a50  68 65 6c 6c 5f 4d 65 6e  75 41 64 64 28 30 2c 22  |hell_MenuAdd(0,"|
00000a60  51 75 69 74 22 2c 22 5f  4d 65 6e 75 53 65 6c 65  |Quit","_MenuSele|
00000a70  63 74 5f 51 75 69 74 22  29 0d 00 53 04 0d 00 54  |ct_Quit")..S...T|
00000a80  33 4d 65 6e 75 48 61 6e  64 6c 65 5f 44 65 6d 6f  |3MenuHandle_Demo|
00000a90  25 20 20 20 3d a4 73 68  65 6c 6c 5f 4d 65 6e 75  |%   =.shell_Menu|
00000aa0  4e 65 77 28 22 44 65 6d  6f 20 4d 65 6e 75 22 29  |New("Demo Menu")|
00000ab0  0d 00 55 4b 76 6f 69 64  25 20 20 20 20 20 20 20  |..UKvoid%       |
00000ac0  20 20 20 20 20 20 20 3d  a4 73 68 65 6c 6c 5f 4d  |       =.shell_M|
00000ad0  65 6e 75 41 64 64 28 30  2c 22 41 73 20 79 6f 75  |enuAdd(0,"As you|
00000ae0  20 63 61 6e 20 73 65 65  2c 20 6d 65 6e 75 73 20  | can see, menus |
00000af0  63 61 6e 20 62 65 22 2c  22 22 29 0d 00 56 4c 76  |can be","")..VLv|
00000b00  6f 69 64 25 20 20 20 20  20 20 20 20 20 20 20 20  |oid%            |
00000b10  20 20 3d a4 73 68 65 6c  6c 5f 4d 65 6e 75 41 64  |  =.shell_MenuAd|
00000b20  64 28 30 2c 22 61 6e 79  20 77 69 64 74 68 20 61  |d(0,"any width a|
00000b30  6e 64 20 63 61 6e 20 62  65 20 61 74 74 61 63 68  |nd can be attach|
00000b40  65 64 22 2c 22 22 29 0d  00 57 4c 76 6f 69 64 25  |ed","")..WLvoid%|
00000b50  20 20 20 20 20 20 20 20  20 20 20 20 20 20 3d a4  |              =.|
00000b60  73 68 65 6c 6c 5f 4d 65  6e 75 41 64 64 28 30 2c  |shell_MenuAdd(0,|
00000b70  22 74 6f 20 73 70 65 63  69 66 69 63 20 69 63 6f  |"to specific ico|
00000b80  6e 73 20 69 66 20 72 65  71 75 69 72 65 64 22 2c  |ns if required",|
00000b90  22 22 29 0d 00 58 04 0d  00 59 05 e1 0d 00 5a 05  |"")..X...Y....Z.|
00000ba0  3a 0d 00 5b 04 0d 00 5c  46 f4 20 3d 3d 3d 3d 3d  |:..[...\F. =====|
00000bb0  20 44 69 61 6c 6f 67 5f  50 72 65 4f 70 65 6e 20  | Dialog_PreOpen |
00000bc0  72 6f 75 74 69 6e 65 73  20 3d 3d 3d 3d 3d 3d 3d  |routines =======|
00000bd0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000be0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 0d 00 5d 04 0d  |===========..]..|
00000bf0  00 5e 18 dd 20 a4 5f 50  72 65 4f 70 65 6e 49 6e  |.^.. ._PreOpenIn|
00000c00  66 6f 28 77 68 25 29 0d  00 5f 41 f2 73 68 65 6c  |fo(wh%).._A.shel|
00000c10  6c 5f 49 63 6f 6e 50 75  74 44 61 74 61 28 77 68  |l_IconPutData(wh|
00000c20  25 2c 30 2c a4 73 68 65  6c 6c 5f 4d 65 73 73 61  |%,0,.shell_Messa|
00000c30  67 65 4e 6f 41 72 67 73  28 22 70 72 6f 67 49 6e  |geNoArgs("progIn|
00000c40  66 6f 30 22 29 2c 30 29  0d 00 60 41 f2 73 68 65  |fo0"),0)..`A.she|
00000c50  6c 6c 5f 49 63 6f 6e 50  75 74 44 61 74 61 28 77  |ll_IconPutData(w|
00000c60  68 25 2c 31 2c a4 73 68  65 6c 6c 5f 4d 65 73 73  |h%,1,.shell_Mess|
00000c70  61 67 65 4e 6f 41 72 67  73 28 22 70 72 6f 67 49  |ageNoArgs("progI|
00000c80  6e 66 6f 31 22 29 2c 30  29 0d 00 61 41 f2 73 68  |nfo1"),0)..aA.sh|
00000c90  65 6c 6c 5f 49 63 6f 6e  50 75 74 44 61 74 61 28  |ell_IconPutData(|
00000ca0  77 68 25 2c 32 2c a4 73  68 65 6c 6c 5f 4d 65 73  |wh%,2,.shell_Mes|
00000cb0  73 61 67 65 4e 6f 41 72  67 73 28 22 70 72 6f 67  |sageNoArgs("prog|
00000cc0  49 6e 66 6f 32 22 29 2c  30 29 0d 00 62 41 f2 73  |Info2"),0)..bA.s|
00000cd0  68 65 6c 6c 5f 49 63 6f  6e 50 75 74 44 61 74 61  |hell_IconPutData|
00000ce0  28 77 68 25 2c 33 2c a4  73 68 65 6c 6c 5f 4d 65  |(wh%,3,.shell_Me|
00000cf0  73 73 61 67 65 4e 6f 41  72 67 73 28 22 70 72 6f  |ssageNoArgs("pro|
00000d00  67 49 6e 66 6f 33 22 29  2c 30 29 0d 00 63 06 3d  |gInfo3"),0)..c.=|
00000d10  30 0d 00 64 05 3a 0d 00  65 04 0d 00 66 46 f4 20  |0..d.:..e...fF. |
00000d20  3d 3d 3d 3d 3d 20 43 6c  69 63 6b 5f 53 65 6c 65  |===== Click_Sele|
00000d30  63 74 20 72 6f 75 74 69  6e 65 73 20 3d 3d 3d 3d  |ct routines ====|
00000d40  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000d60  0d 00 67 04 0d 00 68 26  dd 20 a4 5f 43 6c 69 63  |..g...h&. ._Clic|
00000d70  6b 53 65 6c 65 63 74 5f  49 63 6f 6e 42 61 72 28  |kSelect_IconBar(|
00000d80  77 68 25 2c 69 63 6f 6e  25 29 0d 00 69 23 f2 73  |wh%,icon%)..i#.s|
00000d90  68 65 6c 6c 5f 4f 70 65  6e 57 69 6e 64 6f 77 53  |hell_OpenWindowS|
00000da0  74 61 74 69 63 28 6d 61  69 6e 77 25 29 0d 00 6a  |tatic(mainw%)..j|
00000db0  24 f2 73 68 65 6c 6c 5f  4f 70 65 6e 57 69 6e 64  |$.shell_OpenWind|
00000dc0  6f 77 53 74 61 74 69 63  28 73 65 61 72 63 68 25  |owStatic(search%|
00000dd0  29 0d 00 6b 05 cd 0d 00  6c 06 3d 30 0d 00 6d 05  |)..k....l.=0..m.|
00000de0  3a 0d 00 6e 04 0d 00 6f  46 f4 20 3d 3d 3d 3d 3d  |:..n...oF. =====|
00000df0  20 4d 65 6e 75 5f 53 65  6c 65 63 74 20 72 6f 75  | Menu_Select rou|
00000e00  74 69 6e 65 73 20 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |tines ==========|
00000e10  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000e20  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 0d 00 70 04 0d  |===========..p..|
00000e30  00 71 1d dd 20 a4 5f 4d  65 6e 75 53 65 6c 65 63  |.q.. ._MenuSelec|
00000e40  74 5f 51 75 69 74 28 62  6c 6b 25 29 0d 00 72 11  |t_Quit(blk%)..r.|
00000e50  5f 63 6c 6f 73 65 64 6f  77 6e 25 3d b9 0d 00 73  |_closedown%=...s|
00000e60  06 3d 30 0d 00 74 05 3a  0d 00 75 04 0d 00 76 46  |.=0..t.:..u...vF|
00000e70  f4 20 3d 3d 3d 3d 3d 20  45 6e 64 20 6f 66 20 75  |. ===== End of u|
00000e80  73 65 72 20 61 70 70 6c  69 63 61 74 69 6f 6e 20  |ser application |
00000e90  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000eb0  3d 3d 0d 00 77 05 3a 0d  00 78 04 0d ff           |==..w.:..x...|
00000ebd