home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of German Only 1
/
romside_best_of_german_only_1.iso
/
wissen
/
dos
/
clp
/
entpack.exe
/
!CLP141.EXE
/
CLPTEST.PRG
< prev
next >
Wrap
Text File
|
1993-03-01
|
21KB
|
613 lines
*:*********************************************************************
*:
*: Program: CLPTEST.PRG
*:
*: System: ClpTest 1.41
*: Author: E. Schuster
*: Copyright (c) 1993, E. Schuster
*: Last modified: 02/18/93 1:01
*:
*: Procs & Fncts: PD_SETUP
*: : POP_SETUP
*: : MY_FUNC()
*: : POP101()
*: : POP105()
*: : POP203()
*: : POP205()
*: : USERHELP
*:
*: Calls: WIN_INIT (procedure in CLPWINDW.PRG)
*: : GET_DRIVE() (function in CLPFUNC2.PRG)
*: : WIN_CREATE (procedure in CLPWINDW.PRG)
*: : MIDDLE() (function in CLPFUNC1.PRG)
*: : WIN_MAIN (procedure in CLPWINDW.PRG)
*: : WIN_CLOSE (procedure in CLPWINDW.PRG)
*:
*: Documented 02/18/93 at 01:32 SNAP! version 4.02
*:*********************************************************************
msys = 'Datei, Programme, Optionen, Hilfe'
DO win_init WITH msys, 4, 2, 1, 3, 10, 10
statfile = 'CLPTEST.STA'
pdshadow = .T.
DEBUG = .T.
box_hlp = 0
box_msg = 3
*******************************************************************************
* Setzen eigener Variablen *
*******************************************************************************
mjn1 = '√'
mjn2 = '√'
mjn3 = '√'
mjn4 = '√'
mjn5 = '√'
mmsgcol = LEFT(msg_color,AT(',',msg_color))+pbut_color
mdir = Curdir()
mdir = IF(EMPTY(mdir),'',Alltrim(mdir)+'\')
mdrive = get_drive(mdir)
*******************************************************************************
* Start des Hauptprogramms *
*******************************************************************************
anw_id = 'CLP'
anw_ver = '1.41'
anw_name = 'Demo der Clipper-Funktionen'
anw_cr = '(C) Copyright Erich Schuster 1993'
DO win_create WITH anw_id, anw_ver, anw_name
@ 4, 0 SAY middle('Das ist eine Demonstration der Clipper-Funktionen',80)
@ 5, 0 SAY middle('- CLPWINDW mit CLPCOLOR -',80)
@ 6, 0 SAY middle('- CLPFILES mit CLPFUNC1 und CLPFUNC2 -',80)
@ 7, 0 SAY middle('- CLPNUMTO -',80)
DO win_main WITH 'my_func'
DO win_close WITH 'CLPTEST '+anw_ver+' - '+anw_name+' '+anw_cr
*!*********************************************************************
*!
*! Procedure: PD_SETUP
*!
*! Called by: PD_MENU() (function in CLPWINDW.PRG)
*! : PD_MENU2() (function in CLPWINDW.PRG)
*!
*!*********************************************************************
PROCEDURE pd_setup
PARAMETER menuid
DO CASE
&&------------------------------------------------------------------------&&
&& PULL-DOWN-MENU 1
&&------------------------------------------------------------------------&&
CASE menuid = 1
pull_down[01] = ' Pop-Up Screen 101 ... F5 '
pull_down[02] = ' Pop-Up Menu 102 ... F6 '
pull_down[03] = '───────────────────────────'
pd_valid[03] = .F.
pull_down[04] = ' Pop-Up Screen 104 ... '
pull_down[05] = ' Pop-Up Screen 105 ... '
pull_down[06] = '───────────────────────────'
pd_valid[06] = .F.
pull_down[07] = ' Programm beenden F3 '
pd_hilfe[01] = 1
pd_hilfe[02] = 2
pd_hilfe[04] = 3
pd_hilfe[05] = 4
pd_hilfe[07] = 5
&&------------------------------------------------------------------------&&
&& PULL-DOWN-MENU 2
&&------------------------------------------------------------------------&&
CASE menuid = 2
pull_down[01] = ' Verzeichnis... Strg+V '
pull_down[02] = '─────────────────────────'
pd_valid[02] = .F.
pull_down[03] = ' Zahlen umsetzen... '
pull_down[04] = '─────────────────────────'
pd_valid[04] = .F.
pull_down[05] = ' Datumsroutinen... '
pull_down[06] = '─────────────────────────'
pd_valid[06] = .F.
pull_down[07] = ' Dateien anschauen '
pd_hilfe[01] = 6
pd_hilfe[03] = 7
pd_hilfe[05] = 8
pd_hilfe[07] = 9
&&------------------------------------------------------------------------&&
&& PULL-DOWN-MENU 3
&&------------------------------------------------------------------------&&
CASE menuid = 3
pull_down[01] = ' Farben ändern... Strg+F '
pull_down[02] = ' weitere Optionen '
pull_down[03] = '──────────────────────────'
pd_valid[03] = .F.
pull_down[04] = ' Optionen sichern '
pd_hilfe[01] = 10
pd_hilfe[02] = 11
pd_hilfe[04] = 12
&&------------------------------------------------------------------------&&
&& PULL-DOWN-MENU 302
&&------------------------------------------------------------------------&&
CASE menuid = 302
pull_down[01] = mjn1+' Automatischer Cursorsprung '
pull_down[02] = mjn2+' Warnton bei den Meldungen '
pull_down[03] = mjn3+' Schatten bei PopUp-Fenstern '
pull_down[04] = mjn4+' Schatten bei PullDown-Menüs '
pull_down[05] = mjn5+' Push-Button mit Eingabetaste'
pd_hilfe[01] = 13
pd_hilfe[02] = 14
pd_hilfe[03] = 15
pd_hilfe[04] = 16
pd_hilfe[05] = 17
&&------------------------------------------------------------------------&&
&& PULL-DOWN-MENU 4
&&------------------------------------------------------------------------&&
CASE menuid = 4
pull_down[01] = ' Allgemeine Hilfe... '
pull_down[02] = ' Hilfe für Tasten... '
pull_down[03] = '──────────────────────'
pd_valid[03] = .F.
pull_down[04] = ' Über "'+anw_id+' '+anw_ver+'"... '
pull_down[05] = '──────────────────────'
pd_valid[05] = .F.
pull_down[06] = ' Shareware-Hinweis... '
pd_hilfe[01] = 18
pd_hilfe[02] = 19
pd_hilfe[04] = 20
pd_hilfe[06] = 21
ENDCASE
RETURN
*!*********************************************************************
*!
*! Procedure: POP_SETUP
*!
*! Called by: POP_SCREEN() (function in CLPWINDW.PRG)
*! : POP_MENU() (function in CLPWINDW.PRG)
*!
*!*********************************************************************
PROCEDURE pop_setup
PARAMETERS menuid
DO CASE
&&------------------------------------------------------------------------&&
&& POP_UP_SCREEN 101
&&------------------------------------------------------------------------&&
CASE menuid = 101
pop_title = 'Pop-Up Screen 101'
pop_bot1 = ''
pop_bot2 = ' <Sichern> <Abbrechen> '
pbut_activ = 1
&&------------------------------------------------------------------------&&
&& POP_UP_SCREEN 102
&&------------------------------------------------------------------------&&
CASE menuid = 102
pop_opt[1] = ' 1. Das ist ein Beispiel '
pop_opt[2] = ' 2. für ein PopUp Menü! '
pop_opt[3] = '─────────────────────────'
pop_valid[3] = .F.
pop_opt[4] = ' 4. Datei Drucken '
pop_opt[5] = '─────────────────────────'
pop_valid[5] = .F.
pop_bot1 = ''
pop_bot2 = ' <OK> <Abbrechen> '
pbut_activ = 1
&&------------------------------------------------------------------------&&
&& POP_UP_SCREEN 105
&&------------------------------------------------------------------------&&
CASE menuid = 105
pop_title = 'Pop-Up Screen 105 (über den ganzen Bildschirm)'
pop_bot1 = ''
pop_bot2 = ' <OK> '
pbut_activ = 1
&&------------------------------------------------------------------------&&
&& POP_UP_SCREEN 203
&&------------------------------------------------------------------------&&
CASE menuid = 203
pop_title = 'Zahlen umsetzen'
pop_bot1 = ''
pop_bot2 = ' <Deutsche Form> <Amerikanisch> <In Worten> <Abbrechen> '
pbut_activ = 1
&&------------------------------------------------------------------------&&
&& POP_UP_SCREEN 205
&&------------------------------------------------------------------------&&
CASE menuid = 205
pop_title = 'Datumsroutinen'
pop_bot1 = ''
pop_bot2 = ' <OK> '
pbut_activ = 1
ENDCASE