| Reader's Clinic - Functions and Subroutines |
| Reader's Letters - Jim Owen |
| Playing with Scan Codes |
| Argument passing - Subroutines and Functions - Mike Pope |
RevMedia FKB
| Document | V1I9A22 |
| Title | Window or Not ? |
| Keywords | WINDOW @STATUS.ON VIDEO.RW |
| Text | When writing a general purpose routine for use on a macro key it can frequently be imperative to ascertain whether the user is currently on a window so that WINDOW_COMMON% VARIABLES can be used I present below a workable fast but inelegant solution Please note that it only works if the status line is on FUNCTION CHECK WINDOW IN WINDOW = 0; NEW = "" IF @STATUS ON THEN CALL VIDEO RW(1 22 6 22 "R" IMAGE) FOR X = 1 TO 12 STEP 2 NEW := IMAGE[X 1] NEXT IF NEW = "Window" THEN IN WINDOW = 1 END RETURN IN WINDOW (Volume 1 Issue 9 Page 11) |
Page last modified: 30/01/03