Table of Contents

Utility Diskette # 3 - Part II

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 JUL 19912.03+EXPERTUTILITY, DISKETTE, THREE, BANNER, BTREE_SCAN, CAPLOCK, COLOUR, CRC, DOSENV, FLIPTAB, FTOSTR, GAS_BAR, LABEL.DISPLAY, LCFUNCTIONS, LCPOSITIONS, NOVUSER, NUMLOCK, NUM_TO_WORD, PERCENT_DONE, PLAY, ROMAN, ROUND, ROUND2, RTP25, SELECT_BROWSE, SPREZ.DEMO.A, WRITEAMT, XLATE_IND, AUTOGRAPH, BANNER, PAL, POWER_G, CANONLBP, DISPLAY_AREV_COMMON, HPLJET2, INSERT_CODE, MENUUTIL, DOS2REV, HP66, HPII, HPIILAND, HPRESET, REV2DOS

Continued from Utility Diskette # 3 - Part I

RBASIC UTILITIES

BANNERProvides MSG type A replacement - displays text in a scrolling banner until user presses a key.
BTREE_SCANUser defined function to display a Btree index (with associated information) for a given field in a popup, positioning the user at a user defined location within the popup and permitting navigation of the index backwards and forwards. Supports full POPUP functionality.
CAPLOCKAssembler subroutine passed 1 to turn capslock on or 0 to turn capslock off
COLOUR$An equated insert block with 256 possible colour combinations. Makes it possible to print CYAN_ON_DBLUE$ etc.
CRCUser defined function to calculate a 16-bit CRC for a record.
DOSENVAssembler subroutine, passed variable to contain dos environment settings. Returns dos environment settings CHAR(0) delimited.
FLIPTABSwaps key assignments for Tabs providing more traditional tabbing.
FTOSTRUsed to force cleanup of descripter() by passing number through internal NUMBER TO STRING CONVERSION (and thereby adjusting floating point internal precision to correspond with presented and evaluated representation).
GAS_BARAmended version of GAS_BAR to fix some screen corruption problems.
GET.DOSAssembly language subroutine to return the current DOS version.
LABEL.DISPLAYComprehensive label manipulation program for use within windows. Permits redisplay, removal, restoration, recalculation, colour changes et al.
LCFUNCTIONSEquate block to replace labelled common area (due to be adopted in future releases of 2.1).
LCPOSITIONSEquate block to replace labelled common area (due to be adopted in future releases of 2.1).
NOVUSERAssembly language subroutine to return the current Novell user name.
NUMLOCKAssembler subroutine passed 1 to turn numlock on or 0 to turn numlock off.
NUM_TO_WORDConverts passed integer to word string.
PERCENT_DONEGAS_BAR equivalent for FOR/NEXT loops.
PLAYA subroutine to emulate the GWBASIC PLAY statement. Permits the setting of tempos, octaves, notes etc.
ROMANUser defined function to take Arabic numbers and convert to Roman.
ROUNDSimple rounding function.
ROUND2More complex user defined conversion for rounding.
RTP25Example use of replacement RTP25 to show the user different debugger screen. (Note that replacement RTP25 routines ought to avoid the use of higher level routines such as MSG to avoid being caught in infinite loops - PRINT is preferred - Ed).
SELECT_BROWSEAllows operator to select desired record in browse list and to reposition the current browse list pointer at the selected record.
SPREZ.DEMO.aSeries of routines provided to illustrate complex window processing. Well documented internally. Shows how to use LABEL.DISPLAY, ROUND2, FTOSTR.
WRITEAMTThe WRITEAMT function converts a number < 99 trillion into its written out form in dollars and cents, suitable for writing checks. It stops with an error if the number input is too large or contains alphabetic characters. The input number (NUM.IN) is assumed to be in MD2 format.
XLATE_INDUser defined conversion subroutine to make direct accesses to an associated file's index for verification or display.

GRAPHICS APPLICATIONS

AUTOGRAPHA shareware version of a simple graphing utility for AREV. Displays line graphs and bar charts. If used on a network can be instructed to auto-refresh every X seconds. Ideal for use in financial applications.
BANNERA .EXE file designed to replace the REVLOMSG with ANY PCX graphic file. Included also are several sample PCX files. Requires careful installation so refer to the on-disk docs. Remember that RevTech might consider the non-display of copyright messages a violation of licence agreement.
PALA .EXE file which is used in conjunction with the provided subroutines and entry windows to adjust the palette within AREV to that of your choice. Norton Control Centre comes to AREV!
POWER_GA .EXE file which permits the display of a PCX graphic from within AREV and displays up to four buttons which the user can select with a mouse or Alt-Key combination - returning a code to AREV! Thus a PCX map of the world could be shown and the user allowed to pick one of four continents. Control would then be returned to AREV which could then display a map of the continent with the four major countries etc etc. This is a limited but fully working example of a graphics project we are seriously considering taking further.

GAMES

WILLY WORMAn arcade style game involving a growing worm, power pellets and sudden death! Excellent use of VSPACE and sound.

MISCELLANEOUS

CANONLBPPrinter Driver definition for AREV 2.1
DISPLAY_AREV_COMMONAttaches to macro key to display popup of all AREV.COMMON variables within a window
HPLJET2Printer Driver Definition for AREV 2.1.
INSERT_CODEMakes writing programs easier. Uses a macro to insert common blocks of code into a program. Caters for file opens, popups standard headers etc al and can be extended.
MENUUTILAdds four softkeys onto the makemenu window to permit resorting, combining, duplicating and reordering menu options.

DOS UTILITIES

DOS2REVConverts DOS file of any size having CRLF delimiters to @FM delimited.
HP66Sets 8 LPI on a Laserjet
HPIISets compressed portrait on Laserjet
HPIILANDSets compressed landscape on Laserjet (great for code listings)
HPRESETResets Laserjet
REV2DOSConverts DOS file of any size having @FM delimiters to CRLF delimited.

(Volume 3, Issue 3, Pages 6-9)