home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
AUROR21A.ZIP
/
CFGEDIT2.AML
< prev
next >
Wrap
Text File
|
1995-09-01
|
3KB
|
96 lines
/* ------------------------------------------------------------------ */
/* Macro: CFGEDIT2.AML */
/* Written by: nuText Systems */
/* */
/* Description: This macro displays a configuration dialog box for */
/* edit options 2. */
/* ------------------------------------------------------------------ */
include bootpath "define.aml"
define
set default_eotline "≡≡≡≡≡≡ End of Text ≡≡≡≡≡≡"
end
var enterins
var enterovl
var options
var eotline
// create dialog box
dialog "Edit Options 2" 63 19 "cp"
// insert mode <enter> key
groupbox 'Enter in Insert Mode:' 3 2
(menu ''
item " ( ) &Split Line"
item " ( ) &Insert Line"
item " ( ) Go to &Next Line "
end) '' (if? _EnterIns _EnterIns 'n') "sin"
// overstrike mode <enter> key
groupbox 'Enter in Overstrike Mode:' 26 2
(menu ''
item " ( ) &Split Line"
item " ( ) &Insert Line"
item " ( ) Go to &Next Line"
end) '' (if? _EnterOvl _EnterOvl 'n') "sin"
// option switches
groupbox 'Options:' 3 7
(menu ''
item " [ ] Shift &Text on TabLeft/TabRight in Insert Mode "
item " [ ] &Join Lines on Delete Character at End-of-Line"
item " [ ] Join Lines on &Backspace at Column One"
item " [ ] &Rubout on Backspace in Overstrike Mode"
item " [ ] Copy/Move/Paste Line Blocks &Above the Current Line "
item " [ ] Repeat Current Line on &Copyblock with no Mark"
item " [ ] Delete Current Line on &Deleteblock with no Mark"
item " [ ] &Highlight the Cursor Line"
end) '' (if? _TabShift == 'y' 'a') + (if? _DelJoin == 'y' 'b') +
(if? _BakJoin == 'y' 'c') + (if? _BakOvl == 'y' 'd') +
(if? _InsAbove == 'y' 'e') + (if? _CopyLine == 'y' 'f') +
(if? _DelLine == 'y' 'g') + (if? _CurHigh == 'y' 'h')
'abcdefgh'
// end-of-text line
field "&End-of-Text Line:" 3 17 58
(if? _EOTLine _EOTLine default_eotline)
// ok/cancel buttons
button "O&k" 53 3 8
button "Cancel" 53 5 8
// display dialog box
if (getdialog ref enterins ref enterovl ref options
ref eotline) == 'Ok' then
setobj EnterIns enterins 'prf'
setobj EnterOvl enterovl 'prf'
setobj TabShift (if? (pos 'a' options) 'y' 'n') 'prf'
setobj DelJoin (if? (pos 'b' options) 'y' 'n') 'prf'
setobj BakJoin (if? (pos 'c' options) 'y' 'n') 'prf'
setobj BakOvl (if? (pos 'd' options) 'y' 'n') 'prf'
setobj InsAbove (if? (pos 'e' options) 'y' 'n') 'prf'
setobj CopyLine (if? (pos 'f' options) 'y' 'n') 'prf'
setobj DelLine (if? (pos 'g' options) 'y' 'n') 'prf'
setobj CurHigh (if? (pos 'h' options) 'y' 'n') 'prf'
setobj EOTLine (if? eotline <> default_eotline eotline) 'prf'
// apply CurHigh and EOTLine immediately
w = getcurrwin
while w do
if wintype? "edit" w then
colorcursor (getpalette (if? _CurHigh == 'y' 4 2)) (getwincurs w)
if _EOTLine then
settitle _EOTLine 'z' 4 w
eotstring 4 w
else
eotstring -1 w
end
end
w = getprevwin w
end
end