home *** CD-ROM | disk | FTP | other *** search
-
- /*
- ** $VER: EditButton.edge 1.1 (Sunday 08-Aug-93 02:35:43)
- **
- ** Edit a mousebutton command
- **
- ** Written by Thomas liljetoft
- */
-
-
- options results
-
- /* get the users error-report level */
-
- getenvvar _ge_errlevel
- errlevel = result
-
- /* ask for the mouse button to edit */
-
- 'requeststring' title '"Enter Button, Qualifier & QualMask."' '"BUTTON=*"*" Q=*"*" QM=*"*""'
- if RC == 0 then do
-
- /* ok, now get the command currently installed */
-
- button = result
- 'mousebutton' button ask
- if RC == 0 then do
-
- /* ask for a new command, but supply the current as 'default' */
-
- def = result
- 'requeststring' title '"Enter new definition."' default '"'def'"'
- if RC == 0 then do
-
- /* change to the new command */
-
- 'mousebutton' button force result
-
- end
- end
- end
-
- if RC >= errlevel then do
-
- /* something went wrong enought to be reported so report */
-
- 'fault'
- 'requestnotify' '"'result'"'
- end
-
- exit(0)
-