home *** CD-ROM | disk | FTP | other *** search
- Alrt.BIN LEM
- --------------
-
- Module Copy:
- ------------
- MODULE('Alrt.BIN'),BINARY
- PROC(GetAlert) !* Saves ALERT structure.
- PROC(PutAlert) !* Restores ALERT structure.
- END
-
- The following structure must be declared:
- (Although most anything is allowed - the SHORTs are better because
- you can then read the array elements to determine which keys are
- ALERTed if you want.)
- ------------------------------------------------------------------
-
- gSavAlerts GROUP !* Whatever this group contains it
- isAlertKey SHORT,DIM(16,2) !* must be at least 64 bytes long
- END !* the LEM does not check this.
- !* SHORT = 2 bytes
-
- Reason for the DIM(16,2):
- Clarion allows 16 ALERT ranges, the 2 dimension is the starting key
- and ending key for an ALERT range (if only one key is ALERTed then
- that key value is in both the 1 and 2 position.
-
- !*** Warning
- Do not read the GROUP structure (SavAlerts) from within the
- Debugger - it can change certain values. Known Changes:
- Esc_Key - will be changed from 256 to 288.
- No ALERT key for one of the 16 positions -
- will be changed from 0 to 8224.
- !*** End of Warning *****
-
-
- Typical Usage:
- -------------
-
- GetAlert(gSavAlerts) !** Save present ALERT structure
- ALERT() !** Clear all active ALERTs
- ALERT(F10_Key) !** ALERT just F10_Key
- !** Do whatever you want - when finished:
- PutAlert(gSavAlerts) !** Restores previous ALERT structure.
-