| Reader's Clinic - Scribe Replace Processes in Window |
| Deep Zoom Revisited |
| Deep Zoom by Les Palenik - Cosmotron Systems Ltd |
| Reader's Clinic - Preventing Records Being Amended |
| QTIPS - Finding/Replacing Spaces With The Editor |
| Reader's Clinic - Scribe Replace Processes in Window |
| Creating Your Own Background Processes |
| @ATTACK - @Last.Select.Process |
| Reader's Forum |
| QTIPS - Menu Item Pre-Processing |
| Playing with Scan Codes |
| QTIPS - Compiling Protection Code |
| QTIPS - Invalid Code and Command |
| QTIPS - Code/Command Help |
| Compiling 64K on a Shoestring by Blaise Wrenn (LexStat Systems Ltd) |
| QTIPS - Command Line Options |
| QTIPS - Invalid Code and Command |
| QTIPS - Code/Command Help |
| Utility Diskette # 4 |
| VERBatim - V16 |
| @ATTACK - @Int.Const |
| @ATTACK - @Move.Keys |
| @ATTACK - @Priority.Int |
| @ATTACK - @Macro.Mode |
| Uncommon Knowledge - WC_Unkeys% |
| Utility Diskette # 3 - Part I |
| Utility Diskette # 4 |
| Reader's Clinic - Different Id Same Record |
| RTP Series - RTP25 |
| QTIPS - String Space |
| Reader's Letters - Jim Owen |
| QTIPS - Finding/Replacing Spaces With The Editor |
| Reader's Clinic - Screen Width |
| Screen Grabber |
| Reader's Clinic - Slow Multivalued Screen Display |
| Utility Diskette # 4 |
| SecureUser |
| VERBatim - V25 |
| @ATTACK - @Files.System |
| Advanced Revelation Initialisation Sequence (Overview) by Mike Pope |
| REVMEDIA Revisted |
| Reader's Clinic - Functions and Subroutines |
| Argument passing - Subroutines and Functions - Mike Pope |
RevMedia FKB
| Document | V3I5A2 |
| Title | Reader's Clinic - Scribe Replace Processes in Window |
| Keywords | SCRIBE REPLACE ZOOM WINDOW SCRIBE.FLAGS.CONSTANTS SCRIBE.STATE.CONSTANTS PROMPT.ALL |
| Text | Bryan de Silva at Improvisations wanted the equivalent functionality of the zoom key on a text field without actually USING the zoom key The problem with the zoom key is the user having to learn to press F9 return to the window What was required was a zoom key equivalent that returned to the prompt on an F9 but in all other ways behaved in a standard manner This is an ideal application for a Replace Scribe hook in a window The ability to replace the default scribe process called is a little used feature of AREV made even less common by the lack of a code and command entry on the PROMPT ALL window in Paint The only way to insert the code and command is to edit the template DIRECT or to use SKELETON (or a modified PROMPT ALL one has been uploaded onto Compuserve) The values to edit are 39 and 40 of the prompt the Replace Scribe process is required to be on To describe the functionality our Replace Scribe process must provide It must maximise the entry space for the CURRENT prompt It must visually indicate to the user that this prompt has been "Zoomed" It must save and return to the screen on an F9 It must abandon and return to the screen on an It must always be in wrap mode regardless of system default mode It must position itself at the CURRENT prompt position The logic to accomplish this is straightforward given an elementary understanding of how scribe works Rather than explain in detail a fully commented code listing is presented This should be called as the Replace Scribe process and will fulfil the criteria above subroutine GET /* Author AMcA Date July 1991 Note WC_ and % omitted FROM Window Common vars for space reasons Note that the use of > is purely to indicate continuation */ $insert INCLUDE LCPOSITIONS $insert INCLUDE LCFUNCTIONS $insert INCLUDE WINDOW_COMMON% $insert INCLUDE SCRIBE STATE CONSTANTS $insert INCLUDE SCRIBE FLAGS CONSTANTS declare subroutine scribe BORDER up declare FUNCTION VIDEO rw gosub GET_SCRIBE_PARAMS SAVE_INSERT = @INSERT<2> @INSERT<2> = 1 ; * TOGGLE text wrap on mode DUMMY = video rw(COL 1 ROW 1 COL+SI > MV_DEPTH 'R' IMAGE) ; Save screen under prompt border up(COL 1 ROW 1 COL + SI > MV_DEPTH 2 "") ; Put up Zoom box scribe(IS PROTECTED WEXIT_KEYS EXCEPT_KEYS COL ROW > SI > WC SI > SI DUMMY = video rw(COL 1 ROW 1 COL+SI > 'W' IMAGE) ; restore screen begin case CASE WC = F9 * If F9 then fool window into thinking it was just CR WC = char(13) case WC = char(27) * If WC = char(13) IS = field(SCRIBE_STATE @RM SS ORIG VAL) end case @INSERT<2> = SAVE_INSERT return GET_SCRIBE_PARAMS: /* Note that most scribe parameters can be lifted DIRECTLY FROM the current prompt or WINDOW_COMMON% The PROGRAM just needs to set a couple of starter flags */ SCRIBE_FLAGS SCRIBE_FLAGS PROTECTED = 0 COL = WLX + SI ROW = WLY + SI COLOUR = "" MV_DEPTH = @CRTHIGH ROW 1 return (Volume 3 Issue 5 Pages 4 5) |
Page last modified: 08/02/03