The SYSGUI Event Queue
The SYSGUI device employs an event queue to provide notification of user interaction with graphical objects. An application using this mechanism must READ the SYSGUI channel to watch for events. There is only one event queue, regardless of how many contexts are active on the SYSGUI channel, and regardless of how many channels are opened to SYSGUI.
Retrieving the Event Template
Each event is returned as a fixed-size string in a standard format. A template for the event structure may be obtained with TMPL(channel).
OPEN(channel)"X0"
DIM E$:TMPL(channel)
READ RECORD (channel,siz=len(E$))E$
Event Template Structure
context:u(2),code:u(1),id:u(2),flags:u(1),x:u(2),y:u(2)
Event Descriptions
Event |
Code |
---|---|
A |
|
B |
|
c |
|
f |
|
v |
|
e |
|
V |
|
t |
|
l (lower case L) |
|
C |
|
d |
|
u |
|
2 |
|
m |
|
N |
|
R |
|
p |
|
s |
|
b |
|
X |
|
F |
|
S |
|
Timer Event | T (BBj) |
MDI Closing Event | M (BBj) |
Extended Event | x (BBj) |
Click Event | k (BBj 23.00 and higher) |
Event Queue Mnemonic
'FLUSH' mnemonic - Flush Event Queue