home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
FNTPAK32.ZIP
/
BASIC.EXE
/
DEMO_GMS.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-08-16
|
2KB
|
78 lines
DEFINT A-Z
'$INCLUDE: 'Font_Pak.Inc' '... For QB/PDS/VB-DOS
'======================================================== PowerBasic Users
''$INCLUDE "Font_Pak.Inc" '... PB users, UN-REM these lines
''$Link "FontPakP.OBJ" '... SHAREWARE users
''$Link "Mouse_P.OBJ" '... REGISTERED users
''$Link "LDGFXCur.OBJ" '... " "
''$Link "Fonts.OBJ" '... " "
'======================================================== PowerBasic Users
'============================================================ Demo_GMS.Bas
'
' A Font Pak Demonstration Copyright 1991-1994 Rob W. Smetana
'
' Demonstrates how to select GRAPHICS-MODE mouse cursors from a library.
'
' Requires: - Ega or Vga monitor (we won't check). May NOT work
' on all EGA monitors!
'
' - Font_Pak.LIB (QB/PDS/VB-DOS) -or- Font_Pak.PBL (PowerBasic)
'
'============================================================ Demo_GMS.Bas
DECLARE FUNCTION NumGFXShapes% ()
COLOR 7, 1: CLS
CALL fpInitialize: CLS '=== SHAREWARE versions ONLY
IF rsThereIsAMouse = 0 THEN
PRINT
PRINT "Sorry, I couldn't find or initialize the mouse. I can't continue."
PRINT
END
END IF
SCREEN 9
PRINT " Demonstrates Graphics Mode Mouse Cursor Shapes. "
PRINT " Click any mouse button to see the next shape."
PRINT : PRINT
CALL rsShowCursor
PRINT " Here's the normal mouse cursor. ";
GOSUB GetMouseClick
LOCATE , 1: PRINT SPACE$(70);
FOR x = 1 TO NumGFXShapes% '...display them all
CALL rsLoadGFXCursor(x, 1, 1)
LOCATE 5, 30
PRINT "Here is cursor #:"; x;
GOSUB GetMouseClick
NEXT
SCREEN 0: PRINT "That's all . . ."
END
GetMouseClick: '...get, and then scrub mouse clicks
DO '...get a mouse click
Ky = rsButtonPressed(MouseRow, MouseCol, -1)
IF INKEY$ = CHR$(27) THEN END
LOOP UNTIL Ky
DO '...scrub mouse clicks
Ky = rsButtonPressed(MouseRow, MouseCol, -1)
LOOP WHILE Ky
RETURN