home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
clipper
/
window
/
tsdwin
/
demo20.ch
< prev
next >
Wrap
Text File
|
1992-08-26
|
7KB
|
139 lines
/*
┌──────────────────────────────────────────────────────────────────────────┐
│ │
│ DEMO20.CH │
│ │
│ Source File for TSDWIN.LIB │
│ Clipper 5.0 Interface Library │
│ │
│ Copyright ( C ) 1992 by Trilateral Systems Development Ltd. │
│ All Rights Reserved * Version 2.00 * Release Date: Aug 1, 1992 │
│ │
│ 18 Bond St. South │
│ Dundas, ON, Canada │
│ L9H 3H1 │
│ 416-628-5086 │
│ │
│ │
│ Documented: 08-26-92 at 11:48:13am │
└──────────────────────────────────────────────────────────────────────────┘
*/
#define YC ( .024 * xc * xc ) - ( 1.44 * xc ) + 24.6
#define FULLSCREEN 1, 0, MAXROW() - 1, MAXCOL()
#define SYSNAME "TSDWIN.LIB"
#translate BEEPER => TONE( 800, 0 )
#define CTNORM IIF( ! lMono, "w+/b,gr+/r,,bg+/b,n/g,w/b,n/w", ;
"w+/n, n/w,, n/w, n/w, w/n, w/n" ) // Normal Text Color
#define CFNORM IIF( ! lMono, { "bg+/b", "bg/b" }, ;
{ "w+/n", "w/n" } ) // Normal Frame Color
#define CTWNDW IIF( ! lMono, "b/bg, gr+/r,, b/bg, n/g, w/bg, n/w", ;
"w+/n, n/w,, n/w, n/w, w/n, w/n" ) // Boxed Text Color
#define CFWNDW IIF( ! lMono, { "gr+/bg", "w/bg" }, ;
{ "w+/n", "w/n" } ) // Boxed Frame Color
#define CSECUR IIF( ! lMono, "r/r, r/r,,, r/r", ;
"n/n, n/n,,, n/n" ) // Password Color
#define CTXERR IIF( ! lMono, "gr+/rb, gr+/rb,,, n/w", ;
"w+/n, n/w,, n/w, w/n" ) // Error Color
#define CFRERR IIF( ! lMono, { "bg+/rb", "bg/rb" }, ;
{ "w+/n", "w/n" } ) // Error Frame Color
#define CTXMSG IIF( ! lMono, "w+/rg, gr+/b,, r/w, gr+/rg,n/w", ;
"w+/n, n/w,, n/w,n/w, w/n" ) // Message Color
#define CFRMSG IIF( ! lMono, { "gr+/gr", "w/gr" }, ;
{ "w+/n", "w/n" } ) // Message Frame Color
#define CMENUP IIF( ! lMono, "n/w,gr+/r,,r/w,b/w", ;
"w+/n,n/w,,w+/n,w/n," ) // Menu Prompt Colour
#define CTTITLE "n/w"
#define CWTITLE "n/w"
#define YSHAD 3
#define YFRM 2 //10
#define YEXPL .F.
#define YBLINK .F.
#define CFMENUP IIF( ! lMono, { "gr+/w", "n/w" }, ;
{ "n/w", "w/n" } ) // Message Frame Color
#define CTMENUP IIF( ! lMono, "b/w", "n/w" ) // Message Color
#define CPMENUP IIF( ! lMono, "n/w,bg+/n,,r/w,b/w", ;
"w+/n,n/w,,w+/n,w/n," ) // Menu Prompt Colour
#define Y2FRM 2
#define INITGLOBALS twInitGlobal( { CTNORM, CFNORM, CTWNDW, CFWNDW, ;
CSECUR, CTXERR, CFRERR, CTXMSG, ;
CFRMSG, CTTITLE, CWTITLE, CMENUP, ;
YSHAD, YFRM, YEXPL, YBLINK, CFMENUP, ;
CTMENUP, CPMENUP, Y2FRM } )
#define COLORN twGetGlobal( 1 )
#define COLORR twUnsClr( twGetGlobal( 1 ))
#define COLORFN twGetGlobal( 2 )
#define COLORW twGetGlobal( 3 )
#define COLORFW twGetGlobal( 4 )
#define COLORS twGetGlobal( 5 )
#define COLORE twGetGlobal( 6 )
#define COLORFE twGetGlobal( 7 )
#define COLORM twGetGlobal( 8 )
#define COLORFM twGetGlobal( 9 )
#define TCOLOR twGetGlobal( 10 )
#define WTCOLOR twGetGlobal( 11 )
#define MENUCLR twGetGlobal( 12 )
#define DSHADOW twGetGlobal( 13 )
#define DFRAME twGetGlobal( 14 )
#define DEXPLODE twGetGlobal( 15 )
#define DBLINK twGetGlobal( 16 )
#define MENUFCLR twGetGlobal( 17 )
#define MENUTCLR twGetGlobal( 18 )
#define MENUPCLR twGetGlobal( 19 )
#define D2FRAME twGetGlobal( 20 )
#define BLA_CYH IIF( ! lMono, "n/*bg", "w/n" )
#define YEL_RDH IIF( ! lMono, "gr+/*r", "w+/n" )
#define BLA_GNH IIF( ! lMono, "n/*g", "n/w" )
#define WHH_BLH IIF( ! lMono, "w+/*b", "w/n" )
#define RDH_YLH IIF( ! lMono, "r+/*gr", "w+/n" )
#define WHH_VIH IIF( ! lMono, "w+/*rb", "n/w" )
#define RDH_CYH IIF( ! lMono, "r+/*bg", "w+/n" )
#define YEL_CYH IIF( ! lMono, "gr+/*bg", "w+/n" )
#define WHI_CYH IIF( ! lMono, "w+/*bg", "w+/n" )
#define BLU_CYH IIF( ! lMono, "b/*bg", "w+/n" )
#define YEL_BLU IIF( ! lMono, "gr+/b", "w+/n" )
#define WHH_BLU IIF( ! lMono, "w+/b", "w+/n" )
#define WHT_BLU IIF( ! lMono, "w/b", "w/n" )
#define YEL_RED IIF( ! lMono, "gr+/r", "w+/n" )
#define RED_CYN IIF( ! lMono, "r /bg", "n/w")
#define WHH_CYN IIF( ! lMono, "w+ /bg", "w+/n")
#define BLA_CYN IIF( ! lMono, "n /bg", "w/n")
#define YEL_CYN IIF( ! lMono, "gr+/bg", "w+/n")
#define BLU_CYN IIF( ! lMono, "b /bg", "w+/n")
#define RDH_CYN IIF( ! lMono, "r+ /bg", "w+/n")
#define GNH_CYN IIF( ! lMono, "g+ /bg", "w+/n")
#define BLH_CYN IIF( ! lMono, "b+ /bg", "w+/n")
#define MAINCLC IIF( ! lMono, "gr+/gr,g+/n,,,r+/n","w+/n,n/w,,,w/n")
#define MAINCYN IIF( ! lMono, "n/bg,w+/b,,,n/w", "w+/n,n/w,,,w/n")
#define CBUTTON IIF( ! lMono, "w+/rg, gr+/b,, r/w, gr+/rg,n/w", ;
"w+/n, n/w,, n/w,n/w, w/n" ) // Message Color
#define CFBUTTON IIF( ! lMono, { "gr+/rg", "w/rg" }, ;
{ "n/w", "w/n" } ) // Message Frame Color
#define CCHECK IIF( ! lMono, "w+/g, gr+/r,, r/w, gr+/g,n/w", ;
"w+/n, n/w,, n/w,n/w, w/n" ) // Message Color
#define CFCHECK IIF( ! lMono, { "gr+/g", "w/g" }, ;
{ "n/w", "w/n" } ) // Message Frame Color
#define CRADIO IIF( ! lMono, "w+/b, gr+/r,, r/w, bg+/r,n/w", ;
"w+/n, n/w,, n/w,n/w, w/n" ) // Message Color
#define CFRADIO IIF( ! lMono, { "gr+/b", "w/b" }, ;
{ "n/w", "w/n" } ) // Message Frame Color