VERBatim - V16
Popups
Utility Diskette # 3 - Part I
Vroom
RTP Series - RTP32
Utility Diskette # 3 - Part I
Reader's Clinic - Scribe Replace Processes in Window
Deep Zoom Revisited
Deep Zoom by Les Palenik - Cosmotron Systems Ltd
SecureUser
VERBatim - V86
Advanced Revelation Initialisation Sequence (Overview) by Mike Pope
Window or Not ?
Vroom - Window Processing
QTIPS - Window Symbol Tables
VROOM - Window Processing II
@ATTACK - @HW
Uncommon Knowledge - WC_Reset%
Reader's Clinic - Related Windows
Window or Not?
Reader's Clinic - Scribe Replace Processes in Window
Soft Windows
QTIPS - Window Bug and Debugging Window Bug
Overlapping Windows And Window Menus
QTIPS - New Catalyst Option
QTIPS - Collectors on the fly
QTIPS - Blank Menus in Windows
QTIPS - Moving Objects the EASY way.
Prompt Help
Reader's Clinic - Scribe Replace Processes in Window
Version 3 Technical Highlights - Customising NewApplication Creation
Reader's Clinic - Preventing Records Being Amended
QTIPS - Finding/Replacing Spaces With The Editor
Reader's Clinic - Scribe Replace Processes in Window
RTP Series - RTP22
Reader's Clinic - Prompting for Passwords
@ATTACK - @Dest.Ed
@ATTACK - @Edit.Keys
A RevTechie Replies - And Miscellaneous Jottings - Mike Pope - Revelation Technologies (UK) Ltd
Uncommon Knowledge - WC_Except_Keys%
Reader's Forum
Reader's Clinic - Scribe Replace Processes in Window
Uncommon Knowledge - WC_Soft_Keys%
Readers Clinic - Unusual SCRIBE Behaviour
Reader's Clinic - LCEdit and SCRIBE
Spreadsheet Emulation in ARev Windows
Defaults
QTIPS - Autofilling Default Values
REVMEDIA Revisted
Creating Your Own Background Processes
@ATTACK - @Last.Select.Process
Reader's Forum
QTIPS - Menu Item Pre-Processing
RTP Series - RTP42
RTP Series - RTP51
Reader's Clinic - AREV Runtime
@ATTACK - @PDisk.On
Advanced Revelation Initialisation Sequence (Overview) by Mike Pope
AREV Comes to Czechoslovakia Les Palenik, Cosmotron Systems
RTP Series - RTP42
VERBatim - V65
Argument passing - Subroutines and Functions - Mike Pope
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)
Reader's Clinic - Dynamic Screen Display
VERBatim - V65
QTIPS - Securing Menus
QTIPS - Invalid Code and Command
Uncommon Knowledge - WC_Soft_Keys%
Utility Diskette # 4
Uncommon Knowledge - Window_Common% in Paint - Part I
RevTi Just Wanna Have Fun
Uncommon Knowledge - Window_Common% in Paint - Part III
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
QTIPS - Form Processor
QTIPS - Reusing Symbolics in Windows
Soft Windows
QTIPS - Query Windows - Changing Colours
Reader's Clinic - Template Name at Pre-Init
Caching in on the Frames Array - Mike Pope
Advanced Revelation Assembler Interface Module - Yves Pattyn, Technical Manager, Distribase, France
Utility Diskette # 3 - Part I
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
VERBatim - V2
Viewer
@ATTACK - @Browse.Mode
@ATTACK - @File.Error.Mode
@ATTACK - @Macro.Mode
QTIPS - Using INIT.VIEW with Printers
@ATTACK - @Scroll.Mode
@ATTACK - @View.Mode
QUERY.SUB
What's New (and un(der)documented!) In 2.12
A RevTI Techie Replies - Mike Pope - Revelation Technologies (UK) Ltd
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
QTIPS - Break-On Date Fields
IConvs / OConvs
Prompt Help
VERBatim - V6
QTIPS - BASIC Options
The End of the Line - Mike Pope and Hal Wyman
2.1 Highlights
REVMEDIA Revisited

RevMedia FKB

DocumentV3I5A2
TitleReader's Clinic - Scribe Replace Processes in Window
KeywordsSCRIBE
REPLACE
ZOOM
WINDOW
SCRIBE.FLAGS.CONSTANTS
SCRIBE.STATE.CONSTANTS
PROMPT.ALL
TextBryan 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 to save and
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 ROW +
> MV_DEPTH 'R' IMAGE) ; Save screen under prompt
border up(COL 1 ROW 1 COL + SI ROW +
> MV_DEPTH 2 "") ; Put up Zoom box
scribe(IS PROTECTED WEXIT_KEYS EXCEPT_KEYS COL ROW
> SI COLOUR SCRIBE_FLAGS WCHANGE MV_DEPTH
> WC SI SI SI DELIM SI
> SI SCRIBE_STATE)
DUMMY = video rw(COL 1 ROW 1 COL+SI ROW+MV_DEPTH
> '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 then restore old VALUE and treat as CR
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 = 0 ; * Refresh screen
SCRIBE_FLAGS = 0 ; * Keep old value
PROTECTED = 0
COL = WLX + SI ; Prompt X
ROW = WLY + SI ; Prompt Y
COLOUR = ""
MV_DEPTH = @CRTHIGH ROW 1
return


(Volume 3 Issue 5 Pages 4 5)
[revmedia/copyrigh.htm]

Page last modified: 08/02/03