home *** CD-ROM | disk | FTP | other *** search
- REM ************************************************************************
- REM Text template maker --- main program (tbox.cdl)
-
- REM Purpose: To make and modify a text template for use as a title
- REM block, or other application. The four major commands
- REM are:
-
- REM Create template: allows user to define field positions,
- REM widths, and text attributes
- REM Modify Field: allows user to modify any single field parameter
- REM Write Field: writes a single field onto the part
- REM Write Template: writes all fields onto the part
-
- REM The template description is saved as an ASCII file, and
- REM can be recalled for use by the TBOX cadl program
- REM ************************************************************************
-
-
- CLEAR
-
- txtht = @dimht
- asprat = @txtasp
- pen = @pen
- font = 1
- def1 = 1
- def3 = 3
- $tplname = "tbox"
- $defstr = " "
- $deftxt = " "
- $fldname = " "
-
- :get_tplname
- GETSTR "Enter template name (%s):",$tplname,$tplname
- ON (@KEY + 3) GOTO exit,exit,
-
- :ind_basept
- GETPOS "Indicate template base position",def3
- ON (@KEY + 3) GOTO exit,get_tplname,ind_basept,
- bpx = @XVIEW
- bpy = @YVIEW
-
- :menu
- GETMENU "Select option.",\
- "CRT TPL",\
- "APP FLD",\
- "MOD FLD",\
- "WRT FLD",\
- "WRT TPL"
- ON (@KEY + 3) GOTO exit,exit,menu,menu,crt_tpl,app_fld,mod_fld,\
- wrt_fld,wrt_tpl,
-
- :crt_tpl
- makeflg = 0
- DOSUB tbmake
- GOTO menu
-
- :app_fld
- DOSUB tbappnd
- GOTO menu
-
- :mod_fld
- DOSUB tbmod
- GOTO menu
-
- :wrt_fld
- DOSUB tbwrtf
- GOTO menu
-
- :wrt_tpl
- DOSUB tbwrtt
- GOTO menu
-
- :exit