home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
MT_CURSR.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
59 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME MT_CURSR.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"
SCREEN 0,,0,0
CLS
? "┌────────────────────────────────────────────────────────────────────────
? "│ MouseCursor ( Mchar?, Mattr?, Cchar?, Cattr? )
? "├────────────────────────────────────────────────────────────────────────
? "│ The test mouse cursor can be changed to any character you desire. There
? "│ must be a 'mask' character/attribute and then the actual character/attr
? "│ that will be used. This can become a bit of a game to 'get things right'
? "│ so have fun! :)
? "└────────────────────────────────────────────────────────────────────────
Mchar? = 0 ' A SOLID HI-WHITE
Mattr? = 0 ' BLOCK
Cchar? = 219
Cattr? = 15
'┌─────────────────────────────
IF fMouseSETUP?( 0 ) = 0 THEN END '│ is there a mouse & all buttons
Back? = 0 '│
FOR R? = 9 TO 24 '│ print all the pretty colors
IF Back? > 7 THEN '│
Fore? = 16 '│
ELSE '│
Fore? = 0 '│
END IF '│
FOR C? = 1 TO 77 STEP 5 '│
COLOR Fore?, Back? '│
D$ = RIGHT$(STR$(1000+pbvScrnTxtAttr),3) '│
LOCATE R?, C? '│
PRINT " "; D$; " "; '│
INCR Fore?, 1 '│
NEXT '│
INCR Back?, 1 '│
NEXT '│
MouseCURSOR Mchar?,Mattr?,Cchar?,Cattr? '│ set TMouse cursor
MouseON '│ make mouse visible
fAnyKey '│ end with a key-press
MouseOFF : COLOR 7, 0 : CLS : END '└─────────────────────────────