home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
VPRINT.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
56 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME VPRINT .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB01.INC"
$INCLUDE "DAS-NB02.INC"
$INCLUDE "DAS-NBV1.INC"
$INCLUDE "DAS-NBV3.INC"
SCREEN 12
GraphicSETUP
COLOR 11
? "┌───────────────────────────────────────────────────────────────────────
? "│ fVprint? ( Row?, Col?, V$, Attr? )
? "│ fVprintM? ( Row?, Col?, V$, Attr? ) same as above but with Mouse OFF/ON
? "├─────────────────────────────────────────────────────────────────────────
? "│ Before going into all the cousins to this routine it is important to know
? "│ what is going on here as they all work the same with some added feature.
? "│ 1. the COLOR command has no effect and is not effected
? "│ 2. you cannot (are not allowed to) print past the end of the line
? "│ 3. you can change the color attribute in the middle of the string
? "│ 4. printing can be done using the current attribute(s) set with GCOLOR
? "│ 5. printing is done using fPutFBarr so it is always opaque
? "├─────────────────────────────────────────────────────────────────────────────
? "│ The 'trigger' to change attributes is CHR$(17) or ^PQ then CHR$(Attr?)
? "│ The test below changes from Attr? = 30 to Attr? = 31
? "└─────────────────────────────────────────────────────────────────────────────
IF NOT fVfontLoad%( "DMO\V-FONT.850" ) THEN
PRINT "CAN'T FIND THE FONT FILE"
END
END IF
Text$ = " This is a test. " : fVprint 17, 1, Text$, 30 ' yellow on blue
fVprint 18, 1, Text$, 0 ' use set attrs
Text$ = " This is a test. " : fVprint 19, 1, Text$, 30 ' change attrs
fAnyKey
CLS
SCREEN 0