home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
AUROR21A.ZIP
/
CFGSAVE.AML
< prev
next >
Wrap
Text File
|
1995-09-01
|
2KB
|
50 lines
/* ------------------------------------------------------------------ */
/* Macro: CFGSAVE.AML */
/* Written by: nuText Systems */
/* */
/* Description: This macro displays a configuration dialog box for */
/* save options. */
/* ------------------------------------------------------------------ */
include bootpath "define.aml"
var saveopt
var backupdir
var foldsign
var bakext
var autoint
dialog "Save Options" 61 11 "cp"
// save options group box
groupbox 'Save Options:' 3 2
(menu ''
item " [ ] &Entab on Save"
item " [ ] &Trim Trailing Blanks "
item " [ ] E&xclude Fold Comments "
item " [ ] Append Ctrl-&Z"
end) '' _SaveOpt 'etxz'
// edit fields
field "Backup &Directory:" 33 2 27 _BackupDir
field "&Fold Comment Signature:" 33 5 27 _FoldSign
field "&Backup Extension: >" 3 9 7 _BackupExt
field "&Autosave Interval: >" 3 10 7 _AutoSave
// ok/cancel buttons
button "O&k" 37 9 8
button "Cancel" 48 9 8
// display dialog box
if (getdialog ref saveopt ref backupdir ref foldsign
ref bakext ref autoint) == 'Ok' then
setobj SaveOpt saveopt 'prf'
setobj BackupDir backupdir 'prf'
setobj FoldSign foldsign 'prf'
setobj BackupExt bakext 'prf'
setobj AutoSave autoint 'prf'
sendobject "edit" "autosave" autoint
end