home *** CD-ROM | disk | FTP | other *** search
Wrap
******************** FUNCTION Scrinit CLEAR SCREEN IF TYPE("scrdata") = "U" IF FILE("Screen.sys") RESTORE FROM Screen.sys ADDITIVE ELSE RETURN(.F.) ENDIF ENDIF EXTERNAL Dside PUBLIC wedopt, option0 STORE 1 TO option0, wedopt @ 0, 0 SAY scrleft_1 + " / " + scrleft_2 @ 0,68 SAY "Screen Setup" SET SCOREBOARD OFF Windowpush(1,0,3,79) real_abort = .F. SET WRAP ON moveframe = CHR(203) + CHR(205) + CHR(203) + CHR(186) + CHR(188) + CHR(205) + CHR(200) + CHR(186) KEYBOARD CHR(24) DO WHILE .T. Bringsetup() SET KEY 24 TO Dside wedopt = MAKEMENU(" Disk / System / Border / Colors / Reports / Keep ", 2, 3, wedopt, 4, .F.) option5 = 0 && This is for saving the system IF EMPTY(wedopt) KEYBOARD "K" LOOP ENDIF IF wedopt = 1 Down1() ELSEIF wedopt = 2 Down2() ELSEIF wedopt = 3 Down3() ELSEIF wedopt = 4 Down4() ELSEIF wedopt = 5 Down5() ELSEIF wedopt = 6 Down6() IF real_abort EXIT ENDIF ENDIF ENDDO Windowpop() RETURN( !real_abort ) ******************** PROCEDURE Down1 option1 = 1 Windowpush(3, 3,17, 52) DO WHILE .T. Totalkeyon() Typeset() DECLARE amen[13] amen[1] = "1> " + IF(scrsys, "Hard", "Floppy") + " Disk" amen[2] = "2> Program Drive Set to " + scrprog amen[3] = "3> Data Drive Set to " + scrdata amen[4] = "4> Set Data Search Path" amen[5] = "5> Help " + IF(scrhelp, "IS", "IS NOT") + " available" amen[6] = "6> " + LTRIM(TRIM(TRANSFORM(scrnet1, "999"))) + " seconds per try" amen[7] = "7> " + LTRIM(TRIM(TRANSFORM(scrnet2, "99"))) + " tries before abort" amen[8] = "8> " + IF(scrprot, "Protect", "UNProtect") + " Databases " amen[9] = "Screen Level is " + LTRIM(STR(scr_level)) amen[10]= "Window Coordinates are " + LTRIM(STR(scrwrow)) +"-"+ LTRIM(STR(scrwcol)) +"-"+ LTRIM(STR(scrwdown)) +"-"+ LTRIM(STR(scrwover)) amen[11]= "Buffers " + LTRIM(STR(scrbuffers)) amen[12]= "Files " + LTRIM(STR(scrfiles)) amen[13]= Fill_out("Root name of help file is " + SUBSTR(scrhname, 1, 19), 46) option1 = MAKEMENU(amen, Wrow(1), Wcol(1), option1, 3) Totalkeyoff() IF option1 = 0 && I keep this separate so that I can have only 1 Pushscreen EXIT && call rather than many calls in each CASE statement ENDIF Windowpush(17,00,20,79) DO CASE CASE option1 = 1 scrsys = !scrsys IF !scrsys .AND. scrprog = scrdata KEYBOARD "2" ENDIF CASE option1 = 2 @ 18,10 SAY "Enter Program Drive: " GET scrprog PICT "!" READ IF !scrsys IF scrprog = scrdata Clear_area() @ 18,10 SAY "Data Drive and Program Drive NOT EQUAL for Floppy System" @ 19,10 SAY "Enter Data Drive: " GET scrdata PICT "!" VALID scrprog <> scrdata READ ENDIF ENDIF CASE option1 = 3 @ 18,10 SAY "Enter Data Drive: " GET scrdata PICT "!" READ IF !scrsys IF scrprog = scrdata Clear_area() @ 18,10 SAY "Program Drive and Data Drive NOT EQUAL for Floppy System" @ 19,10 SAY "Enter Program Drive: " GET scrprog PICT "!" VALID scrdata <> scrprog ENDIF ENDIF CASE option1 = 4 IF LEN(scrpath) < 40 scrpath = FILL_OUT(scrpath, 40) ENDIF new_sc_lev = scr_level Clear_area() EXTERNAL Showtree SET KEY 63 TO Showtree @ 18, 5 SAY "Set Data Search Path / ? To Build Directory Tree ..." @ 19,10 GET scrpath PICT "@K@!" READ scr_level = new_sc_lev SET KEY 63 TO scrpath = TRIM(scrpath) CASE option1 = 5 scrhelp = !scrhelp CASE option1 = 6 @ 18,10 SAY "Enter the number of seconds to wait before each network " @ 19,10 SAY " attempt is made => " GET scrnet1 PICT "###" VALID(scrnet1 >=0 .AND. scrnet1 <=300) READ CASE option1 = 7 @ 18,10 SAY "Enter the number of tries for a failed networking attempt" @ 19,10 SAY " before file access and operation is aborted => " GET scrnet2 PICT "##" VALID(scrnet2 >= 0 .AND. scrnet2 <=50) READ CASE option1 = 8 scrprot = !scrprot CASE option1 = 11 @ 18,10 SAY "Enter the BUFFER size for the Config.SYS FIle => " GET scrbuffers PICT "##" VALID(scrbuffers >= 8 .AND. scrbuffers <= 99) READ CASE option1 = 12 @ 18,10 SAY "Enter the number of FILES for the Config.SYS FIle => " GET scrfiles PICT "##" VALID(scrfiles >= 7 .AND. scrfiles <= 250) READ CASE option1 = 13 scrhname = Fill_out(scrhname, 50) @ 18,10 SAY "Enter name of HELP file => " GET scrhname PICT "@!@S30" READ scrhname = TRIM(scrhname) IF SUBSTR(scrhname, 1, 1) = "\" scrhname = SUBSTR(scrhname, 2) ENDIF IF "."$scrhname scrhname = SUBSTR(scrhname, 1, AT(".", scrhname)) ENDIF OTHERWISE @ 18,10 SAY "That operation is NOT available. Any key to continue." INKEY(0) ENDCASE Windowpop() ENDDO Windowpop() ******************** PROCEDURE Down2 option1 = 1 Windowpush( 3, 7, 20, 43) DO WHILE .T. Totalkeyon() Typeset() @ 4, 8 PROMPT FILL_OUT("1> Confirm is " + IF(scrconfirm, "ON ", "OFF"), 35) @ 5, 8 PROMPT FILL_OUT("2> Delimiters are " + IF(scrdelim, "ON", "OFF"), 35) @ 6, 8 PROMPT FILL_OUT("3> Delimiters SET to " + scrdelimto, 35) @ 7, 8 PROMPT FILL_OUT("4> Bell " + IF(scrbell, "WILL", "WILL NOT") + " ring", 35) @ 8, 8 PROMPT FILL_OUT("5> Password " + IF(scrshow, "WILL", "WILL NOT") + " echo to screen", 35) @ 9, 8 PROMPT FILL_OUT("6> Change Password", 35) @ 10, 8 PROMPT FILL_OUT("7> " + LTRIM(TRIM(STR(scrtimes))) + " tries at the Password", 35) @ 11, 8 PROMPT FILL_OUT("8> " + IF(scrtype, "Engage ", "Disengage") + " Type-Ahead Feature", 35) @ 12, 8 PROMPT FILL_OUT("9> Floppy Disk Capacity is " + LTRIM(TRIM(TRANSFORM(scrdisk/1024, "999999 K"))), 35) @ 13, 8 PROMPT FILL_OUT("0> Pausing Factor set to " + LTRIM(TRIM(STR(scrpause))), 35) IF EMPTY(scrmess) @ 14, 8 PROMPT Fill_out("A> Message Line set OFF", 35) ELSE w_is_numb = LTRIM(TRANSFORM(scrmess, "99")) @ 14, 8 PROMPT FILL_OUT("A> Message Line set " + w_is_numb, 35) ENDIF @ 15, 8 PROMPT FILL_OUT("B> Message is " + IF(scrcenter, "centered", "flush left"), 35) @ 16, 8 PROMPT FILL_OUT("C> Set Date Type", 35) @ 17, 8 PROMPT FILL_OUT("D> Margin is set at " + LTRIM(TRIM(STR(scrmarg))), 35) @ 18, 8 PROMPT FILL_OUT("E> Error ROW=" + TRANSFORM(scr_err_row, "99") + " and COL=" + TRANSFORM(scr_err_col, "99"), 35) @ 19, 8 PROMPT FILL_OUT("F> System Name/Title", 35) MENU TO option1 Totalkeyoff() IF option1 = 0 && I keep this separate so that I can have only 1 Pushscreen EXIT && call rather than many calls in each CASE statement ENDIF Windowpush( 19,00,23,79 ) DO CASE CASE option1 = 1 scrconfirm = !scrconfirm CASE option1 = 2 scrdelim = !scrdelim CASE option1 = 3 STORE " " TO choice @ 20,10 SAY "Set Left Delimiter: " GET choice PICT "X" READ STORE choice TO scrdelimto STORE " " TO choice @ 20,10 SAY "Set Right Delimiter: " GET choice PICT "X" READ STORE scrdelimto + choice TO scrdelimto CASE option1 = 4 scrbell = !scrbell CASE option1 = 5 scrshow = !scrshow CASE option1 = 6 IF !Chkpass(12,14) Badpass( 12, 14, "You must have original Password to", "in order to gain access." ) ELSE STORE SPACE(15) TO password @ 20,10 SAY "What Password do you want to use? " GET password PICT "XXXXXXXXXXXXXXX" READ IF UPDATED() scrpass = Genpass(password) ENDIF ENDIF CASE option1 = 7 @ 20,10 SAY "How may tries for a correct Password? " GET scrtimes PICT "##" range 0,99 READ CASE option1 = 8 scrtype = !scrtype CASE option1 = 9 @ 20,10 SAY "Enter Floppy Disk Capacity => " GET scrdisk PICT "#########" VALID(scrdisk >= 300000 .AND. scrdisk <= 99999999) READ CASE option1 = 10 @ 20,10 SAY "Enter Pausing Factor => " GET scrpause PICT "####" VALID(scrpause>=0 .AND. scrpause<=9999) READ @ 20,10 SAY "This is a Pausing Test. Any Key to continue..." INKEY(0) @ 20,10 SAY " " @ 20,10 SAY "Working...." FOR x = 1 TO scrpause NEXT @ ROW(),COL() SAY "...Finished" @ 21,10 SAY "Now press any key again to Return to System Sub-Menu" INKEY(0) CASE option1 = 11 @ 20,10 SAY "Enter Line Number => " GET scrmess PICT "##" RANGE 0,24 READ CASE option1 = 12 scrcenter = !scrcenter CASE option1 = 13 Windowpush( 17,12,24,26) scrdtype = Makemenu("American /Ansi/British/Italian/French/German", 18,13, scrdtype, 1, .T.) Windowpop() CASE option1 = 14 @ 20,10 SAY "Enter Column for Margin = " GET scrmarg PICT "##" RANGE 0,70 READ CASE option1 = 15 @ 20,10 SAY "Enter ROW Number for Error Messages = " GET scr_err_row PICT "##" RANGE 0,24 @ 21,10 SAY " COLUMN Number for Error Messages = " GET scr_err_col PICT "##" RANGE 0,79 READ CASE option1 = 16 @ 20,10 SAY "Enter First Title Line = " GET scrleft_1 PICT "@X@S20" @ 21,10 SAY " Second Title Line = " GET scrleft_2 PICT "@X@S20" READ ENDCASE Windowpop() ENDDO Windowpop() ******************** PROCEDURE Down3 in_choice = 4 Windowpush( 3,20,10,55) string4 = CHR(201) + CHR(205) + CHR(187) + CHR(186) + CHR(188) + CHR(205) + CHR(200) + CHR(186) + CHR(32) string5 = REPLICATE(CHR(176), 8 ) + CHR(32) string6 = CHR(218) + CHR(196) + CHR(191) + CHR(179) + CHR(217) + CHR(196) + CHR(192) + CHR(179) + CHR(32) stringa = CHR(222) + CHR(223) + CHR(221) + CHR(221) + CHR(221) + CHR(220) + CHR(222) + CHR(222) + CHR(32) stringb = REPLICATE(CHR(249), 8) + CHR(32) stringc = REPLICATE(CHR(15), 8) + CHR(32) stringd = CHR(4) + CHR(31) + CHR(4) + CHR(17) + CHR(4) + CHR(30) + CHR(4) + CHR(16) + CHR(32) stringe = REPLICATE(CHR(177), 8) + CHR(32) stringf = REPLICATE(CHR(219), 8) + CHR(32) DO WHILE .T. Totalkeyon() Typeset() in_choice = Makemenu("1> *********/2> =========/3> ---------/4> &string4./5> &string5./6> &string6./A> &stringa./B> &stringb./C> &stringc./D> &stringd./E> &stringe./F> &stringf.", 4,21,in_choice,4,.T., 1, 9) Totalkeyoff() DO CASE CASE in_choice = 1 scrframe = "******** " scrbar = REPLICATE("*",80) scrlin = "*" CASE in_choice = 2 scrframe = "======== " scrbar = REPLICATE("=",80) scrlin = "=" CASE in_choice = 3 scrframe = "+-+|+-+| " scrbar = "+" + REPLICATE("-",78) + "+" scrlin = "|" CASE in_choice = 4 scrframe = string4 scrbar = CHR(204) + REPLICATE(CHR(205),78) + CHR(185) scrlin = CHR(186) CASE in_choice = 5 scrframe = string5 scrbar = REPLICATE(CHR(176), 80) scrlin = CHR(176) CASE in_choice = 6 scrframe = string6 scrbar = CHR(195) + REPLICATE(CHR(196),78) + CHR(180) scrlin = CHR(179) CASE in_choice = 7 scrframe = stringa scrbar = CHR(222) + REPLICATE(CHR(220),78) + CHR(221) scrlin = CHR(222) CASE in_choice = 8 scrframe = stringb scrbar = REPLICATE(CHR(249),80) scrlin = CHR(249) CASE in_choice = 9 scrframe = stringc scrbar = REPLICATE(CHR(15),80) scrlin = CHR(15) CASE in_choice = 10 scrframe = stringd scrbar = REPLICATE(CHR(4), 80) scrlin = CHR(4) CASE in_choice = 11 scrframe = stringe scrbar = REPLICATE(CHR(177), 80) scrlin = CHR(177) CASE in_choice = 12 scrframe = stringf scrbar = REPLICATE(CHR(219), 80) scrlin = CHR(219) OTHERWISE EXIT ENDCASE Drawframe() ENDDO Windowpop() ******************** PROCEDURE Down4 option1 = 1 Windowpush( 3, 30,11,75) DO WHILE .T. Typeset() Totalkeyon() @ 4, 31 PROMPT FILL_OUT("1> Screen " + IF(scrbright, "Bright", "Normal"), 44) @ 5, 31 PROMPT FILL_OUT("2> Field Color is " + IF(scrinten, "ON", "OFF"), 44) @ 6, 31 PROMPT FILL_OUT("3> Change The Colors " + scrcolor, 44) @ 7, 31 PROMPT FILL_OUT("4> Build Graphics =>" + scrrtop + scrltop + ; scrrbot + scrlbot + scrinter + scrhoriz + scrlin + scrrbar + scrlbar, 44) @ 8, 31 PROMPT FILL_OUT("5> " + IF(scrmono, "Monocrome Monitor", "Color Monitor"), 44) @ 9, 31 PROMPT FILL_OUT("6> Manual Color Change ", 44) @ 10, 31 PROMPT FILL_OUT("7> Set Default Colors ", 44) MENU TO option1 Totalkeyoff() DO CASE CASE option1 = 1 scrcolor = IF(scrbright, STRTRAN(scrcolor, "+", ""), SUBSTR(scrcolor,1,1) + "+" + SUBSTR(scrcolor,2,4) + "+" + SUBSTR(scrcolor,6) ) scrbright = !scrbright CASE option1 = 2 scrinten = !scrinten CASE option1 = 3 IF !scrmono Change_col() ENDIF CASE option1 = 4 Buildgraph() CASE option1 = 5 scrmono = !scrmono CASE option1 = 6 scrcolor = Fill_out(scrcolor, 30) Windowpush(11,30,13,76) @ 12,31 SAY "Enter Color =" GET scrcolor PICT "@S15" READ scrcolor = TRIM(scrcolor) Windowpop() CASE option1 = 7 scrcolor = IF( ISCOLOR() .AND. !scrmono, "7/1,0/7,N,N,0/7", "7/0,0/7,N,N,0/7" ) OTHERWISE EXIT ENDCASE ENDDO Windowpop() ******************** PROCEDURE Down5 option1 = 1 Windowpush( 3,42,18,74) DO WHILE .T. Totalkeyon() Typeset() @ 4,43 PROMPT FILL_OUT("1> " + IF(scrpage, "Print", "Do Not Print") + " page numbers", 31) @ 5,43 PROMPT FILL_OUT("2> " + IF(scrprnt, "Parallel", "Serial") + " printer", 31) @ 6,43 PROMPT FILL_OUT("3> " + IF(scrdelete, "Show", "Don't show") + " deleted records", 31) @ 7,43 PROMPT FILL_OUT("4> Choose Date - " + TRANSFORM(scrdate, "9"), 31) @ 8,43 PROMPT FILL_OUT("5> Insert Condense Printer Code",31) @ 9,43 PROMPT FILL_OUT("6> Insert Normal Printer Code",31) @ 10,43 PROMPT FILL_OUT("7> " + IF(screject, "Extra Page Eject", "No Page Eject"), 31) @ 11,43 PROMPT FILL_OUT("8> Top Margin - Page 1 ", 31) @ 12,43 PROMPT FILL_OUT("9> Top Margin - Rest ", 31) @ 13,43 PROMPT FILL_OUT("A> Left Margin - Page 1", 31) @ 14,43 PROMPT FILL_OUT("B> Left Margin - Rest ", 31) @ 15,43 PROMPT FILL_OUT("C> Template Format ", 31) @ 16,43 PROMPT FILL_OUT("D> Amount Format ", 31) @ 17,43 PROMPT FILL_OUT("E> Template Decimal ", 31) MENU TO option1 Totalkeyoff() DO CASE CASE option1 = 1 scrpage = !scrpage CASE option1 = 2 scrprnt = !scrprnt CASE option1 = 3 scrdelete = !scrdelete CASE option1 = 4 Chang_date() CASE option1 = 5 Windowpush( 18,00,22,79 ) scrpntcd = Fill_out(scrpntcd, 69) @ 19,3 SAY Fill_out(Centr("Enter Condense Printer Code", 72), 71) @ 21,7 GET scrpntcd PICT "@X@S68" READ scrpntcd = TRIM(scrpntcd) Windowpop() CASE option1 = 6 Windowpush( 18,00,22,79 ) scrpntnor = Fill_out(scrpntnor, 69) @ 19,3 SAY Fill_out(Centr("Enter Normal Printer Code", 72), 71) @ 21,7 GET scrpntnor PICT "@X@S68" READ scrpntnor = TRIM(scrpntnor) Windowpop() CASE option1 = 7 screject = !screject CASE option1 = 8 Windowpush( 11,0,14,40 ) @ 12, 5 SAY "Enter Top Margin For" @ 13, 5 SAY " Page 1 of Reports => " GET scrtm1 PICT "##" RANGE 0,25 READ Windowpop() CASE option1 = 9 Windowpush( 11,0,14,40 ) @ 12, 5 SAY "Enter Top Margin For ALL" @ 13, 5 SAY " other Report Pages => " GET scrtm2 PICT "##" RANGE 0,25 READ Windowpop() CASE option1 = 10 Windowpush( 11,0,14,40 ) @ 12, 5 SAY "Enter Left Margin For " @ 13, 5 SAY " Page 1 of Reports => " GET scrlm1 PICT "##" RANGE 0,40 READ Windowpop() CASE option1 = 11 Windowpush( 11,0,14,40 ) @ 12, 5 SAY "Enter Left Margin For All" @ 13, 5 SAY " other Report Pages => " GET scrlm2 PICT "##" RANGE 0,40 READ Windowpop() CASE option1 = 12 Maketemp() CASE option1 = 13 Makeform() CASE option1 = 14 Makedeci() OTHERWISE EXIT ENDCASE ENDDO Windowpop() ******************** PROCEDURE Down6 option5 = 1 Windowpush( 3,59,7,78) DO WHILE .T. Totalkeyon() Typeset() option5 = Makemenu("Save Values/Reset System/Abort & Exit", 4, 60,option5,1,.T.) Totalkeyoff() DO CASE CASE option5 = 1 @ 12,Center("Now Saving parameters to " + scrprog + "Screen.sys", 40) SAY "Now Saving parameters to " + scrprog + "Screen.sys" SAVE ALL LIKE scr* TO Screen.sys @ 12,13 SAY "Finished with Terminal/System Installation Procedures" INKEY(1) real_abort = .T. EXIT CASE option5 = 2 oldlevel = scr_level RESTORE FROM Screen.sys ADDITIVE Bringsetup() scr_level = oldlevel CASE option5 = 3 real_abort = .T. EXIT OTHERWISE EXIT ENDCASE ENDDO Windowpop() ******************** PROCEDURE Chang_date Typeset() Windowpush( 8,18,17,62) option4 = 1 today = DATE() FOR qaz = 1 TO 8 @ qaz + 8,19 PROMPT Fill_out(TRANSFORM(qaz, "9") + "> " + Printdate(today, qaz), 43) NEXT MENU TO option4 IF option4 > 0 scrdate = option4 ENDIF Windowpop() ******************** PROCEDURE Drawframe Typeset() Windowpush( 12, 5, 20, 40 ) @ 12, 5, 20, 40 BOX scrframe @ 16, 5 SAY SUBSTR(scrbar,1,1) + SUBSTR(scrbar,2,34) + SUBSTR(scrbar,80,1) @ 21, 25 SAY "Is this the correct border? " IF Prompt() KEYBOARD CHR(27) ENDIF Rid( 21, 25, "Is this the correct border? ") Windowpop() ******************** PROCEDURE Change_col @ 7,0 SAY "" Totalkeyoff() testcolor = Altercolor(17) IF scrcolor != testcolor Windowpush( 3, 2, 6, 35) @ 4, 3 SAY "The Color Parameters Have Been" @ 5, 3 SAY "Changed. Save them? (Y/N) " IF Prompt() scrcolor = testcolor ENDIF Windowpop() ENDIF Totalkeyon() ******************** FUNCTION Down_prmpt PARAMETER the_row, the_one RETURN(Makemenu("Black/Blue/Green/Cyan/Red/Magenta/Yellow/White",10,the_row,the_one,1,.T.,1,17,10)) ******************** PROCEDURE Maketemp lefttemp = Parsing(@scrtemplate, ".") rghttemp = scrtemplate the_len = LEN(STRTRAN(lefttemp, ",", "")) DO CASE CASE the_len = 9 down_opt = 1 CASE the_len = 8 down_opt = 2 CASE the_len = 7 down_opt = 3 CASE the_len = 6 down_opt = 4 CASE the_len = 5 down_opt = 5 CASE the_len = 4 down_opt = 6 CASE the_len = 3 down_opt = 7 OTHERWISE down_opt = 8 ENDCASE Windowpush( 5,5,20,29) @ 18,6 SAY "Currently Set to..." @ 19,6 SAY SUBSTR(lefttemp + "." + rghttemp, 1, 22) @ 6,6 SAY "Pick the Display Format" down_opt = Makemenu("$ 999,999,999 /$ 99,999,999/$ 9,999,999/$ 999,999/$ 99,999/$ 9,999/$ 999/$ 99", 8,6,down_opt,1) DO CASE CASE down_opt = 1 scrtemplat = "999,999,999" + "." + rghttemp CASE down_opt = 2 scrtemplat = "99,999,999" + "." + rghttemp CASE down_opt = 3 .OR. down_opt = 0 scrtemplat = "9,999,999" + "." + rghttemp CASE down_opt = 4 scrtemplat = "999,999" + "." + rghttemp CASE down_opt = 5 scrtemplat = "99,999" + "." + rghttemp CASE down_opt = 6 scrtemplat = "9,999" + "." + rghttemp CASE down_opt = 7 scrtemplat = "999" + "." + rghttemp OTHERWISE scrtemplat = "99" + "." + rghttemp ENDCASE Windowpop() Rid(6,6,"Pick the Display Format") ******************* PROCEDURE Makedeci lefttemp = Parsing(@scrtemplate, ".") rghttemp = scrtemplate nowdec = LEN(rghttemp) Windowpush( 18,0,21,40 ) @ 19, 5 SAY "Set the number of decimal places" @ 20, 5 SAY "for the template => " GET nowdec VALID nowdec >= 0 .AND. nowdec <= 20 - (LEN(lefttemp) + 1 + nowdec) READ scrtemplate = lefttemp + "." + REPLICATE("9", nowdec) Windowpop() ******************** PROCEDURE Makeform DO CASE CASE scrform = "@9 " down_opt = 1 CASE scrform = "@E " down_opt = 2 CASE scrform = "@9 $" down_opt = 3 CASE scrform = "@E £" down_opt = 4 CASE scrform = "@E ¥" down_opt = 5 CASE scrform = "@E ₧" down_opt = 6 CASE scrform = "@E ƒ" down_opt = 7 OTHERWISE down_opt = 8 ENDCASE Windowpush( 5,5,16,28) @ 6,6 SAY "Pick the Amount Format" down_opt = MAKEMENU("Standard American /Standard European/Display with $/Display with £/Display with ¥/Display with ₧/Display with ƒ/No Display Format", 8,6,down_opt,1,.T.) DO CASE CASE down_opt = 1 .OR. down_opt = 0 .OR. down_opt = 8 scrform = "@9 " OTHERWISE scrform = SUBSTR("@E @9 $@9 £@E ¥@E ₧@E ƒ", ((down_opt-1)*4)-3, 4) ENDCASE Windowpop() Rid(6,6,"Pick the Amount Format") ******************** PROCEDURE Buildgraph Totalkeyoff() Windowpush( 8,20,20,65) _changed = .F. _option = 1 _astring = "scrrtop scrltop scrrbot scrlbot scrinterscrhorizscrlin scrrbar scrlbar " DO WHILE .T. @ 9,21 SAY "Using cursor keys, pick the character..." @ 11,22 PROMPT " 1. Right Top " && scrrtop @ 12,22 PROMPT " 2. Left Top " && scrltop @ 13,22 PROMPT " 3. Right Bottom " && scrrbot @ 14,22 PROMPT " 4. Left Bottom " && scrlbot @ 15,22 PROMPT " 5. Intersection " && scrinter @ 11,47 PROMPT " 6. Horizontal " && scrhoriz @ 12,47 PROMPT " 7. Vertical " && scrlin @ 13,47 PROMPT " 8. Right Con. " && scrrbar @ 14,47 PROMPT " 9. Left Connec. " && scrlbar MENU TO _option IF _option = 0 EXIT ELSE tempstr = SUBSTR(_astring, (_option * 8) - 7, 8) thechar = &tempstr. SET CURSOR OFF Rid(9,21, "Using cursor keys, pick the character...") @ 17,21 SAY "ENTER or ESC to Exit..." @ 18,21 SAY "Now use cursor keys to change character " DO WHILE .T. @ 18,61 SAY thechar INKEY(0) IF LASTKEY() = 27 .OR. LASTKEY() = 13 EXIT ELSEIF LASTKEY() = 24 thechar = CHR( IF( ASC(thechar) = 1, 255, ASC(thechar)-1) ) ELSEIF LASTKEY() = 5 thechar = CHR( IF( ASC(thechar) = 255, 1, ASC(thechar)+1) ) ENDIF ENDDO &tempstr. = thechar SET CURSOR ON Rid(17,21,"ENTER or ESC to Exit...") Rid(18,21, "Now use cursor keys to change character ") ENDIF ENDDO Totalkeyon() Windowpop() * End of File