home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
AUROR21A.ZIP
/
CFGPRINT.AML
< prev
next >
Wrap
Text File
|
1995-09-01
|
2KB
|
65 lines
/* ------------------------------------------------------------------ */
/* Macro: CFGPRINT.AML */
/* Written by: nuText Systems */
/* */
/* Description: This macro displays a configuration dialog box for */
/* print settings. */
/* ------------------------------------------------------------------ */
// print settings dialog box
include bootpath "define.aml"
var prtopt
var prtdev
var prtpag
var prtspace
var prtcop
var prtini
var prttop
var prtbot
var prtleft
var prtright
// create dialog box
dialog "Print Settings" 62 10 "cp"
// print settings group box
groupbox '' 3 2
(menu ''
item " [ ] &Header"
item " [ ] &Footer"
item " [ ] Pa&ge Numbers "
item " [ ] Line &Numbers"
item " [ ] &Eject"
end) '' _PrtOpt 'hfple'
// edit fields
field "&Device: >" 27 2 5 _PrtDev
field "Lines per &Page: >" 27 3 5 _PrtPag
field "Line &Spacing: >" 27 4 5 _PrtSpace
field "&Copies: >" 27 5 5 _PrtCop
field "Printer &Init: >" 27 6 5 _PrtIni
field "&Top Margin: >" 3 8 5 _PrtTop
field "&Bottom Margin: >" 3 9 5 _PrtBot
field "&Left Margin: >" 27 8 5 _PrtLeft
field "&Right Margin: >" 27 9 5 _PrtRight
// ok/cancel buttons
button "O&k" 52 2 8
button "Cancel" 52 4 8
if (getdialog ref prtopt ref prtdev ref prtpag ref prtspace
ref prtcop ref prtini ref prttop ref prtbot
ref prtleft ref prtright) == 'Ok' then
setobj PrtOpt prtopt 'prf'
setobj PrtDev prtdev 'prf'
setobj PrtPag prtpag 'prf'
setobj PrtSpace prtspace 'prf'
setobj PrtCop prtcop 'prf'
setobj PrtIni prtini 'prf'
setobj PrtTop prttop 'prf'
setobj PrtBot prtbot 'prf'
setobj PrtLeft prtleft 'prf'
setobj PrtRight prtright 'prf'
end