home *** CD-ROM | disk | FTP | other *** search
- '***********************************************************************
- ' FormDev: Setup.RLZ
- '
- ' Copyright ⌐ 1991-1992 Computer Associates International, Inc.
- ' All rights reserved.
- '
- '***********************************************************************
-
- PROC SetupModal
- LOCAL lfile, fdSetup
-
- fdSetup = FormQUnique
- FormNew(fdSetup; "Form Initialization", _Title + _ContextEnter)
- FormControl(_Size; _Center, _Center, 60 pct, 85 pct)
- FormSetObject(10, _CaptionCenter, "Startup code:", 5 pct, 2 pct, 90 pct, _Default)
- FormSetObject(20, _Log, "", 2 pct, 10 pct, 96 pct, 40 pct)
- FormSetObject(30, _CaptionCenter, "Search directory paths:", 5 pct, 53 pct, 90 pct, _Default)
- FormSetObject(41, _CaptionLeft, "Bitmaps:", 2 pct, 61 pct)
- FormSetObject(40, _EditText, theform.bitmapdir, 20 pct, 60 pct, 78 pct, _Default)
- FormSetObject(51, _CaptionLeft, "Links:", 2 pct, 71 pct)
- FormSetObject(50, _EditText, theform.linkdir, 20 pct, 70 pct, 78 pct, _Default)
- FormSetObject(1, _Button, "OK", _Left, _Bottom)
- FormSetObject(2, _Button, "Cancel", _Right, _Bottom)
-
- IF theform.init <> "" THEN
- PRINT #20, fdSetup; theform.init
- END IF
- LOOP
- SELECT CASE FormWait
- CASE 1 ' OK
- LogSelect(20, fdSetup)
- theform.init = LogQStr
- theform.bitmapdir = FormQStr(40)
- theform.linkdir = FormQStr(50)
- SetupPaths
- EXIT LOOP
- CASE 2 ' Cancel
- EXIT LOOP
- END SELECT
- END LOOP
- FormControl(_Close)
- FormSelect(fdFormChar)
- END PROC