Category : Pascal Source Code
Archive   : SHAZAM2.ZIP
Filename : BCAST.DEF
COMMENTS
--------
Demonstrate the difference between "evCommand" and "evBroadcast".
This is a very simple program, with two (2) menu selections and three
(3) events.
SHAZAM looks in the *.EVT file and extracts routines with the
following prefixes:
PREFIX HANDLEVENT (*.HE) file
------ ----------
"hb" create an entry in "HandleBroadcast"
"hd" create an entry in "HandleCommand"
Examine the generated code; if you are less than certain about how
the code behaves, use the TP IDE/Debugger to "Trace" the chain of
events, to see how "events" are routed and handled.
+-------+
|MENUBAR|
+-------+ +------+
Send direct ---------------------> |Single|
Send broadcast ---------------------> |Event |
|Queue |
+------+
|
+-----------+ |
| GetEvent | <------------+
+-----------+----+
|
+-----------+ <--+
+----- |HandleEvent| <---------------+ tagged "evBroadcast"
| +-----------+ |
| | |
| | | "Message" calls
\/ \/ | ^.HandleEvent
HandleBroadcast HandleCommand |
("evBroadcast") ("evCommand") |
--------------- ------------- |
SendIndirect SendBroadcast -----+
| SendDirect
| |
\/ \/
+------------+
|"MessageBox"|
+------------+
@PA - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[ MENUBAR ]
'send ~d~irect' ;;invoke "MessageBox" directly
'send ~b~roadcast' ;;invoke "MessageBox" via broadcast
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/