home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
AUROR21A.ZIP
/
CFGMOUSE.AML
< prev
next >
Wrap
Text File
|
1995-09-01
|
3KB
|
102 lines
/* ------------------------------------------------------------------ */
/* Macro: CFGMOUSE.AML */
/* Written by: nuText Systems */
/* */
/* Description: This macro displays a configuration dialog box for */
/* mouse options. */
/* ------------------------------------------------------------------ */
include bootpath "define.aml"
var mainopt
var mousenx
var mouseny
var moudst
var moudouble
var mouhold
var moudelay
var moumark
var moumarkd
// create dialog box
dialog "Mouse Options" 58 16 "c"
// write dialog box text
writestr "Speed:" '' 3 7
writestr "Delays:" '' 3 12
// mouse options group box
groupbox "Main Options:" 3 2
(menu ''
item " [ ] &Mouse Enabled"
item " [ ] &Reverse Mouse Buttons"
item " [ ] &Hide Mouse on Keypress "
end) '' _Mouse + _MouseOpt 'yrd'
// edit fields
field "&X-Sensitivity: >" 5 8 6 _MouSenX
field "&Y-Sensitivity: >" 5 9 6 _MouSenY
field "Dou&ble Speed: >" 5 10 6 _MouDST
field "&Double Click Time: >" 5 13 6 _MouDouble
field "H&old Time: >" 5 14 6 _MouHold
field "Scroll Dela&y: >" 5 15 6 _MouDelay
// mark type on single-click and drag
groupbox "Single-Click Mark Type" 35 2
(menu ''
item " ( ) &Column"
item " ( ) &Line"
item " ( ) &Stream"
end) '' _MouMark 'kls'
// mark type on double-click and drag
groupbox "Double-Click Mark Type" 35 7
(menu ''
item " ( ) &Column"
item " ( ) &Line"
item " ( ) &Stream"
end) '' _MouMarkD 'kls'
// ok/cancel buttons
button "O&k" 36 14 8
button "Cancel" 47 14 8
// display dialog box
if (getdialog ref mainopt ref mousenx ref mouseny ref moudst
ref moudouble ref mouhold ref moudelay
ref moumark ref moumarkd) == 'Ok' then
setobj Mouse (if? (pos 'y' mainopt) 'y') 'prf'
setobj MouseOpt (sub 'y' '' mainopt) 'prf'
setobj MouSenX mousenx 'prf'
setobj MouSenY mouseny 'prf'
setobj MouDst moudst 'prf'
setobj MouDouble moudouble 'prf'
setobj MouHold mouhold 'prf'
setobj MouDelay moudelay 'prf'
setobj MouMark moumark 'prf'
setobj MouMarkD moumarkd 'prf'
x = getmousex
y = getmousey
closemouse
// re-initialize the mouse
if _Mouse == 'y' then
if openmouse _MouseOpt then
mousepos x y
y_sens = _MouSenY
if (getos 'v') > 9 then
mousesense (_MouSenX * 5) / 8 (y_sens * 5) / 8 _MouDST
else
mousesense _MouSenX y_sens _MouDST
end
end
end
end