home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
FOXPRO
/
FOXGIF
/
FOXGIF.PRG
< prev
next >
Wrap
Text File
|
1993-03-18
|
4KB
|
176 lines
Clear all
Close All
Clear
Set Talk off
Set Echo Off
Set Escape off
Use DRIVERS
Public _MEMTYP,_LRGEBUF
Define Popup WhichDrv Prompt Field DESC Footer "Select Screen Driver"
On Selection POPUP WhichDrv DO View With Prompt(),GIF_FILE
DEFINE POPUP MEM MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 2 OF MEM PROMPT 'Use \<XMS Memory'
DEFINE BAR 1 OF MEM PROMPT 'Use FOXGIF \<Virtual Memory System'
ON SELECTION POPUP MEM DO MEMchoice WITH BAR()
DEFINE POPUP BUF MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF BUF PROMPT 'Use Small 4K Page Buffer'
DEFINE BAR 2 OF BUF PROMPT 'Use Large 8K Page Buffer'
ON SELECTION POPUP BUF DO BUFchoice WITH BAR()
Clear
Do Displogo
Wait Window
Do While .T.
Clear
Do Displogo
GIF_file = GETFILE('GIF', 'Select GIF File to View',"Browse",1)
if empty(GIF_FILE)
exit
Endif
@24,0 say padc("Hit <Esc>-To Exit",80)
activate popup MEM
activate popup BUF
Activate POPUP WhichDrv
Enddo
USE
Clear all
Set Libr to
Set sysmenu on
Define Window PRNWIND from 0,0 to 23,79 TITLE ;
" [ FOXPCX Documentation ]" PANEL COLOR w/n,n/w,w/n
modi file FOXGIF.DOC NOMOD WINDOW PRNWIND
Release Window PRNWIND
do displogo
*********************
Procedure View
*********************
Parameters DRV,Gif_FlE
Clear
Hide POPUP WhichDrv
@20,0 Say Padc("Will Display GIF File "+GIF_FLE+" With :"+DRV,80)
Wait "Strike any key to View GIF File" Window
Set Talk on
If "2.5" $VERSION()
Set Libr to FOXGIF25
ELSE
set lIBR TO foxGIF
Endif
_FRet=ViewGIF(GIF_FLE,@DRIVER,_MEMTYP,_LRGEBUF)
Set Talk off
Set Libr To
Clear
Wait "FoxGif Returned "+Transf(_Fret,"999")+" = "+GIF_ERROR(_Fret) Timeout 2
Deactivate POPUP WhichDrv
Return
**********************
PROCEDURE MEMchoice
**********************
PARAMETERS _MT
_MEMTYP=_MT-1
Deactivate POPUP MEM
**********************
PROCEDURE BUFchoice
**********************
PARAMETERS _MT
_LRGEBUF=_MT-1
Deactivate POPUP BUF
************************************
Procedure GIF_ERROR
***********************************
Parameters _ER
do case
Case _ER=0
return "NO_ERROR_DETECTED"
Case _ER=100
return "XMS_NOAVAIL_ERROR"
Case _ER=101
return "XMS_ALLOC_ERROR"
Case _ER=102
return "VMS_ALLOC_ERROR"
Case _ER=103
return "XMS_PUT_ERROR"
Case _ER=104
return "XMS_GET_ERROR"
Case _ER=105
return "VMS_PUT_ERROR"
Case _ER=106
return "VMS_GET_ERROR"
Case _ER=107
return "DECODER_ERROR"
Case _ER=108
return "FILE_I_O_ERROR"
Case _ER=109
return "FOX_MEM_ERROR"
Case _ER=110
return "DRIVER_LOAD_ERROR"
Case _ER=111
return "DRIVER_CALL_ERROR"
Case _ER=112
return "DRIVER_TYPE_ERROR"
Case _ER=113
return "FILE_OPEN_ERROR"
Case _ER=114
return "NEED_VGA_ERROR"
Case _ER=115
return "OPEN_INPUT_ERROR"
Case _ER=116
return "NOXMS_ERROR"
Case _ER=117
return "PARAM1_ERROR"
Case _ER=118
return "PARAM2_ERROR"
Case _ER=119
return "PARAM3_ERROR"
Case _ER=120
return "PARAM4_ERROR"
Case _ER=121
return "NOT_GIF_ERROR"
EndCase
*******************************
Procedure Displogo
*******************************
@7,0 Say ""
TEXT
█████ ███ █ █ ████ ████ █████
█ █ ██ ██ █ █ ██ ██ ██ █ █
█ █ █ █ ██ ██ ██ ██ █ █
███ █ █ ███ ██ ██ ███
█ █ █ █ ███ ██ ███ ██ █ █
█ ██ ██ ██ ██ ██ ██ ██ █
███ ███ █ █ █████ ████ ███
ENDTEXT
@18,0 Say padc("FoxGif DEMO Version 1.0",80)
@19,0 Say padc("(c) 1993 Warren Master",80)
Return