home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
QBAS
/
WNDTOOL5.ZIP
/
ROW25.SUB
< prev
next >
Wrap
Text File
|
1989-04-26
|
3KB
|
62 lines
'
'$PAGE
'
'******************************************************************************
' Function : *
' *
' Purpose: *
' *
' *
' Results: *
' *
' Usage : *
' *
' *
' Date Written : 01/01/89 - Date Tested: 01/01/89 - Author: James P Morgan *
' Date Modified: - : - : *
'-----------------------------------------------------------------------------*
' NOTE: *
'******************************************************************************
' *
' SUB PROGRAM NAME (PARAMETERS) STATIC/RECURSIVE *
'-----------------------------------------------------------------------------*
' *
'============================================================================
'
'============================================================================
'
SUB ROW25(MSG$) STATIC
DEFINT A-Z 'make all short integer by default
DAT$=STRING$(80," ") 'initialize to spaces
ROW%=25 'put them on line 25
COL%=1 'starting in column 1
ATTR%=&H19 'use high white on blue
CALL FASTPRT(DAT$,ROW%,COL%,ATTR%) 'direct memory i/o wont cause line feed
DAT$="" 'free string space used
IF MSG$="" THEN 'any message to display on row 25?
EXIT SUB 'no (in effect just force line 25 clear)
END IF
'
'split the message in half
'
LOCATE 25,((40-(LEN(MSG$)/2))-.5)-3
COLOR 31,1
PRINT CHR$(15);" ";
COLOR 15,1
PRINT MSG$;" ";
COLOR 31,1
PRINT CHR$(15);
COLOR 7,1
EXIT SUB 'return to caller
END SUB